2015-09-18 15:50:52 -05:00
|
|
|
%h1 Parents
|
|
|
|
|
|
|
|
- @parents.each do |parent|
|
2015-10-04 20:27:03 -05:00
|
|
|
%ul.index
|
|
|
|
%li.name
|
|
|
|
= link_to parent.name, parent_path(parent)
|
|
|
|
= edit_btn(edit_parent_path(parent))
|
2015-10-03 08:04:16 -05:00
|
|
|
%li
|
2015-10-03 19:16:46 -05:00
|
|
|
= number_to_phone parent.phone
|
2015-10-03 08:04:16 -05:00
|
|
|
= page_link(parent)
|
2015-10-04 20:27:03 -05:00
|
|
|
|
|
|
|
- if parent.email.present?
|
|
|
|
%li= mail_to parent.email, nil, encode: 'hex'
|
|
|
|
|
|
|
|
- unless parent.children.empty?
|
|
|
|
%li Children:
|
|
|
|
%ul
|
|
|
|
- parent.children.each do |child|
|
|
|
|
%li= link_to child.name, child_path(child)
|