Sha256: eed8a38f0ebe64f735a608e43b8b11f3aac66a18c3c0293cc5fd843eda7d0d27

Contents?: true

Size: 1.38 KB

Versions: 17

Compression:

Stored size: 1.38 KB

Contents

= 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!

      .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
        <i>(leave blank if you don't want to change it)</i>
        = 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
        <i>(we need your current password to confirm your changes)</i>
        = 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
        <i>(appears in letters, e.g. "Dr Jane Smith, MRCP")</i>
        = f.text_field :signature

      .actions
        = f.submit "Update", class: "button save"

      = link_to "Back", :back

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc10 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.rc1 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta12 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta11 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta10 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta9 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta8 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta7 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta6 app/views/renalware/devise/registrations/edit.html.slim
renalware-core-2.0.0.pre.beta5 app/views/renalware/devise/registrations/edit.html.slim