Sha256: 486b5c149ab1cc249463e547340ce904e6df3ef6bf28de017b10b7cebe395851

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

- @page_title = _('Change your password')

.devise
  .devise__form
    .devise__form__wrapper
      = form_for(resource, as: resource_name,
          url: { controller: 'elabs/auth/passwords', action: 'update' }, html: { method: :put }) do |f|
        - if resource.errors.any?
          .error
            %h2= format(n_('An error prevented your password from being changed:',
                              '%<nb>i errors prevented your password from being changed:',
                              resource.errors.count), nb: resource.errors.count)
            %ul
              - resource.errors.full_messages.each do |message|
                %li= message

        = f.hidden_field :reset_password_token

        .field
          = f.label :password, _('New password')
          .field-input
            = f.password_field :password, autofocus: true, autocomplete: 'off'
            - if @minimum_password_length
              .field-hint= format(_('%<number>i characters minimum'), number: @minimum_password_length)
        .field
          = f.label :password_confirmation, _('Confirm new password')
          .field-input= f.password_field :password_confirmation, autocomplete: 'off'
        .actions
          = f.submit _('Change my password'), class: 'btn btn--brand btn--block'

  = render 'elabs/auth/shared/links'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
elabs-4.0.0 app/views/elabs/auth/passwords/edit.html.haml
elabs-3.0.0 app/views/elabs/auth/passwords/edit.html.haml
elabs-2.0.0 app/views/elabs/auth/passwords/edit.html.haml
elabs-2.0.0.pre app/views/elabs/auth/passwords/edit.html.haml