20 lines
475 B
Plaintext
20 lines
475 B
Plaintext
%h1 Parents
|
|
|
|
- @parents.each do |parent|
|
|
%ul.index
|
|
%li.name
|
|
= link_to parent.name, parent_path(parent)
|
|
= edit_btn(edit_parent_path(parent))
|
|
%li
|
|
= number_to_phone parent.phone
|
|
= page_link(parent)
|
|
|
|
- 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)
|