mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Finishes #179904795. Adds prompts to measures section on browse page
This commit is contained in:
parent
2a9810f7db
commit
228cf137ad
29 changed files with 915 additions and 129 deletions
18
app/presenters/student_survey_presenter.rb
Normal file
18
app/presenters/student_survey_presenter.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue