= within_admin_layout(title: "Update Profile") .document h4 #{resource}'s Profile = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| = custom_devise_error_messages! = f.hidden_field :with_extended_validation .field.large-8.small-6 = f.label :email = f.email_field :email, autofocus: true - if devise_mapping.confirmable? && resource.pending_reconfirmation? div Currently waiting confirmation for: #{resource.unconfirmed_email} .field.large-8.small-6 = f.label :password (leave blank if you don't want to change it) = f.password_field :password, autocomplete: "off" .field.large-8.small-6 = f.label :password_confirmation = f.password_field :password_confirmation, autocomplete: "off" .field.large-8.small-6 = f.label :current_password (we need your current password to confirm your changes) = f.password_field :current_password, autocomplete: "off" .field.large-8.small-6 = f.label :professional_position = f.text_field :professional_position .field.large-8.small-6 = f.label :signature (appears in letters, e.g. "Dr Jane Smith, MRCP") = f.text_field :signature .actions = f.submit "Update", class: "button save" = link_to "Back", :back