We had inconsistent indentation in many places. Now we're fixing them and adding a linter to our CI so we don't accidentally introduce inconsistent indentations again.
26 lines
949 B
Plaintext
26 lines
949 B
Plaintext
<% provide :title, t("devise_views.confirmations.new.title") %>
|
|
<h2><%= t("devise_views.confirmations.new.title") %></h2>
|
|
|
|
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
|
|
<%= render "shared/errors", resource: resource %>
|
|
|
|
<div class="row">
|
|
<div class="small-12 columns">
|
|
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
|
|
|
|
<% if @requires_password %>
|
|
<p><%= f.password_field :password %></p>
|
|
<p><%= f.password_field :password_confirmation %></p>
|
|
<% end %>
|
|
|
|
<%= hidden_field_tag :confirmation_token, @confirmation_token %>
|
|
|
|
<div class="small-12 medium-6 small-centered">
|
|
<%= f.submit(t("devise_views.confirmations.new.submit"), class: "button expanded") %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|