diff --git a/app/presenters/measure_presenter.rb b/app/presenters/measure_presenter.rb index 0e15d096..0067769a 100644 --- a/app/presenters/measure_presenter.rb +++ b/app/presenters/measure_presenter.rb @@ -16,10 +16,6 @@ class MeasurePresenter "Measure #{measure_id}" end - def title - "Measure #{measure_id}" - end - def gauge_presenter GaugePresenter.new(zones:, score: score.average) end diff --git a/app/presenters/parent_scale_presenter.rb b/app/presenters/parent_scale_presenter.rb index c8dbf319..96dc0435 100644 --- a/app/presenters/parent_scale_presenter.rb +++ b/app/presenters/parent_scale_presenter.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true -class ParentScalePresenter < MeasurePresenter - attr_reader :scale, :academic_year, :school, :name, :description +class ParentScalePresenter + attr_reader :scale, :academic_year, :school, :name, :description, :id def initialize(scale:, academic_year:, school:) @scale = scale @@ -9,6 +9,7 @@ class ParentScalePresenter < MeasurePresenter @school = school @name = scale.name @description = scale.description + @id = scale.scale_id end def title diff --git a/app/views/overview/_student_parent_toggle.html.erb b/app/views/overview/_student_parent_toggle.html.erb index 558ec63c..c1ac2ba2 100644 --- a/app/views/overview/_student_parent_toggle.html.erb +++ b/app/views/overview/_student_parent_toggle.html.erb @@ -1,7 +1,10 @@