Sha256: f480acacc8257de5ddb7c50124df2c8ec44e988c048bea7a390a7c05b8b449c2

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

<h2 class="text-center">t(".title", resource: resource_name.to_s.humanize)</h2>
<%= bootstrap_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  <%= render "devise/shared/error_messages", resource: resource %>

  <%= f.email_field :email %>

  <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
    <div><%= t(".currently_waiting_confirmation_for_email", email: resource.unconfirmed_email) %></div>
  <% end %>

  <%= f.password_field :password, autocomplete: "off", help: t(".leave_blank_if_you_don_t_want_to_change_it") + " " + t("devise.shared.minimum_password_length", count: @minimum_password_length) %>
  <%= f.password_field :password_confirmation, autocomplete: "off", class: "required" %>
  <%= f.password_field :current_password,
                       autocomplete: "off",
                       class: "required",
                       help: t(".we_need_your_current_password_to_confirm_your_changes") %>

  <%= f.form_group class: "d-grid" do %>
    <%= f.submit t(".update"), class: "btn btn-lg btn-primary" %>
  <% end %>
<% end %>

<h2><%= t(".cancel_my_account") %></h2>

<p><%= t(".unhappy") %> <%= button_to t(".cancel_my_account"), registration_path(resource_name), class: "btn btn-danger", data: { confirm: t(".are_you_sure") }, method: :delete %></p>

<%= link_to t("devise.shared.links.back"), :back %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise-bootstrap-form-1.0.0.alpha.pre.1 app/views/i18n/registrations/edit.html.erb