{% extends 'base.html' %} {% load static %} {% load custom_tags_and_filters %} {% block title %}New reservation{% endblock %} {% block extrahead %} {% endblock %} {% block content %}

Create a new reservation

{% csrf_token %} {% if not user.is_staff %} {% if user.active_project_count == 1 %} {% elif user.active_project_count > 1 %}

Which project is this for?

{% for project in user.active_projects %}
{% endfor %} {% endif %} {% endif %} {% if tool_accessories %} {% include "calendar/accessories_helper.html" %} {% endif %} {% if configurations %}

Choose tool configuration settings

{% if notice_limit > 0 %}
Please note: {{ notice_limit }} hours of advance notice is required when reserving this tool in order to configure it properly. A tool is not guaranteed to be configured properly if a reservation is created or modified on short notice.
{% endif %} {% include 'calendar/configuration_helper.html' %} {% endif %} {% if reservation_questions %} {% if user.active_project_count == 1 %}

Please answer the following questions

{{ reservation_questions|get_item:user.active_projects.0.id }}
{% else %}
{% endif %} {% endif %}

When would you like to reserve the {{ item }}?

{% button type="save" value="Create the reservation" %}
{# We are using this div as storage for all possible reservation questions per projects #} {% endblock %}