{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% endblock styles %} {% block ui_active_tab %}'workers'{% endblock ui_active_tab %} {% block page_header %}Edit worker{% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %} - Edit worker information{% endblock %} {% 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 %}

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

{% for holiday in holidays %} {% endfor %}
From Until Info Remove
{{ holiday.datetime_start }} {{ holiday.datetime_end }} {{ holiday.info }} Delete
{% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% endblock scripts %}