2015-10-20 21:49:59 -05:00
|
|
|
%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
|
|
|
|
|
2015-10-23 19:57:32 -05:00
|
|
|
= f.label :active
|
|
|
|
= f.check_box :active
|
|
|
|
|
2015-10-20 21:49:59 -05:00
|
|
|
= f.submit
|