From a4ed62bf9c6f9c434f65f9ad95476664364ee8af Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Wed, 25 Sep 2013 14:11:45 -0300 Subject: [PATCH] Better form rendering for user update --- src/accounts/forms.py | 2 +- src/accounts/templates/accounts/user_create_form.html | 2 +- src/accounts/templates/accounts/user_update_form.html | 37 +++++++++++++++++++++++++++++++------ src/colab/static/css/screen.css | 2 +- 4 files changed, 34 insertions(+), 9 deletions(-) diff --git a/src/accounts/forms.py b/src/accounts/forms.py index 74972d4..f92195c 100644 --- a/src/accounts/forms.py +++ b/src/accounts/forms.py @@ -36,7 +36,7 @@ class UserCreationForm(UserForm): class UserUpdateForm(UserForm): class Meta: model = User - fields = ('first_name', 'last_name', 'email', 'username', + fields = ('username', 'first_name', 'last_name', 'email', 'institution', 'role', 'twitter', 'facebook', 'google_talk', 'webpage') diff --git a/src/accounts/templates/accounts/user_create_form.html b/src/accounts/templates/accounts/user_create_form.html index 72d0e29..9106145 100644 --- a/src/accounts/templates/accounts/user_create_form.html +++ b/src/accounts/templates/accounts/user_create_form.html @@ -30,7 +30,7 @@ {% trans 'Personal Information' %} {% for field in user_form %}
-