Changed directory structure of forms/inputs slightly

This commit is contained in:
2023-06-01 15:33:24 +01:00
parent 6a9b24a626
commit ff871bdbbf
26 changed files with 27 additions and 27 deletions

View File

@@ -0,0 +1,21 @@
{% block input_user_locale %}
{% if 'locale' not in form.fields.hidden %}
{% if col_width %}<div class="{{col_width}}">{% endif %}
<div class="form-group">
<label for="input-user-locale" class="control-label">{{translate('LOCALE')}}</label>
<div class="input-group">
<span class="input-group-addon"><i class="fas fa-language fa-fw"></i></span>
{% if 'locale' in form.fields.disabled %}
<input type="text" class="form-control" name="theme" value="{{locales[user.locale]}}" disabled>
{% else %}
<select id="input-user-locale" class="form-control js-select2" name="locale">
{% for option, label in locales %}
<option value="{{option}}" {% if (option == user.locale) %}selected{% endif %}>{{label}}</option>
{% endfor %}
</select>
{% endif %}
</div>
</div>
{% if col_width %}</div>{% endif %}
{% endif %}
{% endblock %}