Sha256: ea50b2c25dfe0dcc49aea708f80242e9a676b57971f0a48d42af2b58440aa8ff

Contents?: true

Size: 1.7 KB

Versions: 5

Compression:

Stored size: 1.7 KB

Contents

.ui.middle.aligned.center.aligned.grid
  .column
    <%- if options[:metatags] %>
    h2.ui.center.aligned.dividing.header.teal
      i.lock.icon
      = title("Edit #{resource_name.to_s.humanize}")
    <%- else %>
    h2.ui.center.aligned.dividing.header.teal
      i.lock.icon
      | 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/slim/registrations/edit.html.slim.tt
semantic_ui_views_generator-0.0.8 lib/generators/semantic/templates/devise/simple_form/slim/registrations/edit.html.slim.tt
semantic_ui_views_generator-0.0.7 lib/generators/semantic/templates/devise/simple_form/slim/registrations/edit.html.slim.tt
semantic_ui_views_generator-0.0.6 lib/generators/semantic/templates/devise/simple_form/slim/registrations/edit.html.slim.tt
semantic_ui_views_generator-0.0.5 lib/generators/semantic/templates/devise/simple_form/slim/registrations/edit.html.slim.tt