{% extends "_base.html" %} {% load static %} {% block styles %} {{ block.super }} {% endblock styles %} {% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %} {% if worker_type == 'STAFF' %} Workers {% elif worker_type == 'HEALTH_PARTNER' %} Health Partners {% elif worker_type == 'VOUCHER_PARTNER' %} Voucher Partners {% endif %} {% endblock page_header %} {% block breadcrumb %} {% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %}
No. | {% if worker_type == 'STAFF' %}First name | Last name | Unit | Role | {% else %}Name | {% endif %}Languages | Details | {% if worker_type == 'STAFF' %}On leave | Disabled | {% endif %}
---|---|---|---|---|---|---|---|---|---|
{{ forloop.counter }} | {% if worker_type == 'STAFF' %}{{ worker.first_name }} | {{ worker.last_name }} | {{ worker.unit }} | {{ worker.role }} | {% else %}{{ worker.name }} | {% endif %}{% autoescape off %} {% for language in worker.languages.all %} {{ language.image_img }} {% endfor %} {% endautoescape %} | Details | {% if worker_type == 'STAFF' %}{% if worker.is_on_leave %} {% else %} {% endif %} | {% if worker.is_active %} DISABLE {% else %} YES {% endif %} | {% endif %}