diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-20 20:37:37 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-20 20:37:37 +0200 |
commit | 6a445b42003007cbb6c06f477c4d7a0b175688c1 (patch) | |
tree | 9c60577833f6ca717acdebfa66140124c88e8471 /app/views/devise/passwords | |
parent | 22f4c1908d0fc2dbce02e74ed03bf65f028d78d6 (diff) | |
download | gitlab-ce-6a445b42003007cbb6c06f477c4d7a0b175688c1.tar.gz |
fixed forgot password formv2.2.0pre
Diffstat (limited to 'app/views/devise/passwords')
-rw-r--r-- | app/views/devise/passwords/edit.html.erb | 16 | ||||
-rw-r--r-- | app/views/devise/passwords/edit.html.haml | 12 | ||||
-rw-r--r-- | app/views/devise/passwords/new.html.erb | 3 |
3 files changed, 14 insertions, 17 deletions
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb deleted file mode 100644 index ff76588c144..00000000000 --- a/app/views/devise/passwords/edit.html.erb +++ /dev/null @@ -1,16 +0,0 @@ -<h2>Change your password</h2> - -<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %> - <%= devise_error_messages! %> - <%= f.hidden_field :reset_password_token %> - - <div><%= f.label :password, "New password" %><br /> - <%= f.password_field :password %></div> - - <div><%= f.label :password_confirmation, "Confirm new password" %><br /> - <%= f.password_field :password_confirmation %></div> - - <div><%= f.submit "Change my password" %></div> -<% end %> - -<%= render :partial => "devise/shared/links" %> diff --git a/app/views/devise/passwords/edit.html.haml b/app/views/devise/passwords/edit.html.haml new file mode 100644 index 00000000000..dfd715ac13b --- /dev/null +++ b/app/views/devise/passwords/edit.html.haml @@ -0,0 +1,12 @@ += form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :class => "login-box" }) do |f| + = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" + %h3 Change your password + = devise_error_messages! + = f.hidden_field :reset_password_token + %div + = f.password_field :password, :class => "text top", :placeholder => "New password" + %div + = f.password_field :password_confirmation, :class => "text bottom", :placeholder => "Confirm new password" + %div + = f.submit "Change my password", :class => "btn primary" + .right= render :partial => "devise/shared/links" diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 76fc34968ff..cf56c5d2710 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,7 +1,8 @@ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :class => "login-box", :method => :post }) do |f| %> <%= image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" %> <%= devise_error_messages! %> - <%= f.email_field :email, :placeholder => "Email", :class => "text top" %> + <%= f.email_field :email, :placeholder => "Email", :class => "text" %> + <br/> <br/> <%= f.submit "Reset password", :class => "primary btn" %> <div class="right"> <%= render :partial => "devise/shared/links" %></div> |