sms-pager/app/views/parents/index.html.haml

14 lines
288 B
Plaintext

%h1 Parents
- @parents.each do |parent|
%ul
%li
= link_to parent.name, parent_path(parent)
= page_link(parent)
%li= number_to_phone parent.phone
%li= mail_to parent.email
%li Children:
%ul
- parent.children.each do |child|
%li= child.name