{% extends "base.html" %} {% block title %}{% if location %}{{ _('Location') }} #{{ location.id }}: {{ location | get_location_name(False) }}{% else %}{{ _('Location') }}{% endif %} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block content %} {% if submit_text == 'Create' %}

{{ _('Note:') }} {{ _('Please verify that the location you want to create does not exist already to avoid duplicates.') }}

{% endif %}
{{ location_form.hidden_tag() }}
{% if languages | length > 1 %} {% endif %}
{% if submit_text == 'Create' %}
{% if languages | length > 1 %}{{ ENGLISH.names | get_translated_text }}{% endif %}
{% for error_message in location_form.translations.errors %}{{ error_message }}{% endfor %} {% else %} {% for translation in translations %} {% if translation['name'] != '' %}
{% if languages | length > 1 %}{{ translation.lang_name }}{% endif %}
{% endif %} {% endfor %} {% for error_message in location_form.translations.errors %}{{ error_message }}{% endfor %} {% endif %}
{% if location_types | length == 1 and location_form.type.data == location_types[0].id | string %} {% else %}
{% for error_message in location_form.type.errors %}{{ error_message }}{% endfor %}
{% endif %} {% if location_types | length == 1 and location_form.type.data == location_types[0].id | string and not location_types[0].enable_parent_location %} {% else %}
{% for error_message in location_form.parent_location.errors %}{{ error_message }}{% endfor %} {% if previous_parent_location_is_invalid %} {{ _('The previous parent location may not have any sub-locations.') }} {% endif %}
{% endif %}
{% if languages | length > 1 %} {% endif %}
{% if submit_text == 'Create' %}
1 %}class="input-group"{% endif %} data-name="description" data-language-id="{{ ENGLISH.id }}" style="margin-bottom: 10px"> {% if languages | length > 1 %}{{ ENGLISH.names | get_translated_text }}{% endif %}
{% else %} {% for translation in translations %} {% if translation['description'] != '' or translation.language_id == ENGLISH.id %}
1 %}class="input-group"{% endif %} data-language-id="{{ translation.language_id }}" style="margin-bottom: 10px"> {% if languages | length > 1 %}{{ translation.lang_name }}{% endif %}
{% endif %} {% endfor %} {% endif %}
{% if not (location_types | length == 1 and location_form.type.data == location_types[0].id | string and not location_types[0].enable_capacities) %} {% for action_type in valid_action_types %} {% for entry in location_form.capacities.entries %} {% if entry.action_type_id.data == action_type.id %} {{ entry.hidden_tag() }}
{% endif %} {% endfor %} {% endfor %} {% endif %}
{% if submit_text == 'Create' %} {% endif %} {% if has_grant_permissions and not (location_types | length == 1 and location_form.type.data == location_types[0].id | string and not location_types[0].enable_responsible_users) %}
{% endif %} {% if may_change_hidden %} {% endif %}
{% endblock %}