{% extends "base.html" %} {% block title %}{{ _('Location') }} — {{ 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 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 %}
{% endblock %}