You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
802 B
32 lines
802 B
%p
|
|
%strong Name:
|
|
= @school.name
|
|
%p
|
|
%strong District:
|
|
= @school.district_id
|
|
|
|
%p= link_to "Add Recipient", new_school_recipient_path(@school)
|
|
|
|
%p= link_to "Bulk Add Recipients", import_school_recipients_path(@school)
|
|
|
|
= link_to 'Edit', edit_school_path(@school)
|
|
|
|
|
= link_to 'Back', root_path
|
|
|
|
%br
|
|
%br
|
|
%br
|
|
%h4 School Recipients
|
|
%table{style: 'width: 100%;'}
|
|
%tbody
|
|
%thead
|
|
%th Name
|
|
%th Phone
|
|
%th{colspan: 2} Actions
|
|
- @school.recipients.each do |recipient|
|
|
%tr.recipient
|
|
%td= recipient.name
|
|
%td= recipient.phone
|
|
%td= link_to('Edit', edit_school_recipient_path(@school, recipient))
|
|
%td= link_to('Delete', school_recipient_path(@school, recipient), method: :delete, data: {confirm: 'Are you sure you want to delete this recipient?'})
|