|
|
|
@ -8,40 +8,36 @@ |
|
|
|
<ul class="settings-list"> |
|
|
|
<li> |
|
|
|
<label for="theme">Choose a display theme:</label> |
|
|
|
{# |
|
|
|
2 styling changes needed: |
|
|
|
- the select should be wider, as wide as it is now (roughly) on live |
|
|
|
- the success message should be to the rigt of the label button |
|
|
|
#} |
|
|
|
<div class=""> |
|
|
|
<menu class=""> |
|
|
|
<select class="form-select" name="theme" id="theme" data-js-theme-selector> |
|
|
|
{% for theme, description in theme_options.items() %} |
|
|
|
<option |
|
|
|
value="{{ theme }}" |
|
|
|
{{ 'selected' if theme == current_theme else ''}} |
|
|
|
>{{ description }}</option> |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
</menu> |
|
|
|
<form |
|
|
|
name="account-default-theme" |
|
|
|
data-ic-patch-to="{{ request.route_url( |
|
|
|
'ic_user', |
|
|
|
username=request.user.username |
|
|
|
) }}" |
|
|
|
class="form-listing-options" |
|
|
|
> |
|
|
|
<input type="hidden" name="theme" id="input-set-default-theme" value="{{ current_theme }}"> |
|
|
|
<div class="form-buttons no-flex-reverse"> |
|
|
|
<button id="button-set-default-theme" |
|
|
|
class="btn btn-link |
|
|
|
{% if current_theme == request.user.theme_default %}d-invisible{% endif %}" |
|
|
|
<div class="form-oneline"> |
|
|
|
<select class="form-select form-oneline-item-double" name="theme" id="theme" data-js-theme-selector> |
|
|
|
{% for theme, description in theme_options.items() %} |
|
|
|
<option |
|
|
|
value="{{ theme }}" |
|
|
|
{{ 'selected' if theme == current_theme else '' }} |
|
|
|
> |
|
|
|
Set as account default |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
{{ description }} |
|
|
|
</option> |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
<div class="form-oneline-item"> |
|
|
|
<form |
|
|
|
name="account-default-theme" |
|
|
|
data-ic-patch-to="{{ request.route_url( |
|
|
|
'ic_user', |
|
|
|
username=request.user.username |
|
|
|
) }}" |
|
|
|
> |
|
|
|
<input type="hidden" name="theme" id="input-set-default-theme" value="{{ current_theme }}"> |
|
|
|
<div class="form-buttons no-reverse"> |
|
|
|
<button id="button-set-default-theme" |
|
|
|
class="btn btn-link |
|
|
|
{% if current_theme == request.user.theme_default %}d-invisible{% endif %}" |
|
|
|
> |
|
|
|
Set as account default |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
|