Sha256: 76e76f64d517838687e0120e7efa23044e2c91da405b0b07b22418ced7d38136

Contents?: true

Size: 1.59 KB

Versions: 14

Compression:

Stored size: 1.59 KB

Contents

<div class="row">
  <div class="col-lg-4 col-md-6 ml-auto mr-auto">
    <%- if options[:metatags] %>
    <h2 class="text-center"><%%= title("Edit #{resource_name.to_s.humanize}") %></h2>
    <% else -%>
    <h2 class="text-center">Edit <%%= resource_name.to_s.humanize %></h2>
    <%- end %>
    <hr>
    <%%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
      <%%= f.error_notification %>
      <div class="form-group">
        <%%= f.input :email, required: true, autofocus: true %>
        <%% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
          <p>Currently waiting confirmation for: <%%= resource.unconfirmed_email %></p>
        <%% end %>
        <%%= f.input :password, hint: "Leave it blank if you don't want to change it", required: false, input_html: { autocomplete: 'new-password' } %>
        <%%= f.input :password_confirmation, required: false, input_html: { autocomplete: 'new-password' } %>
        <%%= f.input :current_password, hint: 'We need your current password to confirm your changes', required: true, input_html: { autocomplete: 'current-password' } %>
      </div>
      <div class="form-group">
        <%%= f.button :submit, 'Update', class: 'btn btn-primary btn-block btn-lg' %>
      </div>
    <%% end %>
    <hr>
    <h2>Cancel my account</h2>
    <p>Unhappy? <%%= button_to 'Cancel my account', registration_path(resource_name), class: 'btn btn-danger', data: { confirm: 'Are you sure? You cannot undo this.' }, method: :delete %></p>
    <%%= link_to "Back", :back %>
    <hr>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bootstrap_views_generator-0.1.16 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.15 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.14 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.13 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.12 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.11 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.10 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.9 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.8 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.7 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.6 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.5 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.4 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt
bootstrap_views_generator-0.1.3 lib/generators/bootstrap/templates/devise/simple_form/erb/registrations/edit.html.erb.tt