From fc3c57734da26039bf30253b3495d8926c33b755 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 21 Nov 2013 09:46:09 +0200 Subject: [PATCH] Style resend confirmation instructions --- app/views/devise/confirmations/new.html.erb | 12 ------------ app/views/devise/confirmations/new.html.haml | 8 ++++++++ 2 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 app/views/devise/confirmations/new.html.erb create mode 100644 app/views/devise/confirmations/new.html.haml diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb deleted file mode 100644 index adc9b67..0000000 --- a/app/views/devise/confirmations/new.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Resend confirmation instructions

- -<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> - <%= devise_error_messages! %> - -
<%= f.label :email %>
- <%= f.email_field :email %>
- -
<%= f.submit "Resend confirmation instructions" %>
-<% 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 0000000..387ec76 --- /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) -- libgit2 0.21.2