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
ab995274
Commit
ab995274
authored
11 months ago
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove makeups decrement button if makeups_to_do count is 0
parent
53aec0df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
manage_makeups.js
members/static/js/admin/manage_makeups.js
+6
-4
No files found.
members/static/js/admin/manage_makeups.js
View file @
ab995274
...
...
@@ -121,10 +121,12 @@ function display_makeups_members() {
render
:
function
(
data
,
type
,
full
)
{
var
html
=
`<b>
${
data
}
</b>`
if
(
full
.
shift_type
==
'standard'
)
{
html
+=
`
<button class="decrement_makeup btn--primary" id="decrement_member_
${
full
.
id
}
">
<i class="fas fa-minus"></i>
</button>`
;
if
(
data
>
0
)
{
html
+=
`
<button class="decrement_makeup btn--primary" id="decrement_member_
${
full
.
id
}
">
<i class="fas fa-minus"></i>
</button>`
;
}
html
+=
`
<button class="increment_makeup btn--primary" id="increment_member_
${
full
.
id
}
">
<i class="fas fa-plus"></i>
...
...
This diff is collapsed.
Click to expand it.
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