Sha256: bf5d8d9c14770d784eacb35640bc4d4584f8ac8c5cb16b00dba69067d3f6d39d
Contents?: true
Size: 1.93 KB
Versions: 13
Compression:
Stored size: 1.93 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'} = icon('check') =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
13 entries across 13 versions & 1 rubygems