parent
df594b9666
commit
683fc31c5d
@ -1,33 +1,70 @@
|
|||||||
%p
|
.row
|
||||||
%strong Name:
|
.col
|
||||||
= @recipient.name
|
%p
|
||||||
%p
|
%strong School:
|
||||||
%strong Phone:
|
= @school.name
|
||||||
= @recipient.phone
|
%p
|
||||||
%p
|
%strong Recipient:
|
||||||
%strong Birth date:
|
= @recipient.name
|
||||||
= @recipient.birth_date
|
|
||||||
%p
|
- if @recipient.phone.present?
|
||||||
%strong Gender:
|
%p
|
||||||
= @recipient.gender
|
%strong Phone:
|
||||||
%p
|
= @recipient.phone
|
||||||
%strong Race:
|
|
||||||
= @recipient.race
|
- if @recipient.birth_date.present?
|
||||||
%p
|
%p
|
||||||
%strong Ethnicity:
|
%strong Birth date:
|
||||||
= @recipient.ethnicity
|
= @recipient.birth_date
|
||||||
%p
|
|
||||||
%strong Home language:
|
- if @recipient.gender.present?
|
||||||
= @recipient.home_language_id
|
%p
|
||||||
%p
|
%strong Gender:
|
||||||
%strong Income:
|
= @recipient.gender
|
||||||
= @recipient.income
|
|
||||||
%p
|
- if @recipient.race.present?
|
||||||
%strong Opted out:
|
%p
|
||||||
= @recipient.opted_out
|
%strong Race:
|
||||||
%p
|
= @recipient.race
|
||||||
%strong School:
|
|
||||||
= @recipient.school_id
|
- if @recipient.ethnicity.present?
|
||||||
|
%p
|
||||||
|
%strong Ethnicity:
|
||||||
|
= @recipient.ethnicity
|
||||||
|
|
||||||
|
- if @recipient.home_language_id.present?
|
||||||
|
%p
|
||||||
|
%strong Home language:
|
||||||
|
= @recipient.home_language_id
|
||||||
|
|
||||||
|
- if @recipient.income.present?
|
||||||
|
%p
|
||||||
|
%strong Income:
|
||||||
|
= @recipient.income
|
||||||
|
|
||||||
|
%p
|
||||||
|
%strong Opted out:
|
||||||
|
= @recipient.opted_out
|
||||||
|
|
||||||
= link_to 'Edit', edit_school_recipient_path(@school, @recipient)
|
= link_to 'Edit', edit_school_recipient_path(@school, @recipient)
|
||||||
|
|
|
|
||||||
= link_to 'Back', school_path(@school)
|
= link_to 'Back', school_path(@school)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
%br
|
||||||
|
%h4 Attempts
|
||||||
|
%table{style: 'width: 100%;'}
|
||||||
|
%tbody
|
||||||
|
%thead{style: 'font-weight: bold;'}
|
||||||
|
%th Date
|
||||||
|
%th Question
|
||||||
|
%th Response
|
||||||
|
- @recipient.attempts.each do |attempt|
|
||||||
|
%tr.attempt
|
||||||
|
%td
|
||||||
|
= attempt.sent_at.strftime('%x') if attempt.sent_at.present?
|
||||||
|
%td= link_to truncate(attempt.question.text, length: 60), [@school, attempt.question], title: attempt.question.text
|
||||||
|
%td= "(#{attempt.answer_index}) #{attempt.response}"
|
||||||
|
|||||||
Loading…
Reference in new issue