mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
MDL-52954 assign: Rebuild the assignment single grade page.
This commit is contained in:
parent
2a3647bae5
commit
bb690849c9
86 changed files with 4593 additions and 279 deletions
56
mod/assign/templates/grading_app.mustache
Normal file
56
mod/assign/templates/grading_app.mustache
Normal file
|
@ -0,0 +1,56 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template mod_assign/grading_app
|
||||
|
||||
Actions panel at the bottom of the assignment grading UI.
|
||||
|
||||
Classes required for JS:
|
||||
* Uses some bootstrap classes, but for visual appeal only.
|
||||
|
||||
Data attributes required for JS:
|
||||
* data-region, data-first-userid, data-courseid, data-contextid, data-assignmentid
|
||||
|
||||
Context variables required for this template:
|
||||
* see mod/assign/classes/output/grading_app.php
|
||||
|
||||
Example context (json):
|
||||
This template includes ajax functionality, so it cannot be shown in the template library.
|
||||
}}
|
||||
<div data-region="grading-navigation-panel" data-first-userid="{{userid}}" data-courseid="{{courseid}}" data-showuseridentity="{{showuseridentity}}">
|
||||
{{> mod_assign/grading_navigation }}
|
||||
</div>
|
||||
<div data-region="grade-panel" {{^showreview}}class="fullwidth"{{/showreview}}>
|
||||
<div data-region="grade" data-contextid="{{contextid}}" data-assignmentid="{{assignmentid}}">
|
||||
{{> mod_assign/grading_panel }}
|
||||
</div>
|
||||
</div>
|
||||
{{#showreview}}
|
||||
<div data-region="review-panel">
|
||||
<div data-region="review">
|
||||
{{> mod_assign/review_panel }}
|
||||
</div>
|
||||
</div>
|
||||
{{/showreview}}
|
||||
<div data-region="grade-actions-panel">
|
||||
<div data-region="grade-actions">
|
||||
{{> mod_assign/grading_actions }}
|
||||
</div>
|
||||
</div>
|
||||
<div data-region="overlay" class="moodle-has-zindex">
|
||||
{{> mod_assign/grading_save_in_progress }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue