Updated user settings page and user forms
This commit is contained in:
19
templates/forms/partials/input-theme.html.twig
Normal file
19
templates/forms/partials/input-theme.html.twig
Normal 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 %}
|
||||
Reference in New Issue
Block a user