{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% endblock styles %} {% block page_title %}'subjects'{% endblock page_title %} {% block page_header %}Subject's visits{% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %}{{ block.super }} - List of subject's visits {% endblock %} {% block breadcrumb %} {% include "subjects/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}
Back

List of visits

{% for element in display %}

Visit {{ forloop.counter }}


{% for field in element.0 %}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% if visFinished %} {% else %} {% endif %}

Visit's assignments

{% if element.1 %} {% for app in element.1 %} {% endfor %}
No. Type Date Time Length [min] Responsible Plan/Modify
{{ forloop.counter }} {{ app.appointment_type }} {{ 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 %} TODO
{% else %}

No appointments found.

{% endif %}
{% endfor %}
{% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% endblock scripts %}