{% extends "_base.html" %} {% load static %} {% load filters %} {% block styles %} {{ block.super }} {% endblock styles %} {% block page_title %}'visits'{% endblock page_title %} {% block page_header %}Details of the visit{% endblock page_header %} {% block page_description %}{% endblock page_description %} {% block title %}{{ block.super }} - Details of visit {% endblock %} {% block breadcrumb %} {% include "subjects/breadcrumb.html" %} {% endblock breadcrumb %} {% block maincontent %} {% block content %}
Back
{% comment %}

Details of visit

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

Visit's assignments

{% endcomment %} {% if loApp %} {% for app in loApp %} {% endfor %}
No. Type Date Time Length Responsible
{{ forloop.counter }} {{ app.appDateTime | date:"d-M-Y" }} {{ app.appDateTime | time:"H:i" }} {{ app.appLength }} {% if app.flyingTeam %}{{ app.workerAssigned.firstName }} {{app.workerAssigned.lastName}} {% else %} {{ app.flyingTeam }} {% endif %}
{% else %}

No appointments found.

{% endif %} {% comment %}

Subject's details

{% endcomment %}
{% for field in vform %}
{{ field|add_class:'form-control' }}
{% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% endblock %} {% endblock maincontent %} {% block scripts %} {{ block.super }} {% endblock scripts %}