45 lines
2.3 KiB
Plaintext
45 lines
2.3 KiB
Plaintext
<div class="row">
|
|
<div class="account small-12 medium-9 column small-centered">
|
|
|
|
<i class="icon-angle-left left"></i> <%= link_to t("devise_views.registrations.edit.back_link"), :back, class: "left back" %>
|
|
|
|
<h1><%= t("devise_views.registrations.edit.edit") %> <%= resource_name.to_s.humanize %></h1>
|
|
|
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
|
<%= devise_error_messages! %>
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
<%= f.label :email, t("devise_views.registrations.edit.email_label") %>
|
|
<%= f.email_field :email, autofocus: true, placeholder: t("devise_views.registrations.edit.email_label") %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
<div><%= t("devise_views.registrations.edit.waiting_for") %> <%= resource.unconfirmed_email %></div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.label :password, t("devise_views.registrations.edit.password_label") %>
|
|
<span class="note"><%= t("devise_views.registrations.edit.leave_blank") %></span>
|
|
<%= f.password_field :password, autocomplete: "off", placeholder: t("devise_views.registrations.edit.password_label") %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.label :password_confirmation, t("devise_views.registrations.edit.password_confirmation_label") %>
|
|
<%= f.password_field :password_confirmation, autocomplete: "off", placeholder: t("devise_views.registrations.edit.password_confirmation_label") %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.label :current_password, t("devise_views.registrations.edit.current_password_label") %>
|
|
<span class="note"><%= t("devise_views.registrations.edit.need_current") %></span>
|
|
<%= f.password_field :current_password, autocomplete: "off", placeholder: t("devise_views.registrations.edit.current_password_label") %>
|
|
</div>
|
|
|
|
<div class="small-12 column">
|
|
<%= f.submit t("devise_views.registrations.edit.update_submit"), class: "button radius" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div> |