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
1611fdbc
Commit
1611fdbc
authored
Mar 10, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix style in calendar shift list
parent
b5ae60ba
Pipeline
#1912
passed with stage
in 1 minute 29 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
15 deletions
+65
-15
members-space-shifts-exchange.css
members_space/static/css/members-space-shifts-exchange.css
+51
-5
members-space-shifts-exchange.js
members_space/static/js/members-space-shifts-exchange.js
+2
-2
index.html
templates/members_space/index.html
+12
-8
No files found.
members_space/static/css/members-space-shifts-exchange.css
View file @
1611fdbc
...
@@ -64,13 +64,39 @@
...
@@ -64,13 +64,39 @@
}
}
}
}
.shift_line_container
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
flex-wrap
:
wrap
;
}
.shift_line_extra_actions
{
display
:
flex
;
justify-content
:
flex-start
;
flex-wrap
:
nowrap
;
}
@media
screen
and
(
max-width
:
768px
)
{
.shift_line_container
{
flex-direction
:
column
;
}
.shift_line_extra_actions
{
width
:
100%
;
}
.affect_associate_registered
{
margin
:
0.5rem
0
;
}
}
.selectable_shift_line
{
.selectable_shift_line
{
min-width
:
325px
;
min-width
:
325px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
15px
;
border-radius
:
5px
;
border-radius
:
5px
;
margin-right
:
15px
;
}
}
.selectable_shift_line
.checkbox
{
.selectable_shift_line
.checkbox
{
...
@@ -84,10 +110,19 @@
...
@@ -84,10 +110,19 @@
.affect_associate_registered
{
.affect_associate_registered
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-left
:
15px
;
border-radius
:
5px
;
border-radius
:
5px
;
}
}
@media
screen
and
(
min-width
:
768px
)
{
.selectable_shift_line
{
margin
:
0
15px
;
}
.affect_associate_registered
{
margin-left
:
15px
;
}
}
.selectable_shift
{
.selectable_shift
{
margin
:
1rem
0
;
margin
:
1rem
0
;
}
}
...
@@ -127,9 +162,9 @@
...
@@ -127,9 +162,9 @@
#can_delete_future_registrations_area
{
#can_delete_future_registrations_area
{
display
:
none
;
display
:
none
;
align-self
:
center
;
justify-content
:
center
;
align-items
:
center
;
margin
:
0
1rem
1rem
1rem
;
margin
:
0
1rem
1rem
1rem
;
padding
:
1rem
1.25rem
;
}
}
#can_delete_future_registrations_area
button
{
#can_delete_future_registrations_area
button
{
...
@@ -229,4 +264,14 @@ td{
...
@@ -229,4 +264,14 @@ td{
#calendar_explaination_button
{
#calendar_explaination_button
{
max-width
:
60%
;
max-width
:
60%
;
margin
:
2rem
auto
0.5rem
auto
;
margin
:
2rem
auto
0.5rem
auto
;
}
/* -- Assign shift modal */
.modal_affect_shift_buttons
{
margin
:
1rem
0
;
}
.assign_shift_button
{
margin
:
0.25rem
;
}
}
\ No newline at end of file
members_space/static/js/members-space-shifts-exchange.js
View file @
1611fdbc
...
@@ -352,7 +352,7 @@ function init_shifts_list() {
...
@@ -352,7 +352,7 @@ function init_shifts_list() {
if
(
shift_line_template
.
find
(
".delete_registration_button"
).
length
===
0
)
{
if
(
shift_line_template
.
find
(
".delete_registration_button"
).
length
===
0
)
{
let
delete_reg_button_template
=
$
(
"#delete_registration_button_template"
);
let
delete_reg_button_template
=
$
(
"#delete_registration_button_template"
);
shift_line_template
.
find
(
".shift_line_
container
"
).
append
(
delete_reg_button_template
.
html
());
shift_line_template
.
find
(
".shift_line_
extra_actions
"
).
append
(
delete_reg_button_template
.
html
());
}
}
}
else
{
}
else
{
shift_line_template
.
find
(
".delete_registration_button"
).
remove
();
shift_line_template
.
find
(
".delete_registration_button"
).
remove
();
...
@@ -470,7 +470,7 @@ function init_calendar_page() {
...
@@ -470,7 +470,7 @@ function init_calendar_page() {
if
(
partner_data
.
extra_shift_done
>
0
)
{
if
(
partner_data
.
extra_shift_done
>
0
)
{
$
(
".extra_shift_done"
).
text
(
partner_data
.
extra_shift_done
);
$
(
".extra_shift_done"
).
text
(
partner_data
.
extra_shift_done
);
$
(
"#can_delete_future_registrations_area"
).
show
(
);
$
(
"#can_delete_future_registrations_area"
).
css
(
'display'
,
'flex'
);
$
(
"#offer_extra_shift"
).
on
(
"click"
,
()
=>
{
$
(
"#offer_extra_shift"
).
on
(
"click"
,
()
=>
{
openModal
(
openModal
(
...
...
templates/members_space/index.html
View file @
1611fdbc
...
@@ -43,8 +43,10 @@
...
@@ -43,8 +43,10 @@
<span
class=
"shift_line_date"
></span>
-
<span
class=
"shift_line_time"
></span>
<span
class=
"shift_line_date"
></span>
-
<span
class=
"shift_line_time"
></span>
</div>
</div>
</div>
</div>
<div
class=
"affect_associate_registered"
>
<div
class=
"shift_line_extra_actions"
>
<div
class=
"affect_associate_registered"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -55,12 +57,14 @@
...
@@ -55,12 +57,14 @@
<div
id=
"modal_affect_shift"
>
<div
id=
"modal_affect_shift"
>
<div>
Qui sera présent.e ?
</div>
<div>
Qui sera présent.e ?
</div>
<div
id=
"shift_partner"
class=
"btn--primary"
>
<div
class=
"modal_affect_shift_buttons"
>
</div>
<div
id=
"shift_partner"
class=
"btn--primary assign_shift_button"
>
<div
id=
"shift_associate"
class=
" btn--primary"
>
</div>
</div>
<div
id=
"shift_associate"
class=
" btn--primary assign_shift_button"
>
<div
id=
"shift_both"
class=
" btn--primary"
>
</div>
Les deux
<div
id=
"shift_both"
class=
" btn--primary assign_shift_button"
>
Les deux
</div>
</div>
</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