sms-pager/app/views/parents/index.html.haml
2015-10-04 20:27:03 -05:00

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)