Sha256: 72721ebc9f36a0ee011bd437d1b4108c04077a3216874701aa4562dc67ec9665

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

<div class="devise-bootstrap-form">
  <div class="devise-bootstrap-form-row">
    <div class="devise-bootstrap-form-col">
      <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 do %>
          <%= f.submit t('.update'), class: "btn btn-lg btn-block 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-block btn-danger", data: { confirm: t('.are_you_sure') }, method: :delete %></p>

      <%= link_to t('devise.shared.links.back'), :back %>
    </div>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-bootstrap-form-0.4.0 app/views/i18n/registrations/edit.html.erb
devise-bootstrap-form-0.3.0 app/views/i18n/registrations/edit.html.erb