{% extends "base.html" %} {% load static i18n django_bootstrap5 %} {% block title %}{% translate "Schedule appointment" %}{% endblock %} {% block content %}

{{ object.schedule }}

{% csrf_token %} {% if form.errors %} {% endif %} {% if user.is_active %}

{% translate 'You can select timeslots from the past becasue you are logged in.' %}

{% endif %}

{% translate 'Please select one of the available timeslots to make an appointment. You will still be able to change your selection later.' %}

{% if table.times %}
{% for time in table.times %} {% endfor %} {% for date, row in table.timeslots.items %} {% for time, id in row.items %} {% endfor %} {% endfor %}
{{ time }}
{{ date }} {% if id %} {% endif %}
{% else %}

{% translate 'No more appointments available' %}

{% endif %}

{% translate 'If you have to change or cancel your appointment, please make sure to notify us as early as possible. Our experiments are often complex and expensive. If you do not show up for appointments repeatedly, we may no longer consider you for future studies.' %}

{% endblock %}