Sha256: 49dcb1516167784551d0fdd81c8407cbc4cd42bee9933ef7f114db2ea816d4b3

Contents?: true

Size: 1.31 KB

Versions: 8

Compression:

Stored size: 1.31 KB

Contents

.col-md-6.col-md-offset-3
  h1.page-header Edit #{resource_name.to_s.humanize}

  = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
    = devise_error_messages!

    .form-group
      = f.label :email, class: 'form-label'
      = f.email_field :email, autofocus: true, class: 'form-control'

    - if devise_mapping.confirmable? && resource.pending_reconfirmation?
      .alert.alert-success Currently waiting confirmation for: #{resource.unconfirmed_email}

    .form-group
      = f.label :password, class: 'form-label'
      i (leave blank if you don't want to change it)
      = f.password_field :password, autocomplete: "off", class: 'form-control'

    .form-group
      = f.label :password_confirmation, class: 'form-label'
      = f.password_field :password_confirmation, class: 'form-control'

    .form-group
      = f.label :current_password, class: 'form-label'
      i (we need your current password to confirm your changes)
      = f.password_field :current_password, class: 'form-control'

    = f.submit "Update", class: 'btn btn-primary btn-lg'

  h3 Cancel my account

  p
    | Unhappy? 
    = button_to 'Cancel my account', registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger'

  p = link_to 'Back', :back

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails-replicator-0.1.7 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.6 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.5 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.4 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.3 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.2 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.1 templates/devise/registrations/edit.html.slim
rails-replicator-0.1.0 templates/devise/registrations/edit.html.slim