Files
grecia/app/views/devise/confirmations/new.html.erb
Javi Martín f9ed186909 Add rubocop spacing rules
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00

26 lines
1.0 KiB
Plaintext

<% provide :title do %><%= t("devise_views.confirmations.new.title") %><% end %>
<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, placeholder: t("devise_views.confirmations.new.email_label"), 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" %>