diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-21 11:46:09 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-21 11:46:09 +0400 |
commit | fc3c57734da26039bf30253b3495d8926c33b755 (patch) | |
tree | cae291d9573f8ccca803ae0c27510ddf52b4a192 /app/views/devise/confirmations | |
parent | 7e4739fe22e1ea3baee65d3129f0bd3a569f4817 (diff) |
Style resend confirmation instructions
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/devise/confirmations')
-rw-r--r-- | app/views/devise/confirmations/new.html.erb | 12 | ||||
-rw-r--r-- | app/views/devise/confirmations/new.html.haml | 8 |
2 files changed, 8 insertions, 12 deletions
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb deleted file mode 100644 index adc9b672092..00000000000 --- a/app/views/devise/confirmations/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -<h2>Resend confirmation instructions</h2> - -<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> - <%= devise_error_messages! %> - - <div><%= f.label :email %><br /> - <%= f.email_field :email %></div> - - <div><%= f.submit "Resend confirmation instructions" %></div> -<% end %> - -<%= render partial: "devise/shared/links" %> diff --git a/app/views/devise/confirmations/new.html.haml b/app/views/devise/confirmations/new.html.haml new file mode 100644 index 00000000000..387ec7676d4 --- /dev/null +++ b/app/views/devise/confirmations/new.html.haml @@ -0,0 +1,8 @@ +.login-box + %h3.page-title Resend confirmation instructions + = form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| + = devise_error_messages! + = f.email_field :email, placeholder: 'Email' + %div= f.submit "Resend confirmation instructions", class: 'btn btn-success' + %hr + = link_to "Sign in", new_session_path(resource_name) |