Files
astuto/app/views/devise/passwords/new.html.erb
Riccardo Graziosi 78049a820c Add internationalization (#114)
🇬🇧 and 🇮🇹
2022-06-05 11:40:43 +02:00

22 lines
692 B
Plaintext

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
<h2><%= t('common.forms.auth.forgot_password') %></h2>
<%= render "devise/shared/error_messages", resource: resource %>
<div class="form-group">
<%= f.label :email, class: "sr-only" %>
<%= f.email_field :email,
autofocus: true,
autocomplete: "email",
placeholder: t('common.forms.auth.email'),
required: true,
class: "form-control" %>
</div>
<div class="actions">
<%= f.submit t('common.forms.auth.send_reset_password_instructions'), class: "btn btn-dark btn-block" %>
</div>
<% end %>
<%= render "devise/shared/links" %>