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' %}">
{% csrf_token %}
<fieldset>
<legend>{% trans "Preferences" %}</legend>
<div class="accordion">
<h2><a href="#">{% trans "Preferences" %}</a></h2>
<div>
<table>
{{ form.as_table }}
</table>
</fieldset>
<fieldset>
<legend>{% trans "Account" %}</legend>
</div>
<h2><a href="#">{% trans "Account" %}</a></h2>
<div>
<table>
{{ userform.as_table }}
</table>
<span class="helptext">{% trans "Your name and email will appear as author on Git commits." %}</span>
</fieldset>
<fieldset>
<legend>{% trans "Password" %}</legend>
</div>
<h2><a href="#">{% trans "Password" %}</a></h2>
<div>
{% url 'django.contrib.auth.views.password_change' as pw_url %}
{% 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" />
</form>

View File

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