mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 01:10:39 -07:00
Report that admin data is not included
This commit is contained in:
parent
78b29cc86d
commit
eff22d2ac8
5 changed files with 31 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class AdminDataPresenter < DataItemPresenter
|
||||
def initialize(measure_id:, admin_data_items:)
|
||||
super(measure_id: measure_id, has_sufficient_data: true)
|
||||
super(measure_id: measure_id, has_sufficient_data: false)
|
||||
@admin_data_items = admin_data_items
|
||||
end
|
||||
|
||||
|
|
@ -15,4 +15,8 @@ class AdminDataPresenter < DataItemPresenter
|
|||
def item_descriptions
|
||||
@admin_data_items.map(&:description)
|
||||
end
|
||||
|
||||
def reason_for_insufficiency
|
||||
"limited availability"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,4 +15,8 @@ class StudentSurveyPresenter < DataItemPresenter
|
|||
def item_descriptions
|
||||
@survey_items.map(&:prompt)
|
||||
end
|
||||
|
||||
def reason_for_insufficiency
|
||||
"low response rate"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,4 +15,8 @@ class TeacherSurveyPresenter < DataItemPresenter
|
|||
def item_descriptions
|
||||
@survey_items.map(&:prompt)
|
||||
end
|
||||
|
||||
def reason_for_insufficiency
|
||||
"low response rate"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<div class="accordion-body measure-accordion-body font-cabin font-size-14 weight-400">
|
||||
<% unless data_item_section.sufficient_data? %>
|
||||
<div class="alert alert-secondary" role="alert">
|
||||
Data not included due to low response rate
|
||||
Data not included due to <%= data_item_section.reason_for_insufficiency %>
|
||||
</div>
|
||||
<% end %>
|
||||
<ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue