Work on adding in a new ajax post type

This commit is contained in:
Vik Paruchuri
2012-12-12 10:33:36 -05:00
parent 8bf393fbba
commit d663d23257
5 changed files with 29 additions and 1 deletions

View File

@@ -748,7 +748,7 @@ class OpenEndedInput(InputTypeBase):
# pulled out for testing
submitted_msg = ("Feedback not yet available. Reload to check again. "
"Once the problem is graded, this message will be "
"replaced with the grader's feedback")
"replaced with the grader's feedback.")
@classmethod
def get_attributes(cls):

View File

@@ -1836,6 +1836,7 @@ class OpenEndedResponse(LoncapaResponse):
"""
DEFAULT_QUEUE = 'open-ended'
DEFAULT_MESSAGE_QUEUE = 'open-ended-message'
response_tag = 'openendedresponse'
allowed_inputfields = ['openendedinput']
max_inputfields = 1

View File

@@ -28,5 +28,12 @@
% endif
<div class="external-grader-message">
${msg|n}
% if status in ['correct','incorrect']:
<section id="evaluation">
Score Evaluation:
<textarea rows="${rows}" cols="${cols}" name="feedback-on-feedback" class="feedback-on-feedback">Please enter some comments about the score/feedback you received here.</textarea>
<input name="submit-message" class="submit-message" type="button" value="Submit your message"/>
</section>
% endif
</div>
</section>