Mercurial > hg > agora
view templates/field.djhtml @ 130:5ab229c9d348
Add back ability to edit account settings
* Account/profile editing is now done with a ModelForm, instead of processing
the data manually. Help text and verbose names have been moved to the
Profile model and to the UserForm (in the latter case, it's because we
can't edit the User model directly).
* The profile page now shows pygments style information and sections of the
profile that are not filled are now hidden.
* Some parts of apps/profiles/views.py have been rewritten (the getprofile()
method has been removed, as it's no longer necessary, and the editprofile()
view was rewritten in accordance with the switch to using ModelForms).
* The styling for forms has been modified slightly.
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sat, 22 Sep 2012 11:18:23 -0400 |
parents | |
children |
line wrap: on
line source
{% if field.errors %} <div class="errors"> {{ field.errors }} </div> {% endif %} <div class="form-line"> {{ field.label_tag }} <div class="form-input"> {{ field }} {% if field.help_text %} <p>{{ field.help_text|safe }}</p> {% endif %} </div> </div>