30 lines
527 B
Plaintext
30 lines
527 B
Plaintext
|
%ul.sub-nav
|
||
|
%li= link_to 'back', :back
|
||
|
|
||
|
- if @user.errors.full_messages.any?
|
||
|
.errors
|
||
|
%h1 Uh oh!
|
||
|
- @user.errors.full_messages.each do |e|
|
||
|
%p= e
|
||
|
|
||
|
= form_for @user, as: :user, url: form_action do |f|
|
||
|
= f.label :first_name
|
||
|
= f.text_field :first_name
|
||
|
|
||
|
= f.label :last_name
|
||
|
= f.text_field :last_name
|
||
|
|
||
|
= f.label :phone
|
||
|
= f.phone_field :phone
|
||
|
|
||
|
= f.label :email, 'GMAIL ADDRESS'
|
||
|
= f.email_field :email
|
||
|
|
||
|
= f.label :admin
|
||
|
= f.check_box :admin
|
||
|
|
||
|
= f.label :staff
|
||
|
= f.check_box :staff
|
||
|
|
||
|
= f.submit
|