{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% endblock styles %} {% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_description %}{% endblock page_description %} {% block breadcrumb %} {% include "doctors/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}
Go back (without changes)
{% csrf_token %}
{% for field in form %}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% if worker_type == 'STAFF' %}

Availability

{% for availability in availabilities %} {% endfor %}
Day From Until Modify Remove
{% for weekday in weekdays %} {% if availability.day_number == weekday.0 %} {{ weekday.1 }} {% endif %} {% endfor %} {{ availability.available_from }} {{ availability.available_till }} Edit Delete

Holidays and Extra Availabilities

{% for holiday in holidays %} {% endfor %}
From Until Kind Info Remove
{{ holiday.datetime_start }} {{ holiday.datetime_end }} {% for kind in availability_choices %} {% if holiday.kind == kind.0 %} {{ kind.1 }} {% endif %} {% endfor %} {{ holiday.info }} Delete
{% endif %} {% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% endblock scripts %}