Commit fc3c57734da26039bf30253b3495d8926c33b755
1 parent
7e4739fe
Exists in
master
and in
4 other branches
Style resend confirmation instructions
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
8 additions
and
12 deletions
Show diff stats
app/views/devise/confirmations/new.html.erb
... | ... | @@ -1,12 +0,0 @@ |
1 | -<h2>Resend confirmation instructions</h2> | |
2 | - | |
3 | -<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> | |
4 | - <%= devise_error_messages! %> | |
5 | - | |
6 | - <div><%= f.label :email %><br /> | |
7 | - <%= f.email_field :email %></div> | |
8 | - | |
9 | - <div><%= f.submit "Resend confirmation instructions" %></div> | |
10 | -<% end %> | |
11 | - | |
12 | -<%= render partial: "devise/shared/links" %> |
... | ... | @@ -0,0 +1,8 @@ |
1 | +.login-box | |
2 | + %h3.page-title Resend confirmation instructions | |
3 | + = form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| | |
4 | + = devise_error_messages! | |
5 | + = f.email_field :email, placeholder: 'Email' | |
6 | + %div= f.submit "Resend confirmation instructions", class: 'btn btn-success' | |
7 | + %hr | |
8 | + = link_to "Sign in", new_session_path(resource_name) | ... | ... |