mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 17:30:38 -07:00
texting change
This commit is contained in:
parent
986ef0086b
commit
ed4883c9fb
3 changed files with 16 additions and 14 deletions
|
|
@ -22,11 +22,13 @@ class Attempt < ApplicationRecord
|
|||
scope :last_sent, -> { order(sent_at: :desc) }
|
||||
|
||||
def messages
|
||||
child_specific = student.present? ? "\n(for #{student.name})" : ''
|
||||
child_specific = student.present? ? " (for #{student.name})" : ''
|
||||
|
||||
cancel_text = "\nSkip question: skip\nStop all questions: stop"
|
||||
|
||||
[
|
||||
#question.text,
|
||||
"#{question.text}#{child_specific}\n\r#{question.option1}: Reply 1\n#{question.option2}: 2\n#{question.option3}: 3\n#{question.option4}: 4\n#{question.option5}: 5\nSkip question: skip\nStop all questions: stop"
|
||||
"#{question.text}#{child_specific}",
|
||||
"#{question.option1}: Reply 1\n#{question.option2}: 2\n#{question.option3}: 3\n#{question.option4}: 4\n#{question.option5}: 5"
|
||||
]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue