forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the form and add some context to templates
- Loading branch information
1 parent
cc24820
commit 595a545
Showing
17 changed files
with
263 additions
and
206 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
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
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
68 changes: 56 additions & 12 deletions
68
mod/assign/templates/gradingapp/attempt_history_chooser.mustache
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,60 @@ | ||
{{! | ||
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/gradingapp/attempt_history_chooser | ||
Foo | ||
Classes required for JS: | ||
* | ||
Data attributes required for JS: | ||
* | ||
Example context (json): | ||
{ | ||
"submissioncount": 2, | ||
"submissions": [ | ||
{ | ||
"attemptnumber": 1, | ||
"attemptsummary": "Attempt 1", | ||
"statussummary": "Submitted for grading" | ||
}, | ||
{ | ||
"attemptnumber": 2, | ||
"attemptsummary": "Attempt 2", | ||
"statussummary": "Submitted for grading" | ||
} | ||
] | ||
} | ||
}} | ||
{{#submissioncount}} | ||
<div> | ||
<a class="btn btn-secondary" href="#" data-region="attempt-chooser" data-submissions="submissions-list-{{uniqid}}">{{#str}}viewadifferentattempt, mod_assign{{/str}}</a> | ||
<div class="hide" id="submissions-list-{{uniqid}}"> | ||
<div data-region="submissions-list"> | ||
{{#submissions}} | ||
<label class="radio"> | ||
<input type="radio" name="select-attemptnumber" value="{{attemptnumber}}"/> | ||
{{attemptsummary}} | ||
<br><em>{{statussummary}}</em> | ||
</label> | ||
{{/submissions}} | ||
<div> | ||
<a class="btn btn-secondary" href="#" data-region="attempt-chooser" data-submissions="submissions-list-{{uniqid}}">{{#str}}viewadifferentattempt, mod_assign{{/str}}</a> | ||
<div class="hide" id="submissions-list-{{uniqid}}"> | ||
<div data-region="submissions-list"> | ||
{{#submissions}} | ||
<label class="radio"> | ||
<input type="radio" name="select-attemptnumber" value="{{attemptnumber}}"/> | ||
{{attemptsummary}} | ||
<br><em>{{statussummary}}</em> | ||
</label> | ||
{{/submissions}} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{/submissioncount}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,15 @@ | |
* list of fields from mod_assign_list_participants webservice | ||
Example context (json): | ||
{ "id": "4", | ||
"fullname": "Mr T", | ||
"requiregrading": "true", | ||
"identity": "email, phone, etc" | ||
{ | ||
"fullname": "Mr T", | ||
"identity": "[email protected], T" | ||
} | ||
}} | ||
<span>{{fullname}} <small>{{identity}}</small> {{#requiregrading}}<abbr title="{{#str}}filterrequiregrading, mod_assign{{/str}}">*</abbr>{{/requiregrading}}</span> | ||
<span> | ||
{{fullname}} | ||
<small>{{identity}}</small> | ||
{{#requiregrading}} | ||
<abbr title="{{#str}}filterrequiregrading, mod_assign{{/str}}">*</abbr> | ||
{{/requiregrading}} | ||
</span> |
Oops, something went wrong.