mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-42190 workshop: Improve the confirmation of submission removal
I noticed we do not need to list the names of potentially affected reviewers. If the user (teacher) has the capability to see other assessments (which they do in 99%), the list of assessments is displayed at the confirmation page anyway. If for some reason they do not have the capability, we should not list the names. The second fix is that the action buttons (such as Delete or Edit) are not displayed on the removal confirmation page. And finally, as the output->confirm() wraps the message with implicit <p>, it is not valid to pass HTML with any block elements. So instead of concatenating the two messages, we simply define a new string for this situation.
- Loading branch information
Showing
2 changed files
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters