mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
feat: Add links from analyze to browse page
This commit is contained in:
parent
51b9ed17aa
commit
a72b19511e
5 changed files with 25 additions and 12 deletions
|
|
@ -68,6 +68,7 @@
|
|||
|
||||
.measure-description {
|
||||
text-align: center;
|
||||
color: $gray-1;
|
||||
}
|
||||
|
||||
.measure-card {
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ class ParentScalePresenter
|
|||
.values.average
|
||||
end
|
||||
|
||||
def measure
|
||||
scale.measure
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def scale_id
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<div class="bg-color-white flex-grow-1 col-9">
|
||||
|
||||
<% @presenter.measures.each do |measure| %>
|
||||
<section class="mb-6">
|
||||
<section id="<%= measure.measure_id %>" class="mb-6">
|
||||
<%= link_to("MEASURE " + measure.measure_id.upcase, district_school_category_path( @district, @school, @presenter.category, {year: @presenter.selected_academic_years&.last&.range , anchor: "#{measure.measure_id}"}), class: "construct-id", data: {turbo_frame: "_top"}) %>
|
||||
<h2> <%= measure.name %> </h2>
|
||||
<%= render partial: "grouped_bar_chart" , locals: { measure: measure, columns: @presenter.graph.columns} %>
|
||||
|
|
@ -27,6 +27,9 @@
|
|||
|
||||
<% if @presenter.show_secondary_graph?(measure:) %>
|
||||
<section class="mb-6">
|
||||
<% measure.scales.parent_scales.each do | scale| %>
|
||||
<label id="<%= scale.scale_id %>" hidden> </label>
|
||||
<% end %>
|
||||
<%= link_to("Parent Survey", district_school_category_path( @district, @school, @presenter.category, {year: @presenter.selected_academic_years&.last&.range , anchor: "#{measure.measure_id}"}), class: "construct-id", data: {turbo_frame: "_top"}) %>
|
||||
<h2> <%= measure.subcategory.name %> </h2>
|
||||
<%= render partial: "grouped_bar_chart" , locals: { measure: measure, columns: @presenter.columns_for_measure(measure:)} %>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<div id="<%= measure_presenter.id %>" class="measure-section mx-4">
|
||||
<p class="construct-id"><%= measure_presenter.title %></p>
|
||||
<h3 class="measure-description sub-header-4 mb-5 "><%= measure_presenter.name %></h3>
|
||||
<%= link_to(district_school_analyze_index_path(@district, @school, { academic_year: @academic_year.range, category: measure_presenter.measure.subcategory.category.category_id, subcategory: measure_presenter.measure.subcategory.subcategory_id, anchor: measure_presenter.id}), class: "measure-description sub-header-4 mb-5") do %>
|
||||
<h3 class="measure-description sub-header-4 mb-5 "><%= measure_presenter.name %></h3>
|
||||
<% end %>
|
||||
<div>
|
||||
<%= render partial: "gauge_graph", locals: { gauge: measure_presenter.gauge_presenter, gauge_class: 'gauge-graph-sm', font_class: 'weight-700' } %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
<section class="subcategory-section">
|
||||
<div id="<%= subcategory.id %>" class="p-7">
|
||||
<p class="construct-id">Subcategory <%= subcategory.id %></p>
|
||||
<%= link_to(district_school_analyze_index_path(@district, @school, { academic_year: @academic_year.range, category: subcategory.subcategory.category.category_id, subcategory: subcategory.id})) do %>
|
||||
<p class="construct-id">Subcategory <%= subcategory.id %></p>
|
||||
<% end %>
|
||||
|
||||
<h2 class="sub-header-2 font-bitter mb-7"><%= subcategory.name %></h2>
|
||||
|
||||
<div class="d-flex justify-content-between align-items-end">
|
||||
|
|
@ -17,8 +20,8 @@
|
|||
data-bs-trigger="hover focus"
|
||||
data-bs-content="The number of publicly available school data sources, often collected from the MA Department of Elementary and Secondary Education."
|
||||
data-bs-placement="bottom"
|
||||
>
|
||||
<p class="response-rate-percentage"><%= subcategory.admin_collection_rate.first %> / <%= subcategory.admin_collection_rate.last %></p>
|
||||
>
|
||||
<p class="response-rate-percentage"><%= subcategory.admin_collection_rate.first %> / <%= subcategory.admin_collection_rate.last %></p>
|
||||
<p>school data sources</p>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -27,7 +30,7 @@
|
|||
data-bs-trigger="hover focus"
|
||||
data-bs-content="The student survey response rate for this sub-category. This number differs from the overall response rate because each individual student receives 44 of 67 total questions, in order to avoid survey fatigue. This number is also adjusted to reflect any instances where a student has decided to skip a survey question."
|
||||
data-bs-placement="bottom"
|
||||
>
|
||||
>
|
||||
<p class="response-rate-percentage"><%= subcategory.student_response_rate %></p>
|
||||
<p>of students responded</p>
|
||||
</div>
|
||||
|
|
@ -52,10 +55,10 @@
|
|||
</div>
|
||||
|
||||
<% if subcategory.show_scale_presenters? %>
|
||||
<div class="scale-card d-flex p-7">
|
||||
<% subcategory.scale_presenters.each do |scale_presenter| %>
|
||||
<%= render partial: "measures_section", locals: { measure_presenter: scale_presenter } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="scale-card d-flex p-7">
|
||||
<% subcategory.scale_presenters.each do |scale_presenter| %>
|
||||
<%= render partial: "measures_section", locals: { measure_presenter: scale_presenter } %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue