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_theme %}
{% if 'theme' not in form.fields.hidden %}
<div class="form-group">
<label for="input-theme">{{translate('THEME')}}</label>
<div class="input-group">
<span class="input-group-addon"><i class="fas fa-puzzle-piece fa-fw"></i></span>
{% if 'theme' in form.fields.disabled %}
<input type="text" class="form-control" name="theme" value="{{themes[user.theme]}}" disabled>
{% else %}
<select id="input-theme" class="form-control js-select2" name="theme">
{% for option, label in theme %}
<option value="{{option}}" {% if (option == user.theme) %}selected{% endif %}>{{label}}</option>
{% endfor %}
</select>
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}