diff options
author | jessib <jessib@leap.se> | 2013-02-25 10:53:36 -0800 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-02-25 10:53:36 -0800 |
commit | bace229e4d1cf593eaef80b8e8553d9d33c40c50 (patch) | |
tree | 8529e75bf1c5aff2eb737c74971ed6b15fb0524c | |
parent | eb1cdaba1217ddd57fb801b13aadba29b356ba1e (diff) |
Slight refactoring of partials
-rw-r--r-- | users/app/views/users/_login_and_password_fields.html.haml | 5 | ||||
-rw-r--r-- | users/app/views/users/_password_fields.html.haml | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/users/app/views/users/_login_and_password_fields.html.haml b/users/app/views/users/_login_and_password_fields.html.haml index 5f38a9c..0baefc7 100644 --- a/users/app/views/users/_login_and_password_fields.html.haml +++ b/users/app/views/users/_login_and_password_fields.html.haml @@ -1,3 +1,2 @@ -= f.input :login, :input_html => { :id => :srp_username } -= f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password } -= f.input :password_confirmation, :hint => t(:can_retype_old_password), :required => true, :input_html => { :id => :srp_password_confirmation }
\ No newline at end of file += render :partial => 'login_field', :locals => {:f => f} += render :partial => 'password_fields', :locals => {:f => f, :password_confirmation_hint => t(:can_retype_old_password)}
\ No newline at end of file diff --git a/users/app/views/users/_password_fields.html.haml b/users/app/views/users/_password_fields.html.haml index c2e6a69..47b7b07 100644 --- a/users/app/views/users/_password_fields.html.haml +++ b/users/app/views/users/_password_fields.html.haml @@ -1,2 +1,2 @@ = f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password } -= f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation } += f.input :password_confirmation, :required => true, :hint => local_assigns[:password_confirmation_hint], :input_html => { :id => :srp_password_confirmation } |