Finishes #179904795. Adds prompts to measures section on browse page

This commit is contained in:
Alex Basson 2021-10-28 15:54:03 -04:00 committed by rebuilt
parent 2a9810f7db
commit 228cf137ad
29 changed files with 915 additions and 129 deletions

View file

@ -0,0 +1,18 @@
class StudentSurveyPresenter < DataItemPresenter
def initialize(measure_id:, survey_items:)
super(measure_id: measure_id)
@survey_items = survey_items
end
def title
"Student survey"
end
def id
"student-survey-items-#{@measure_id}"
end
def item_descriptions
@survey_items.map(&:prompt)
end
end