diff options
author | Azul <azul@leap.se> | 2012-11-25 13:21:23 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-26 09:30:51 +0100 |
commit | 76a3b91ad78d12ef82a0c01ca702720a510f1e22 (patch) | |
tree | e40a9661b4ceabddd42b9e8525462feae1608c15 /users/app/views | |
parent | ee3c9146e4bbe93ec1f00ee45386a82ec4363c4d (diff) |
basic changing of password and login working
Diffstat (limited to 'users/app/views')
-rw-r--r-- | users/app/views/users/_form.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/users/app/views/users/_form.html.haml b/users/app/views/users/_form.html.haml index 8914241..d26d17d 100644 --- a/users/app/views/users/_form.html.haml +++ b/users/app/views/users/_form.html.haml @@ -1,4 +1,5 @@ -= simple_form_for @user, :validate => true, :html => {:class => 'form-horizontal'} do |f| +- html = {:class => 'form-horizontal user form ' + (@user.new_record? ? 'new' : 'edit')} += simple_form_for @user, :validate => true, :html => html do |f| %legend = @user.new_record? ? t(:signup_message) : t(:edit_settings) = f.input :login, :input_html => { :id => :srp_username } |