Verified Commit 9c4977eb authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

assign_am: differnet button style for those AM with 0 slots, rather than simply full



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 204d7581
......@@ -63,7 +63,9 @@ 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.stats_free == 0 %}
{% if am.slots == 0 %}
class="btn btn-sm btn-outline-secondary" data-toggle="tooltip" title="This AM has no slots at all"
{% elif am.stats_free == 0 %}
class="btn btn-sm btn-secondary" data-toggle="tooltip" title="This AM has no free slots"
{% else %}
{% if am.person.status == "dd_u" and process.applying_for == "dd_nu" %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment