scsslint, flash styling, new parent start

This commit is contained in:
2015-09-24 22:00:26 -05:00
parent d123e63b76
commit 9f6813c7f2
14 changed files with 147 additions and 26 deletions

View File

@ -1,2 +1,4 @@
%ul.sub-nav
%li= link_to 'List', list_parents_path
%li= link_to 'New', new_parent_path

View File

@ -0,0 +1,25 @@
%h2 Add a New Parent
= form_for :parent 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
%h3 Children:
= fields_for :child do |child|
= child.label :first_name
= child.text_field :first_name
= child.label :last_name
= child.text_field :last_name
= f.submit

View File

@ -0,0 +1,2 @@
%h2 Parent
= raw(ap @parent)