Sha256: 6a584b7541299c940831b4823297f6ec8adbd1b7de6a045bb39a5d78fcda6f9f
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
- if @user.errors.any? - content_for :notification_alert do .notification.notification-error{data: {icon: 'm'}} %p De gebruiker kan niet worden opgeslagen %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 %label Naam %td = f.text_field :name, placeholder: "Naam van de gebruiker", class: 'large' %tr %td %label Emailadres %small Gebruik een uniek emailadres %td = f.text_field :email, placeholder: "Emailadres" %tr %td %label Wachtwoord %small Leeglaten om niet te veranderen %td = f.password_field :password, placeholder: "Wachtwoord" %tr %td %label Bevestig wachtwoord %td = f.password_field :password_confirmation, placeholder: "Bevestig wachtwoord" %tr %td %label Beheerder? %small Beheerders kunnen gebruikers aanmaken %td = f.check_box :admin, data: {switch: 'true'} %button.button.button-primary{type: 'submit', data: {icon: 'o'}} Gebruiker opslaan = link_to "Annuleren", spina.admin_users_path, class: 'button button-link' - unless @user.new_record? || @user == current_user .pull-right= link_to "Definitief verwijderen", spina.admin_user_path(@user), method: :delete, data: {confirm: "Weet je zeker dat je de gebruiker <strong>#{@user}</strong> wilt verwijderen?"}, class: 'button button-link button-danger'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spina-0.6.12 | app/views/spina/admin/users/_form.html.haml |
spina-0.6.11 | app/views/spina/admin/users/_form.html.haml |