clarion/lib/initfest/views/devise/registrations/edit.slim

21 lines
798 B
Plaintext
Raw Permalink Normal View History

2015-08-20 00:50:35 +03:00
- content_for(:title) { t :login_data }
2015-08-15 04:33:02 +03:00
2015-08-15 05:59:46 +03:00
= simple_form_for(resource, wrapper: :default, as: resource_name, url: registration_path(resource_name), html: { method: :put, multipart: true }) do |f|
2015-08-15 04:33:02 +03:00
.form_inputs
.form-inputs
h3.entry-title = t :login_data
= f.input :email, required: true
= f.input :language, collection: I18n.available_locales, required: true
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
p
= t :expected_validation, email: resource.unconfirmed_email
= f.input :password, autocomplete: "off", hint: t(:pass_update_hint1), required: false
= f.input :password_confirmation, required: false
= f.input :current_password, hint: t(:pass_update_hint2), required: true
.form-actions
= f.button :submit, t(:update)