Skip to content
Snippets Groups Projects
Commit 4b685e52 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

List of voucher partners and health partners doesn't include "disabled" button

parent 2c1d1dc9
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 %}
......
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