parent
74ff33d74e
commit
a8862d1734
@ -0,0 +1,2 @@
|
|||||||
|
%p
|
||||||
|
= school_category.category.path.map { |c| link_to(c.name, [school_category.school, c]) }.join(' > ').html_safe
|
||||||
@ -1,38 +1,30 @@
|
|||||||
%p#notice= notice
|
= render 'layouts/school_header'
|
||||||
%p
|
|
||||||
%strong Name:
|
|
||||||
= @category.name
|
|
||||||
%p
|
|
||||||
%strong Blurb:
|
|
||||||
= @category.blurb
|
|
||||||
%p
|
|
||||||
%strong Description:
|
|
||||||
= @category.description
|
|
||||||
%p
|
|
||||||
%strong External:
|
|
||||||
= @category.external_id
|
|
||||||
|
|
||||||
%p
|
.row
|
||||||
%strong Parent Category:
|
.col-12
|
||||||
|
%p
|
||||||
= render partial: 'categories/full_path', locals: {category: @category}
|
= render 'categories/breadcrumbs', school_category: @school_category
|
||||||
|
|
||||||
- if @category.child_categories.present?
|
.row
|
||||||
%p
|
.col-12
|
||||||
%strong Child Categories:
|
.school_category.p-2
|
||||||
- @category.child_categories.each do |child_category|
|
%h3.title.text-center.pt-3
|
||||||
|
= @category.name
|
||||||
= link_to child_category.name, child_category
|
|
||||||
|
|
||||||
|
%p= @category.description
|
||||||
|
%p
|
||||||
|
%b Total Responses:
|
||||||
|
= number_with_delimiter(@school_category.response_count)
|
||||||
|
|
||||||
%p
|
|
||||||
%strong Questions
|
|
||||||
|
|
||||||
- @category.questions.each do |question|
|
%b Average Response:
|
||||||
%p= link_to(question.text, question)
|
= @school_category.answer_index_average.round(1)
|
||||||
|
(out of 5)
|
||||||
|
|
||||||
|
.indicator-container.py-3
|
||||||
|
= render 'school_categories/indicator', school_category: @school_category
|
||||||
|
|
||||||
|
- if @child_school_categories.present?
|
||||||
= link_to 'Edit', edit_category_path(@category)
|
.row
|
||||||
|
|
= render @child_school_categories
|
||||||
= link_to 'Back', categories_path
|
|
||||||
|
|||||||
@ -0,0 +1,10 @@
|
|||||||
|
.row
|
||||||
|
.col
|
||||||
|
=# link_to(image_tag(@district.logo), @district) if @district.present?
|
||||||
|
%h2= link_to @school.name, @school
|
||||||
|
= simple_format(@school.description)
|
||||||
|
%p Data for 2015-2016 school year.
|
||||||
|
- if @school.district.present?
|
||||||
|
%p
|
||||||
|
%strong District:
|
||||||
|
= link_to @school.district.name, @school.district
|
||||||
@ -1,12 +1,4 @@
|
|||||||
.row
|
= render 'layouts/school_header'
|
||||||
.col
|
|
||||||
%p
|
|
||||||
%strong Name:
|
|
||||||
= @school.name
|
|
||||||
- if @school.district.present?
|
|
||||||
%p
|
|
||||||
%strong District:
|
|
||||||
= link_to @school.district.name, @school.district
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
= render @school_categories
|
= render @school_categories
|
||||||
|
|||||||
Loading…
Reference in new issue