Sha256: ee4d179f9fbc70cb211e7483537c625b42729135d5ba1340f086cb4e461014cc

Contents?: true

Size: 1.92 KB

Versions: 12

Compression:

Stored size: 1.92 KB

Contents

- if @user.errors.any?
  - content_for :notification_alert do
    .notification.notification-error{data: {icon: 'm'}}
      %p 
        = Spina::User.human_attribute_name :cannot_be_created
        %small
          - @user.errors.full_messages.each do |msg|
            = msg
            %br/

= form_for [spina, :admin, @user] do |f|
  .table-container
    %table.table.table-form
      %tr
        %td
          = Spina::User.human_attribute_name :name
        %td
          = f.text_field :name, placeholder: Spina::User.human_attribute_name(:name_placeholder), class: 'large'

      %tr
        %td
          = Spina::User.human_attribute_name :email
          %small= Spina::User.human_attribute_name :email_description
        %td
          = f.text_field :email, placeholder: Spina::User.human_attribute_name(:email)

      %tr
        %td
          = Spina::User.human_attribute_name :password
          %small= Spina::User.human_attribute_name :password_description
        %td
          = f.password_field :password, placeholder: Spina::User.human_attribute_name(:password)

      %tr
        %td
          = Spina::User.human_attribute_name :password_confirmation
        %td
          = f.password_field :password_confirmation, placeholder: Spina::User.human_attribute_name(:password_confirmation)

      %tr
        %td
          #{Spina::User.human_attribute_name :admin}?
          %small= Spina::User.human_attribute_name :admin_description
        %td
          = f.check_box :admin, data: {switch: 'true'}

  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
    =t('spina.users.save')

  = link_to t('spina.cancel'), spina.admin_users_path, class: 'button button-link'

  - unless @user.new_record? || @user == current_user
    .pull-right= link_to t('spina.permanently_delete'), spina.admin_user_path(@user), method: :delete, data: {confirm: t('spina.users.delete_confirmation', user: @user)}, class: 'button button-link button-danger'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spina-0.6.24 app/views/spina/admin/users/_form.html.haml
spina-0.6.23 app/views/spina/admin/users/_form.html.haml
spina-0.6.22 app/views/spina/admin/users/_form.html.haml
spina-0.6.21 app/views/spina/admin/users/_form.html.haml
spina-0.6.20 app/views/spina/admin/users/_form.html.haml
spina-0.6.19 app/views/spina/admin/users/_form.html.haml
spina-0.6.18 app/views/spina/admin/users/_form.html.haml
spina-0.6.17 app/views/spina/admin/users/_form.html.haml
spina-0.6.16 app/views/spina/admin/users/_form.html.haml
spina-0.6.15 app/views/spina/admin/users/_form.html.haml
spina-0.6.14 app/views/spina/admin/users/_form.html.haml
spina-0.6.13 app/views/spina/admin/users/_form.html.haml