Updated user settings page and user forms

This commit is contained in:
2023-06-01 10:59:51 +01:00
parent fc707b1abf
commit a4da55aa47
15 changed files with 386 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
{% block input_locale %}
{% if 'locale' not in form.fields.hidden %}
<div class="form-group">
<label for="input-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-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>
{% endif %}
{% endblock %}