summaryrefslogtreecommitdiff
path: root/users/app/views/users/_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/views/users/_form.html.haml')
-rw-r--r--users/app/views/users/_form.html.haml8
1 files changed, 2 insertions, 6 deletions
diff --git a/users/app/views/users/_form.html.haml b/users/app/views/users/_form.html.haml
index 39e26a6..cb51175 100644
--- a/users/app/views/users/_form.html.haml
+++ b/users/app/views/users/_form.html.haml
@@ -3,13 +3,9 @@
= simple_form_for @user, :validate => true, :format => :json, :html => html do |f|
%legend
= t(only || :signup_message)
- - if !only || only == :change_login
- = f.input :login, :input_html => { :id => :srp_username }
- - if !only || only == :change_password
- = f.input :password, :required => true, :validate => true, :input_html => { :id => :srp_password }
- = f.input :password_confirmation, :required => true, :input_html => { :id => :srp_password_confirmation }
+ = yield
.pull-right
- = f.button :submit, :class => 'btn-primary'
+ = f.button :submit
- unless only
= link_to t(:cancel), root_url, :class => :btn
.clearfix