26 lines
465 B
Plaintext
26 lines
465 B
Plaintext
%h2 Edit #{@parent.name}
|
|
|
|
%ul.sub-nav
|
|
%li= link_to 'back', :back
|
|
|
|
- if @parent.errors.full_messages.any?
|
|
.errors
|
|
%h1 Uh oh!
|
|
- @parent.errors.full_messages.each do |e|
|
|
%p= e
|
|
|
|
= form_for @parent, as: :parent, url: update_parent_path 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
|
|
= f.email_field :email
|
|
|
|
= f.submit
|