{% extends "appointment/layout.html" %} {% load i18n %} {% load static %} {% block customCSS %} {% endblock %} {% block title %} {% trans "Manage Working Hours" %} {% endblock %} {% block description %} {% trans "Manage Working Hours" %} {% endblock %} {% block djappt_content %} {% if staff_user_id %} {% url 'appointment:user_profile' staff_user_id=staff_user_id as back_url %} {% else %} {% url 'appointment:user_profile' as back_url %} {% endif %}
{% if messages %}
{% for message in messages %} {% endfor %}
{% endif %} {% trans 'Back' %} {# Sent in the background by schedule_form.js, to the add or the update URL #} {% if entity_instance %} {% url 'appointment:update_working_hours_id' entity_id|default:entity_instance.id staff_user_id|default:user.id as post_url %} {% else %} {% url 'appointment:add_working_hours_id' staff_user_id|default:user.id as post_url %} {% endif %}

{% trans "Manage Working Hours" %}

{% csrf_token %} {% if working_hours_form.staff_member %}
{{ working_hours_form.staff_member }}
{% endif %} {# The day as a row of chips, in the site's week order #}
{% trans 'Day of Week' %}
{% for day in week_days %} {% endfor %}
{% trans 'Cancel' %}
{% include 'modal/error_modal.html' %}
{% endblock %} {% block customJS %} {% if error_message %} {% endif %} {% endblock %}