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
|
||||
%p
|
||||
%strong Name:
|
||||
= @category.name
|
||||
%p
|
||||
%strong Blurb:
|
||||
= @category.blurb
|
||||
%p
|
||||
%strong Description:
|
||||
= @category.description
|
||||
%p
|
||||
%strong External:
|
||||
= @category.external_id
|
||||
|
||||
%p
|
||||
%strong Parent Category:
|
||||
|
||||
= render partial: 'categories/full_path', locals: {category: @category}
|
||||
= render 'layouts/school_header'
|
||||
|
||||
- if @category.child_categories.present?
|
||||
.row
|
||||
.col-12
|
||||
%p
|
||||
%strong Child Categories:
|
||||
- @category.child_categories.each do |child_category|
|
||||
|
||||
= link_to child_category.name, child_category
|
||||
= render 'categories/breadcrumbs', school_category: @school_category
|
||||
|
||||
.row
|
||||
.col-12
|
||||
.school_category.p-2
|
||||
%h3.title.text-center.pt-3
|
||||
= @category.name
|
||||
|
||||
%p
|
||||
%strong Questions
|
||||
%p= @category.description
|
||||
%p
|
||||
%b Total Responses:
|
||||
= number_with_delimiter(@school_category.response_count)
|
||||
|
||||
- @category.questions.each do |question|
|
||||
%p= link_to(question.text, question)
|
||||
|
||||
|
||||
%b Average Response:
|
||||
= @school_category.answer_index_average.round(1)
|
||||
(out of 5)
|
||||
|
||||
.indicator-container.py-3
|
||||
= render 'school_categories/indicator', school_category: @school_category
|
||||
|
||||
= link_to 'Edit', edit_category_path(@category)
|
||||
|
|
||||
= link_to 'Back', categories_path
|
||||
- if @child_school_categories.present?
|
||||
.row
|
||||
= render @child_school_categories
|
||||
|
||||
@ -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
|
||||
.col
|
||||
%p
|
||||
%strong Name:
|
||||
= @school.name
|
||||
- if @school.district.present?
|
||||
%p
|
||||
%strong District:
|
||||
= link_to @school.district.name, @school.district
|
||||
= render 'layouts/school_header'
|
||||
|
||||
.row
|
||||
= render @school_categories
|
||||
|
||||
Loading…
Reference in new issue