Sha256: 613cee99c076fa76be8d28d5b72335219d3c80c2b1be204165756b74084a97c8

Contents?: true

Size: 1.65 KB

Versions: 5

Compression:

Stored size: 1.65 KB

Contents

.ui.middle.aligned.center.aligned.grid
  .column
    %h2.ui.center.aligned.dividing.header.teal
      %i.lock.icon
      <%- if options[:metatags] %>
      = title("Edit #{resource_name.to_s.humanize}")
      <% else -%>
      = "Edit #{resource_name.to_s.humanize}"
      <%- end %>
    %div{class: "ui form large #{"error" if resource.errors.any?}"}
      = simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
        = f.error_notification
        .field
          = f.input :email, required: true, autofocus: true
          - if devise_mapping.confirmable? && resource.pending_reconfirmation?
            %p
              Currently waiting confirmation for: #{resource.unconfirmed_email}
          = f.input :password, hint: "Leave it blank if you don't want to change it", required: false, input_html: { autocomplete: 'new-password' }
          = f.input :password_confirmation, required: false, input_html: { autocomplete: 'new-password' }
          = f.input :current_password, hint: 'We need your current password to confirm your changes', required: true, input_html: { autocomplete: 'current-password' }
        .actions
          = f.button :submit
      .ui.horizontal.divider or
      %h4.ui.light.grey.header Cancel my account
      %p
        Unhappy? #{button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete ,class: "ui submit button red tiny "}
      .ui.horizontal.list
        .item= link_to "Back", :back
:css
  body > .grid { height: 90%; }
  .column { max-width: 450px; }
  @media (min-width: 768px){
    .column { max-width: 600px; }
  }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
semantic_ui_views_generator-0.0.9 lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
semantic_ui_views_generator-0.0.8 lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
semantic_ui_views_generator-0.0.7 lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
semantic_ui_views_generator-0.0.6 lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt
semantic_ui_views_generator-0.0.5 lib/generators/semantic/templates/devise/simple_form/haml/registrations/edit.html.haml.tt