Skip to content

Commit

Permalink
Fix & update resend confirmation view (#4277)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Jan 26, 2024
1 parent 1463ea1 commit 93f40f5
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions app/views/devise/confirmations/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
<div class="form-container">
<h2>Resend confirmation instructions</h2>
<div class="form-container panel panel-default">
<div class="panel-body">
<h2>Resend confirmation email</h2>

<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, class: "form" }) do |f| %>
<%= devise_error_messages! %>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post, class: "form" }) do |f| %>
<%= render "devise/shared/error_messages", resource: resource %>

<fieldset class="fieldset--email"><%= f.label :email %><br />
<%= f.email_field :email, autofocus: true, required: true %></fieldset>
<fieldset class="fieldset--email">
<%= f.label :email, "Email Address" %><br />
<%= f.email_field :email, autofocus: true, required: true %>
</fieldset>

<div class="submit-container"><%= f.submit "Resend confirmation instructions" %></div>
<% end %>
<div class="submit-container"><%= f.submit "Submit" %></div>
<% end %>
</div>

<%= render "devise/shared/links" %>
<div class="panel-footer">
<%= render "devise/shared/links" %>
</div>
</div>

0 comments on commit 93f40f5

Please sign in to comment.