Commit cb6bb38f by Diana Huang

merge commit

parents 90076c39 40f34d19
...@@ -746,8 +746,9 @@ class OpenEndedInput(InputTypeBase): ...@@ -746,8 +746,9 @@ class OpenEndedInput(InputTypeBase):
tags = ['openendedinput'] tags = ['openendedinput']
# pulled out for testing # pulled out for testing
submitted_msg = ("Submitted. As soon as your submission is" submitted_msg = ("Feedback not yet available. Reload to check again. "
" graded, this message will be replaced with the grader's feedback.") "Once the problem is graded, this message will be "
"replaced with the grader's feedback")
@classmethod @classmethod
def get_attributes(cls): def get_attributes(cls):
...@@ -781,4 +782,4 @@ class OpenEndedInput(InputTypeBase): ...@@ -781,4 +782,4 @@ class OpenEndedInput(InputTypeBase):
registry.register(OpenEndedInput) registry.register(OpenEndedInput)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
\ No newline at end of file
...@@ -13,15 +13,12 @@ ...@@ -13,15 +13,12 @@
% elif status == 'incorrect': % elif status == 'incorrect':
<span class="incorrect" id="status_${id}">Incorrect</span> <span class="incorrect" id="status_${id}">Incorrect</span>
% elif status == 'queued': % elif status == 'queued':
<span class="processing" id="status_${id}">Queued</span> <span class="grading" id="status_${id}">Submitted for grading</span>
<span style="display:none;" class="xqueue" id="${id}" >${queue_len}</span>
% endif % endif
% if hidden: % if hidden:
<div style="display:none;" name="${hidden}" inputid="input_${id}" /> <div style="display:none;" name="${hidden}" inputid="input_${id}" />
% endif % endif
<p class="debug">${status}</p>
</div> </div>
<span id="answer_${id}"></span> <span id="answer_${id}"></span>
......
...@@ -121,16 +121,6 @@ section.problem { ...@@ -121,16 +121,6 @@ section.problem {
} }
} }
&.processing {
p.status {
@include inline-block();
background: url('../images/spinner.gif') center center no-repeat;
height: 20px;
width: 20px;
text-indent: -9999px;
}
}
&.correct, &.ui-icon-check { &.correct, &.ui-icon-check {
p.status { p.status {
@include inline-block(); @include inline-block();
...@@ -266,6 +256,11 @@ section.problem { ...@@ -266,6 +256,11 @@ section.problem {
margin: -7px 7px 0 0; margin: -7px 7px 0 0;
} }
.grading {
text-indent: 0px;
margin: 0px 7px 0 0;
}
p { p {
line-height: 20px; line-height: 20px;
text-transform: capitalize; text-transform: capitalize;
......
...@@ -18,7 +18,7 @@ class StaffGradingBackend ...@@ -18,7 +18,7 @@ class StaffGradingBackend
mock: (cmd, data) -> mock: (cmd, data) ->
# Return a mock response to cmd and data # Return a mock response to cmd and data
# should take a problem id as an argument # TODO: needs (optional?) arg for problem location
if cmd == 'get_next' if cmd == 'get_next'
@mock_cnt++ @mock_cnt++
response = response =
...@@ -31,7 +31,7 @@ class StaffGradingBackend ...@@ -31,7 +31,7 @@ class StaffGradingBackend
rubric: 'A rubric! ' + @mock_cnt rubric: 'A rubric! ' + @mock_cnt
submission_id: @mock_cnt submission_id: @mock_cnt
max_score: 2 + @mock_cnt % 3 max_score: 2 + @mock_cnt % 3
ml_error_info : 'ML error info!' + @mock_cnt ml_error_info : 'ML accuracy info: ' + @mock_cnt
else if cmd == 'save_grade' else if cmd == 'save_grade'
console.log("eval: #{data.score} pts, Feedback: #{data.feedback}") console.log("eval: #{data.score} pts, Feedback: #{data.feedback}")
...@@ -44,8 +44,10 @@ class StaffGradingBackend ...@@ -44,8 +44,10 @@ class StaffGradingBackend
response = response =
success: true success: true
problem_list: [ problem_list: [
{problem_id: 1, problem_name: "Problem 1", num_left: 3, num_total: 5} {location: 'i4x://MITx/3.091x/problem/open_ended_demo', \
{problem_id: 2, problem_name: "Problem 2", num_left: 1, num_total: 5} problem_name: "Problem 1", num_left: 3, num_total: 5},
{location: 'i4x://MITx/3.091x/problem/open_ended_demo', \
problem_name: "Problem 2", num_left: 1, num_total: 5}
] ]
else else
response = response =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment