Sha256: 6f67a5b73de16cd9dd3b7bd545ac1614873412a511fd01cde1dc765c7457fae6
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 KB
Contents
- @page_title = _('Account') %h2= _('About') = render 'elabs/member/users/form' = form_for(resource, as: resource_name, url: { controller: 'elabs/auth/registrations', action: :update }, html: { method: :put }) do |f| = devise_error_messages! %h2.separator= _('Sensitive changes') .field = f.label :current_password .field-input = f.password_field :current_password, autocomplete: 'off' .field-hint= _('(we need your current password to confirm the following changes)') %hr.separator .field = f.label :email .field-input = f.email_field :email, autofocus: true, autocomplete: 'email' - if devise_mapping.confirmable? && resource.pending_reconfirmation? .field-hint= format(_('Currently waiting confirmation for: %<email>s'), email: resource.unconfirmed_email) .field = f.label :password .field-input = f.password_field :password, autocomplete: 'off' .field-hint= _("(leave blank if you don't want to change it)") - if @minimum_password_length .field-hint= format(_('%<number>i characters minimum'), number: @minimum_password_length) .field = f.label :password_confirmation .field-input= f.password_field :password_confirmation, autocomplete: 'off' .actions = f.submit 'Save', class: 'btn btn--save' %h2.separator= _('Cancel my account') .alert.alert--warning.mbs -# haml-lint:disable LineLength = _('Cancelling your account will delete all the content you created, with no possibility to restore it. This is definitive.') -# haml-lint:enable LineLength = button_to({ controller: 'elabs/auth/registrations', action: :destroy }, data: { confirm: _('Are you sure?') }, class: 'btn btn--danger', method: :delete) do = icon_text 'angry', _('Cancel my account')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elabs-2.0.0 | app/views/elabs/auth/registrations/edit.html.haml |
elabs-2.0.0.pre | app/views/elabs/auth/registrations/edit.html.haml |