{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% include "includes/datepicker.css.html" %} {% endblock styles %} {% block ui_active_tab %}'visits'{% endblock ui_active_tab %} {% block page_header %}Details of the visit ({{ visit.visit_number }}) {% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %}{{ block.super }} - Details of visit ({{ visit.visit_number }}) {% endblock %} {% block breadcrumb %} {% include "subjects/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}
Subject's visits

Details of visit

{% csrf_token %}
{% for field in visit_form %} {% if not field|is_checkbox %}
{# {% if not field|is_checkbox %}#}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% else %} {% include 'includes/visit_appointment_types_field.html' with field=field appointments=loApp %} {% endif %} {% endfor %}
{% if visFinished %}
YES
{% else %}
{% if canFinish %} Mark as finished {% else %} Waiting for appointments to finish. {% endif %}
{% endif %}

Visit's appointments

Add new appointment
{% if loApp %} {% for app in loApp %} {% endfor %}
No. Type Date Time Length [min] Responsible Plan/Modify
{{ forloop.counter }} {% for type in app.appointment_types.all %} {{ type.code }}, {% endfor %} {{ app.datetime_when | date:"d-M-Y" }} {{ app.datetime_when | time:"H:i" }} {{ app.length }} {% if app.flying_team %}{{ app.worker_assigned.first_name }} {{ app.worker_assigned.last_name }} {% else %} {{ app.flying_team }} {% endif %} {% ifequal app.status "SCHEDULED" %} Edit {% else %} {{ app.status }} {% endifequal %}
{% else %}

No appointments found.

{% endif %}

Subject's details

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

Subject's study details

{% for field in study_subject_form %}
{{ field|disable|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% include 'includes/mail_templates_box.html' with instance_id=visit.id %} {% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% include "includes/datepicker.js.html" %} {% endblock scripts %}