{% extends 'appoint/layout.html' %} {% block Title %}{{ title }}{% endblock %} {% block HeaderTitle %} To doctor {% endblock %} {% block BodyContent %} {% if appoints_list.0 or appoints_list.1 or appoints_list.2 or appoints_list.3 or appoints_list.4 %}
{% for columns in appoints_list %}

{{ columns.0.date|date:"l" }}

{{ columns.0.date|date:"d N" }}

{% for appoint in columns %}
{% if appoint.has_not_customer %}
{% if not appoint.is_outdated %} {% if user.is_customer %} {{ appoint.start_time|time:"H:i" }} {% else %} {{ appoint.start_time|time:"H:i" }} {% endif %} {% else %}

{{ appoint.start_time|time:"H:i" }}

{% endif %}
{% else %}

{{ appoint.start_time|time:"H:i" }}

{% endif %}
{% endfor %}
{% endfor %}
{% else %}

There's none any appointments

{% endif %} {% block ButtonChangeWeek %} {% if is_nw_app_exists %} Next week {% endif %} {% endblock ButtonChangeWeek %} {% endblock %}