forked from extern/django-helpdesk
Bootstrap version of the user settings form
This commit is contained in:
parent
9433f34f9b
commit
5e9fd86941
@ -1,4 +1,4 @@
|
|||||||
{% extends "helpdesk/base.html" %}{% load i18n %}{% load url from future %}
|
{% extends "helpdesk/base.html" %}{% load i18n bootstrap %}{% load url from future %}
|
||||||
|
|
||||||
{% block helpdesk_title %}{% trans "Change User Settings" %}{% endblock %}
|
{% block helpdesk_title %}{% trans "Change User Settings" %}{% endblock %}
|
||||||
|
|
||||||
@ -9,16 +9,12 @@
|
|||||||
<p>Use the following options to change the way your helpdesk system works for you. These settings do not impact any other user.</p>
|
<p>Use the following options to change the way your helpdesk system works for you. These settings do not impact any other user.</p>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
|
|
||||||
<form method='post' action='./'>
|
<form role="form" method='post' action='./'>
|
||||||
<fieldset>
|
{% csrf_token %}
|
||||||
<dl>{% for field in form %}
|
{{ form|bootstrap }}
|
||||||
<dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt>
|
<div class="form-group">
|
||||||
<dd>{{ field }}</dd>
|
<input class="btn btn-primary" type='submit' value='{% trans "Save Options" %}' />
|
||||||
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %}
|
</div>
|
||||||
{% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %}
|
</form>
|
||||||
{% endfor %}</dl>
|
|
||||||
</fieldset>
|
|
||||||
<input class="btn btn-primary" type='submit' value='{% trans "Save Options" %}' />
|
|
||||||
{% csrf_token %}</form>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user