Better look for preferences page

This commit is contained in:
Michal Čihař 2012-03-02 17:39:45 +01:00
parent 1e6aed9a10
commit ad875bc0d1
2 changed files with 12 additions and 9 deletions

View File

@ -16,24 +16,26 @@
<form method="post" action="{% url 'accounts.views.profile' %}"> <form method="post" action="{% url 'accounts.views.profile' %}">
{% csrf_token %} {% csrf_token %}
<fieldset> <div class="accordion">
<legend>{% trans "Preferences" %}</legend> <h2><a href="#">{% trans "Preferences" %}</a></h2>
<div>
<table> <table>
{{ form.as_table }} {{ form.as_table }}
</table> </table>
</fieldset> </div>
<fieldset> <h2><a href="#">{% trans "Account" %}</a></h2>
<legend>{% trans "Account" %}</legend> <div>
<table> <table>
{{ userform.as_table }} {{ userform.as_table }}
</table> </table>
<span class="helptext">{% trans "Your name and email will appear as author on Git commits." %}</span> <span class="helptext">{% trans "Your name and email will appear as author on Git commits." %}</span>
</fieldset> </div>
<fieldset> <h2><a href="#">{% trans "Password" %}</a></h2>
<legend>{% trans "Password" %}</legend> <div>
{% url 'django.contrib.auth.views.password_change' as pw_url %} {% url 'django.contrib.auth.views.password_change' as pw_url %}
{% blocktrans %}You can change password on <a href="{{ pw_url }}">separate page</a>.{% endblocktrans %} {% blocktrans %}You can change password on <a href="{{ pw_url }}">separate page</a>.{% endblocktrans %}
</fieldset> </div>
</div>
<input type="submit" value="{% trans "Save" %}" class="button" /> <input type="submit" value="{% trans "Save" %}" class="button" />
</form> </form>

View File

@ -16,4 +16,5 @@ $(document).ready(function(){
}); });
return false; return false;
}); });
$('.accordion').accordion();
}); });