Skip to content

Commit 9c0bdee

Browse files
committed
Update wording of quick answers.
1 parent 291f3f6 commit 9c0bdee

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

cms/server/admin/handlers/contestquestion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ class QuestionReplyHandler(BaseHandler):
7171
QUICK_ANSWERS = {
7272
"yes": "Yes",
7373
"no": "No",
74-
"answered": "Answered in task description",
75-
"invalid": "Invalid question",
76-
"nocomment": "No comment",
74+
"invalid": "Invalid Question (not a Yes/No Question)",
75+
"nocomment": "No Comment/Please refer to task statement",
7776
}
7877

7978
@require_permission(BaseHandler.PERMISSION_MESSAGING)
@@ -86,7 +85,8 @@ def post(self, contest_id, question_id):
8685
if self.contest is not question.participation.contest:
8786
raise tornado_web.HTTPError(404)
8887

89-
reply_subject_code: str = self.get_argument("reply_question_quick_answer", "")
88+
reply_subject_code: str = self.get_argument(
89+
"reply_question_quick_answer", "")
9090
question.reply_text = self.get_argument("reply_question_text", "")
9191

9292
# Ignore invalid answers

cms/server/admin/templates/participation.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,8 @@ <h2 id="title_questions" class="toggling_on">Questions</h2>
171171
<select name="reply_question_quick_answer" onchange="update_additional_answer({{ loop.index0 }}, this);">
172172
<option value="yes">Yes</option>
173173
<option value="no">No</option>
174-
<option value="answered">Answered in task description</option>
175-
<option value="invalid">Invalid question</option>
176-
<option value="nocomment">No comment</option>
174+
<option value="invalid">Invalid Question (not a Yes/No Question)</option>
175+
<option value="nocomment">No Comment/Please refer to task statement</option>
177176
<option selected value="other">Other</option>
178177
</select>
179178
<br/>

cms/server/admin/templates/questions.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ <h1>Questions</h1>
113113
<select name="reply_question_quick_answer" onchange="update_additional_answer({{ loop.index0 }}, this);">
114114
<option value="yes">Yes</option>
115115
<option value="no">No</option>
116-
<option value="answered">Answered in task description</option>
117-
<option value="invalid">Invalid question</option>
118-
<option value="nocomment">No comment</option>
116+
<option value="invalid">Invalid Question (not a Yes/No Question)</option>
117+
<option value="nocomment">No Comment/Please refer to task statement</option>
119118
<option selected value="other">Other</option>
120119
</select>
121120
<br/>

0 commit comments

Comments
 (0)