summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-02-25 10:53:36 -0800
committerjessib <jessib@leap.se>2013-02-25 10:53:36 -0800
commitbace229e4d1cf593eaef80b8e8553d9d33c40c50 (patch)
tree8529e75bf1c5aff2eb737c74971ed6b15fb0524c /users/app
parenteb1cdaba1217ddd57fb801b13aadba29b356ba1e (diff)
Slight refactoring of partials
Diffstat (limited to 'users/app')
-rw-r--r--users/app/views/users/_login_and_password_fields.html.haml5
-rw-r--r--users/app/views/users/_password_fields.html.haml2
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 }