Fix broken settings form

This commit is contained in:
Jason F. McBrayer 2018-09-05 09:40:54 -04:00
parent 8a4e057e24
commit 620394ac3f
1 changed files with 34 additions and 35 deletions

View File

@ -6,44 +6,43 @@
<h1 class="title">Settings</h1> <h1 class="title">Settings</h1>
<form method="post" action="{% url "settings" %}" > <form method="post" action="{% url "settings" %}" >
{% csrf_token %} {% csrf_token %}
</div> <div class="field">
<div class="field"> <label class="label" for="theme">{{ form.theme.label }}</label>
<label class="label" for="theme">{{ form.theme.label }}</label> <div class="control has-icons-left">
<div class="control has-icons-left"> <div class="select">
<div class="select"> {% render_field form.theme class+="select" %}
{% render_field form.theme class+="select" %} <span class="icon is-small is-left">
<span class="icon is-small is-left"> <span class="fa fa-paint-brush"></span>
<span class="fa fa-paint-brush"></span> </div>
</div>
</div> </div>
</div>
</div>
<div class="field"> <div class="field">
<label class="label checkbox"> <label class="label checkbox">
{% render_field form.filter_replies %} {% render_field form.filter_replies %}
{{ form.filter_replies.label }} {{ form.filter_replies.label }}
</label> </label>
</div> </div>
<div class="field"> <div class="field">
<label class="label checkbox""> <label class="label checkbox"">
{% render_field form.filter_boosts %} {% render_field form.filter_boosts %}
{{ form.filter_boosts.label }} {{ form.filter_boosts.label }}
</label> </label>
</div> </div>
<div class="field"> <div class="field">
<label class="label" for="timezone">{{ form.timezone.label }}</label> <label class="label" for="timezone">{{ form.timezone.label }}</label>
<div class="control has-icons-left"> <div class="control has-icons-left">
<div class="select"> <div class="select">
{% render_field form.timezone class+="select" %} {% render_field form.timezone class+="select" %}
<span class="icon is-small is-left"> <span class="icon is-small is-left">
<span class="fa fa-clock-o"></span> <span class="fa fa-clock-o"></span>
</div>
</div>
</div>
<div class="field">
<input type="submit" name="submit"
value="Save" class="button is-primary" >
</div> </div>
</div>
</div>
<div class="field">
<input type="submit" name="submit"
value="Save" class="button is-primary" >
</div>
</form> </form>
</div> </div>
{% endblock %} {% endblock %}