app port from old version
This commit is contained in:
8
app/views/children/index.haml
Normal file
8
app/views/children/index.haml
Normal file
@@ -0,0 +1,8 @@
|
||||
%h1 Children
|
||||
|
||||
- @children.each do |child|
|
||||
%ul
|
||||
%li= child.name
|
||||
%ul
|
||||
- child.parents.each do |parent|
|
||||
%li #{parent.name}: #{number_to_phone parent.phone}
|
11
app/views/parents/index.haml
Normal file
11
app/views/parents/index.haml
Normal file
@@ -0,0 +1,11 @@
|
||||
%h1 Parents
|
||||
|
||||
- @parents.each do |parent|
|
||||
%ul
|
||||
%li= parent.name
|
||||
%li= number_to_phone parent.phone
|
||||
%li= mail_to parent.email
|
||||
%li Children:
|
||||
%ul
|
||||
- parent.children.each do |child|
|
||||
%li= child.name
|
4
app/views/staff/index.haml
Normal file
4
app/views/staff/index.haml
Normal file
@@ -0,0 +1,4 @@
|
||||
%h1 Staff
|
||||
%ul
|
||||
- @staff.each do |staff|
|
||||
%li= staff.name
|
5
app/views/users/index.haml
Normal file
5
app/views/users/index.haml
Normal file
@@ -0,0 +1,5 @@
|
||||
%h1 Users
|
||||
|
||||
%ul
|
||||
- @users.each do |user|
|
||||
%li= user.name
|
Reference in New Issue
Block a user