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.
sqm-dashboards/app/views/schools/show.html.haml

34 lines
909 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)
%p= link_to "Create Recipient List", new_school_recipient_list_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{style: 'font-weight: bold;'}
%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?'})