Skip to content
Snippets Groups Projects
Commit 57839dc8 authored by Valentin Groues's avatar Valentin Groues :eyes:
Browse files

Merge branch 'hide-disabled-for-voucher-partners' into 'master'

Changes asked in !135

See merge request NCER-PD/scheduling-system!141
parents 760a040b 2813990c
No related branches found
No related tags found
1 merge request!141Changes asked in !135
Pipeline #
......@@ -37,10 +37,14 @@
<th>First name</th>
<th>Last name</th>
<th>Languages</th>
<th>Unit</th>
{% if worker_type == 'STAFF' %}
<th>Unit</th>
{% endif %}
<th>Details</th>
<th>On leave</th>
<th>Disabled</th>
{% if worker_type == 'STAFF' %}
<th>On leave</th>
<th>Disabled</th>
{% endif %}
</tr>
</thead>
<tbody>
......@@ -56,23 +60,28 @@
{% endfor %}
{% endautoescape %}
</td>
<td>{{ worker.unit }}</td>
{% if worker_type == 'STAFF' %}
<td>{{ worker.unit }}</td>
{% endif %}
<td><a href="{% url 'web.views.worker_edit' worker.id %}" type="button"
class="btn btn-block btn-default">Details</a></td>
<td>
{% if worker.is_on_leave %}
<button type="button" class="btn btn-block btn-danger">YES</button>
{% else %}
<button type="button" class="btn btn-block btn-success">NO</button>
{% endif %}
</td>
<td>
{% if worker.is_active %}
<a href="{% url 'web.views.worker_disable' worker.id %}" class="btn btn-block btn-warning">DISABLE</a>
{% else %}
YES
{% endif %}
</td>
{% if worker_type == 'STAFF' %}
<td>
{% if worker.is_on_leave %}
<button type="button" class="btn btn-block btn-danger">YES</button>
{% else %}
<button type="button" class="btn btn-block btn-success">NO</button>
{% endif %}
</td>
<td>
{% if worker.is_active %}
<a href="{% url 'web.views.worker_disable' worker.id %}"
class="btn btn-block btn-warning">DISABLE</a>
{% else %}
YES
{% endif %}
</td>
{% endif %}
</tr>
{% endfor %}
......
......@@ -61,7 +61,7 @@
</form>
{% if voucher_type.study %}
<div class="box-header with-border">
<h3>Prices <a title="add a new contact attempt"
<h3>Prices <a title="add a new price"
id="add-contact-attempt"
href="{% url 'web.views.voucher_type_price_add' voucher_type.id %}"
class="text-primary"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment