MDL-35745 quiz: let teachers to re-open a Never submitted attempt
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 3 Mar 2023 17:11:02 +0000 (17:11 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 14 Mar 2023 13:09:27 +0000 (13:09 +0000)
commitc051fbd0c21602f22b2d315401bf2d135b6008f4
tree0cbc429c1b0eac85d405bef354257c172225dece
parent5e1df255667070445122c7822d21e66b2e0435fa
MDL-35745 quiz: let teachers to re-open a Never submitted attempt

In the quiz reports, for any 'Never submitted' attempt, there is
now a 'Re-open' button next to where it says the attempt state.

If that is clicked, there is an 'Are you sure?' pop-up. If the user
continues, the attempt is reopened. If the student now has time left,
the attempt is put into the In progress state. If there is not time
left the attempt is immediately submitted and graded. The
'Are you sure? pop-up says which of those two things will happen.
18 files changed:
mod/quiz/amd/build/reopen_attempt_ui.min.js [new file with mode: 0644]
mod/quiz/amd/build/reopen_attempt_ui.min.js.map [new file with mode: 0644]
mod/quiz/amd/src/reopen_attempt_ui.js [new file with mode: 0644]
mod/quiz/classes/access_manager.php
mod/quiz/classes/event/attempt_reopened.php [new file with mode: 0644]
mod/quiz/classes/external/get_reopen_attempt_confirmation.php [new file with mode: 0644]
mod/quiz/classes/external/reopen_attempt.php [new file with mode: 0644]
mod/quiz/classes/local/reports/attempts_report.php
mod/quiz/classes/local/reports/attempts_report_table.php
mod/quiz/classes/quiz_attempt.php
mod/quiz/db/access.php
mod/quiz/db/services.php
mod/quiz/lang/en/quiz.php
mod/quiz/report/overview/tests/behat/reopen_attempt.feature [new file with mode: 0644]
mod/quiz/tests/attempt_walkthrough_test.php
mod/quiz/tests/behat/behat_mod_quiz.php
mod/quiz/tests/external/reopen_attempt_test.php [new file with mode: 0644]
mod/quiz/version.php