Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
204d7581
Verified
Commit
204d7581
authored
Jul 12, 2021
by
Mattia Rizzolo
Browse files
assign_am: mark with different colors the AMs with no slots
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
2509abe8
Pipeline
#268077
passed with stage
in 5 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
process/templates/process/assign_am.html
View file @
204d7581
...
...
@@ -63,12 +63,16 @@ document.addEventListener("DOMContentLoaded", evt => { main(); });
<form
action=
"{% url 'process_assign_am' pk=process.pk %}"
method=
"post"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"am"
value=
"{{am.lookup_key}}"
>
<button
{%
if
am.person.status =
=
"
dd_u
"
and
process.applying_for =
=
"
dd_nu
"
%}
class=
"btn btn-sm btn-secondary"
data-toggle=
"tooltip"
title=
"DD_U AMs should be preferably assigned to DD_U processes"
{%
elif
am.person.status =
=
"
dd_nu
"
and
process.applying_for =
=
"
dd_u
"
%}
class=
"btn btn-sm btn-danger"
data-toggle=
"tooltip"
title=
"DD_NU AMs should not be assigned to DD_U processes"
{%
if
am.stats_free =
=
0
%}
class=
"btn btn-sm btn-secondary"
data-toggle=
"tooltip"
title=
"This AM has no free slots"
{%
else
%}
class=
"btn btn-sm btn-primary"
{%
if
am.person.status =
=
"
dd_u
"
and
process.applying_for =
=
"
dd_nu
"
%}
class=
"btn btn-sm btn-warning"
data-toggle=
"tooltip"
title=
"DD_U AMs should be preferably assigned to DD_U processes"
{%
elif
am.person.status =
=
"
dd_nu
"
and
process.applying_for =
=
"
dd_u
"
%}
class=
"btn btn-sm btn-danger"
data-toggle=
"tooltip"
title=
"DD_NU AMs should not be assigned to DD_U processes"
{%
else
%}
class=
"btn btn-sm btn-primary"
{%
endif
%}
{%
endif
%}
type=
"submit"
>
{% trans "Assign" %}
</button>
</form>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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