gettext('Please enter a student email address or username.')
);
}
if(!problemToReset){
returnstudentadmin.$request_err_grade.text(
gettext('Please enter a problem location.')
);
}
sendData={
unique_student_identifier:uniqStudentIdentifier,
problem_to_reset:problemToReset
};
successMessage=gettext("Started rescore problem task for problem '<%- problem_id %>' and student '<%- student_id %>'. Click the 'Show Background Task History for Student' button to see the status of the task.");// eslint-disable-line max-len
fullSuccessMessage=_.template(successMessage)({
student_id:uniqStudentIdentifier,
problem_id:problemToReset
});
errorMessage=gettext("Error starting a task to rescore problem '<%- problem_id %>' for student '<%- student_id %>'. Make sure that the the problem and student identifiers are complete and correct.");// eslint-disable-line max-len
successMessage=gettext("Started entrance exam rescore task for student '{student_id}'. Click the 'Show Background Task History for Student' button to see the status of the task.");// eslint-disable-line max-len
errorMessage=gettext("Error starting a task to rescore entrance exam for student '{student_id}'. Make sure that entrance exam has problems in it and student identifier is correct.");// eslint-disable-line max-len
successMessage=gettext("Successfully started task to reset attempts for problem '<%- problem_id %>'. Click the 'Show Background Task History for Problem' button to see the status of the task.");// eslint-disable-line max-len
successMessage=gettext("Successfully started task to reset attempts for problem '<%- problem_id %>'. Click the 'Show Task Status' button to see the status of the task.");// eslint-disable-line max-len
successMessage=gettext("Successfully started task to rescore problem '<%- problem_id %>' for all students. Click the 'Show Background Task History for Problem' button to see the status of the task.");// eslint-disable-line max-len
fullSuccessMessage=_.template(successMessage)({
problem_id:problemToReset
});
errorMessage=gettext("Error starting a task to rescore problem '<%- problem_id %>'. Make sure that the problem identifier is complete and correct.");// eslint-disable-line max-len
gettext('Please enter a student email address or username.')
);
}
if(!problemToReset){
returnthis.$request_err_grade.text(
gettext('Please enter a problem location.')
);
}
sendData={
unique_student_identifier:uniqStudentIdentifier,
problem_to_reset:problemToReset,
only_if_higher:onlyIfHigher
};
successMessage=gettext("Started rescore problem task for problem '<%- problem_id %>' and student '<%- student_id %>'. Click the 'Show Task Status' button to see the status of the task.");// eslint-disable-line max-len
fullSuccessMessage=_.template(successMessage)({
student_id:uniqStudentIdentifier,
problem_id:problemToReset
});
errorMessage=gettext("Error starting a task to rescore problem '<%- problem_id %>' for student '<%- student_id %>'. Make sure that the the problem and student identifiers are complete and correct.");// eslint-disable-line max-len
successMessage=gettext("Started entrance exam rescore task for student '{student_id}'. Click the 'Show Task Status' button to see the status of the task.");// eslint-disable-line max-len
errorMessage=gettext("Error starting a task to rescore entrance exam for student '{student_id}'. Make sure that entrance exam has problems in it and student identifier is correct.");// eslint-disable-line max-len
successMessage=gettext("Successfully started task to rescore problem '<%- problem_id %>' for all students. Click the 'Show Task Status' button to see the status of the task.");// eslint-disable-line max-len
fullSuccessMessage=_.template(successMessage)({
problem_id:problemToReset
});
errorMessage=gettext("Error starting a task to rescore problem '<%- problem_id %>'. Make sure that the problem identifier is complete and correct.");// eslint-disable-line max-len
${_("Click here to view the gradebook for enrolled students. This feature is only visible to courses with a small number of total enrolled students.")}
<labelfor="rescore-actions-single">${_("For the specified problem, rescore the learner's responses. The 'Rescore Only If Score Improves' option updates the learner's score only if it improves in the learner's favor.")}</label>
<inputtype="button"name="rescore-problem-if-higher-single"value="${_('Rescore Only If Score Improves')}"data-endpoint="${ section_data['rescore_problem_url'] }">
</span>
%endif
<br><br>
<h5class="hd hd-5">${_("Problem History")}</h5>
<labelfor="delete-state-single">${_("For the specified problem, permanently and completely delete the learner's answers and scores from the database.")}</label>
${_("Student's {platform_name} email address or username:").format(platform_name=settings.PLATFORM_NAME)}
<inputtype="text"name="entrance-exam-student-select-grade"placeholder="${_('Student Email or Username')}">
</label>
<br>
<p>
${_("Select an action for the student's entrance exam. This action will affect every problem in the student's exam.")}
</p>
<inputtype="button"name="reset-entrance-exam-attempts"value="${_('Reset Number of Student Attempts')}"data-endpoint="${ section_data['reset_student_attempts_for_entrance_exam_url'] }">
%if settings.FEATURES.get('ENABLE_INSTRUCTOR_BACKGROUND_TASKS') and section_data['access']['instructor']:
<inputtype="button"name="rescore-entrance-exam"value="${_('Rescore All Problems')}"data-endpoint="${ section_data['rescore_entrance_exam_url'] }">
${_("Rescore any responses that have been submitted. The 'Rescore All Problems Only If Score Improves' option updates the learner's scores only if it improves in the learner's favor.")}
</label>
<br>
<spanname="rescore-actions-entrance-exam">
<inputtype="button"name="rescore-entrance-exam"value="${_('Rescore All Problems')}"data-endpoint="${ section_data['rescore_entrance_exam_url'] }">
<inputtype="button"name="rescore-entrance-exam-if-higher"value="${_('Rescore All Problems Only If Score Improves')}"data-endpoint="${ section_data['rescore_entrance_exam_url'] }">
## Translators: A location (string of text) follows this sentence.
<pid="problem-select-all-help">${_("You must provide the complete location of the problem. In the Staff Debug viewer, the location looks like this:")}<br/>
<labelfor="reset-attempts-all">${_("Allows all learners to work on the problem again.")}</label>
<br>
<inputtype="button"class="molly-guard"name="reset-attempts-all"value="${_('Reset Attempts to Zero')}"data-endpoint="${ section_data['reset_student_attempts_url'] }">
<br><br>
<h5class="hd hd-5">${_("Rescore")}</h5>
<labelfor="rescore-actions-all">${_("Rescore submitted responses. The 'Rescore Only If Scores Improve' option updates a learner's score only if it improves in the learner's favor.")}</label>
<br>
<spanname="rescore-actions-all">
<inputtype="button"class="molly-guard"name="rescore-problem-all"value="${_('Rescore All Learners\' Submissions')}"data-endpoint="${ section_data['rescore_problem_url'] }">
<inputtype="button"class="molly-guard"name="rescore-problem-all-if-higher"value="${_('Rescore Only If Scores Improve')}"data-endpoint="${ section_data['rescore_problem_url'] }">
</span>
<br><br>
<h5class="hd hd-5">${_("Task Status")}</h5>
<labelfor="task-history-all">${_("Show the status for the tasks that you submitted for this problem.")}</label>