{% extends "construction/base.html" %} {% load static i18n crispy_forms_tags base_tag construction_tag humanize %} {% block page_title %}
{% if is_editor %} {% endif %}

{{page_title}}

{% endblock page_title %} {% block content %}
{% if is_editor %} ADD WORKER {% endif %}
{% if is_editor %} {% endif %} {% if is_editor %} {% endif %} {% autoescape off %} {% for worker in worker_data %} {% if is_editor %} {% endif %} {% empty %} {% endfor %} {% endautoescape %}
Name Role Speciality Contact Total Working Time Total Payment
{{worker.data.name}} {% if worker.data.description %} {% endif %} {% get_worker_role_badge role=worker.data.role %} {% for speciality in worker.data.speciality %} {% get_worker_speciality_shorttitle speciality=speciality %} {% endfor %} {{worker.data.phone_number}} {{worker.sum.total_times}} {{worker.sum.total_payment|filter_safe_money_read_from_db|intcomma}}
No Workers
{% autoescape off %} {% for worker in worker_data %}
{{worker.data.name}} {% if worker.data.description %} {% endif %}

{% get_worker_role_badge role=worker.data.role %} {% for speciality in worker.data.speciality %} {% get_worker_speciality_shorttitle speciality=speciality %} {% endfor %}

CONTACT

{{worker.data.phone_number}}

Working Time

{{worker.sum.total_times}}

Total Payment

{{worker.sum.total_payment|filter_safe_money_read_from_db|intcomma}}

{% empty %}

No Workers

{% endfor %} {% endautoescape %}
{% endblock content %} {% block modal %} {% if is_editor %} {% include 'construction/partials/worker_create_modal.html' %} {% include 'construction/partials/worker_update_modal.html' %} {% endif %} {% endblock modal %} {% block third_party %} {% include "base/load_datatable.html" %} {% endblock third_party %}