mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
formatting questions
This commit is contained in:
parent
83c2834887
commit
b98d77a153
2 changed files with 6 additions and 1 deletions
|
|
@ -1,2 +1,7 @@
|
|||
module QuestionsHelper
|
||||
|
||||
def format_question(question_text)
|
||||
question_text.gsub("[Field-MathTeacher][Field-ScienceTeacher][Field-EnglishTeacher][Field-SocialTeacher]", "teacher")
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
.col-12.col-md-6.py-3
|
||||
.question.p-2{id: "question-#{question.id}"}
|
||||
%p.question-text.pt-3.px-2
|
||||
= question.text
|
||||
= format_question(question.text)
|
||||
|
||||
.row.pt-2
|
||||
.col-4.indicator-container.centered
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue