Sha256: 516101ac0216d8c8fabb83e1018018b48b10f32abb35951d0830f9fe33eac945

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

.card
  .card-header
    %i.fas.fa-edit
      = t('devise.registration.edit.title', model: resource.class.model_name.human)
  .card-body
    = simple_form_for resource,
                      as: resource_name,
                      url: user_registration_path,
                      html: { method: :put } do |f|
      = f.error_notification
      .form-inputs
        = f.input :email, required: true, autofocus: true
        - if devise_mapping.confirmable? && resource.pending_reconfirmation?
          %p= t('devise.registration.waiting_confirmation', email: resource.unconfirmed_email)
        %hr
        = f.input :password,
                  label: t('activerecord.attributes.user.password'),
                  autocomplete: 'off',
                  hint: t('devise.registration.hint_password'),
                  required: false
        = f.input :password_confirmation,
                  label: t('activerecord.attributes.user.password_confirmation'),
                  required: false
        %hr
        = f.input :current_password,
                  label: t('activerecord.attributes.user.current_password'),
                  hint: t('devise.registration.hint_current_password'),
                  required: true
      .form-actions
        = f.button :submit, t('view.btn.update'), class: 'btn btn-primary btn-block'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cybele-2.3.2 templates/app_files/app/views/user/registrations/edit.html.haml
cybele-2.3.1 templates/app_files/app/views/user/registrations/edit.html.haml
cybele-2.2.0 templates/app_files/app/views/user/registrations/edit.html.haml
cybele-2.1.0 templates/app_files/app/views/user/registrations/edit.html.haml
cybele-2.0.0 templates/app_files/app/views/user/registrations/edit.html.haml