{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% include "includes/datetimepicker.css.html" %} {% endblock styles %} {% block ui_active_tab %}'appointments'{% endblock ui_active_tab %} {% block page_header %}Edit appointment{% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %} - Edit appointment information{% endblock %} {% block breadcrumb %} {% include "appointments/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}
{% if appointment.visit %}

View corresponding visit

{% endif %}
{% csrf_token %}

Appointment's details

{% for field in form %}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% if subject_form %}

Subject's details

{% for field in subject_form %}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% endif %}
{% include 'includes/mail_templates_box.html' with instance_id=appointment.id %} {% if appointment.visit %} {% include 'includes/contact_attempts_box.html' with subject=appointment.visit.subject contact_attempts=contact_attempts appointment_id=appointment.id %} {% endif %} {% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% include "includes/datetimepicker.js.html" %} {% endblock scripts %}