Sha256: 3f1882fab2683a338fee2ff8bcc1b5083356aadb4f97ad3f30fe5f5e46ffaa96

Contents?: true

Size: 1.65 KB

Versions: 6

Compression:

Stored size: 1.65 KB

Contents

- @title = "Edit #{resource_name.to_s.humanize}"
.container
  .row
    .center_panel
      .panel.panel-default.only

        .panel-heading
          = @title

        .panel-body

          = form_for resource, as: resource_name, url: registration_path(resource_name), layout: :horizontal do |f|

            / = devise_error_messages!

            = f.email_field :email, autofocus: true

            - if devise_mapping.confirmable? && resource.pending_reconfirmation?
              %p
                Currently waiting confirmation for: 
                = resource.unconfirmed_email

            = f.password_field :current_password
            = f.password_field :password, autocomplete: "off"
            = f.password_field :password_confirmation, autocomplete: "off"

            = f.submit "Update"

      - if devise_mapping.omniauthable?
        .panel.panel-default.only
          .panel-header
            Connect your accounts

          .panel-body
            %ul
              - resource_class.omniauth_providers.each do |provider|
                - if resource.identities.where( :provider => provider ).first
                  %li= link_to "Reconnect with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
                - else
                  %li= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)

      .panel.panel-default.only

        .panel-heading
          Cancel my account

        .panel-body
          %p
            Unhappy? 
            = button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
happy_seed-0.0.17 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml
happy_seed-0.0.16 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml
happy_seed-0.0.15 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml
happy_seed-0.0.14 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml
happy_seed-0.0.13 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml
happy_seed-0.0.12 lib/generators/happy_seed/devise/templates/app/views/devise/registrations/edit.html.haml