Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
46c72a44
Commit
46c72a44
authored
Nov 17, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display only one phone area with existing content
parent
2fae342a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
members-space-my-info.css
members_space/static/css/members-space-my-info.css
+6
-0
members-space-my-info.js
members_space/static/js/members-space-my-info.js
+11
-5
my_info.html
templates/members_space/my_info.html
+2
-9
No files found.
members_space/static/css/members-space-my-info.css
View file @
46c72a44
...
...
@@ -47,6 +47,12 @@
margin
:
2rem
0
;
}
.member_phone_area
{
display
:
flex
;
flex-direction
:
column
;
gap
:
10px
;
}
@media
screen
and
(
max-width
:
768px
)
{
#my_info
{
font-size
:
1.7rem
;
...
...
members_space/static/js/members-space-my-info.js
View file @
46c72a44
...
...
@@ -22,17 +22,22 @@ function init_my_info() {
$
(
".member_address_line"
).
hide
();
}
if
(
partner_data
.
mobile
!==
""
)
{
if
(
partner_data
.
mobile
!==
""
&&
partner_data
.
mobile
!==
false
&&
partner_data
.
mobile
!==
null
)
{
$
(
".member_mobile"
)
.
append
(
partner_data
.
mobile
);
}
else
{
$
(
".member_mobile
_line
"
).
hide
();
$
(
".member_mobile"
).
hide
();
}
if
(
partner_data
.
phone
!==
""
)
{
if
(
partner_data
.
phone
!==
""
&&
partner_data
.
phone
!==
false
&&
partner_data
.
phone
!==
null
)
{
$
(
".member_phone"
)
.
append
(
partner_data
.
phone
);
.
append
(
partner_data
.
phone
);
}
else
{
$
(
".member_phone"
).
hide
();
}
if
(
$
(
".member_mobile"
).
text
()
===
""
&&
$
(
".member_phone"
).
text
()
===
""
)
{
$
(
".member_phone_line"
).
hide
();
}
}
\ No newline at end of file
templates/members_space/my_info.html
View file @
46c72a44
...
...
@@ -58,20 +58,13 @@
<span
class=
"member_address member_info"
></span>
</div>
</div>
<div
class=
"my_info_line member_mobile_line"
>
<div
class=
"my_info_line_left"
>
Téléphone mobile
</div>
<div
class=
"my_info_line_right member_mobile_area"
>
<span
class=
"member_mobile member_info"
></span>
</div>
</div>
<div
class=
"my_info_line member_phone_line"
>
<div
class=
"my_info_line_left"
>
Téléphone
fixe
Téléphone
</div>
<div
class=
"my_info_line_right member_phone_area"
>
<span
class=
"member_phone member_info"
></span>
<span
class=
"member_mobile member_info"
></span>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment