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-72875 course: Introduce tertiary nav in participants
- Introduce tertiary nav in the participants page
- Loading branch information
Peter Dias
committed
Dec 2, 2021
1 parent
d5698ac
commit e0d7dbd
Showing
18 changed files
with
370 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{{! | ||
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 core_course/participants_actionbar | ||
Displays the tertiary nav for the participants page | ||
Context variables required for this template: | ||
* urlselect Object - The content to be rendered within the url_select | ||
* renderedcontent String - Any additional content/actions to be displayed inline with the select box | ||
Example context (json): | ||
{ | ||
"urlselect" : { | ||
"formid": "url_select_f61834256d7754158", | ||
"classes": "urlselect", | ||
"label": "", | ||
"disabled": false, | ||
"title":null, | ||
"id":"url_select61834256d7754159", | ||
"sesskey":"LWILINyZMH", | ||
"action":"http:\/\/localhost\/stable_master\/course\/jumpto.php", | ||
"showbutton":null, | ||
"options": [ | ||
{ | ||
"name":"Enrolments", | ||
"isgroup":true, | ||
"options": [ | ||
{ | ||
"name":"Enrolled users", | ||
"value":"\/user\/index.php?id=4", | ||
"selected":true | ||
}, | ||
{ | ||
"name":"Enrolment methods", | ||
"value":"\/enrol\/instances.php?id=4", | ||
"selected":false | ||
} | ||
] | ||
}, | ||
{ | ||
"name":"Groups", | ||
"isgroup":true, | ||
"options": [ | ||
{ | ||
"name":"Groups", | ||
"value":"\/group\/index.php?id=4", | ||
"selected":false | ||
}, | ||
{ | ||
"name":"Groupings", | ||
"value":"\/group\/groupings.php?id=4", | ||
"selected":false | ||
}, | ||
{ | ||
"name":"Overview", | ||
"value":"\/group\/overview.php?id=4", | ||
"selected":false | ||
} | ||
] | ||
}, | ||
{ | ||
"name":"Permissions", | ||
"isgroup":true, | ||
"options": [ | ||
{ | ||
"name":"Permissions", | ||
"value":"\/admin\/roles\/permissions.php?contextid=279", | ||
"selected":false | ||
}, | ||
{ | ||
"name":"Other users", | ||
"value":"\/enrol\/otherusers.php?id=4", | ||
"selected":false | ||
}, | ||
{ | ||
"name":"Check permissions", | ||
"value":"\/admin\/roles\/check.php?contextid=279", | ||
"selected":false | ||
} | ||
] | ||
} | ||
], | ||
"labelattributes":[], | ||
"helpicon":false, | ||
"attributes":[] | ||
}, | ||
"renderedcontent":"<div data-region=\"wrapper\" data-table-uniqueid=\"user-index-participants-4\"><\/div>" | ||
} | ||
}} | ||
<div class="container-fluid pl-0 pb-2" id="action_bar"> | ||
<div class="row pl-0 ml-0"> | ||
{{#urlselect}} | ||
<div class="col-xs-4 pr-1"> | ||
{{> core/url_select }} | ||
</div> | ||
{{/urlselect}} | ||
{{#renderedcontent}} | ||
<div class="col-xs-4 pr-1"> | ||
{{{renderedcontent}}} | ||
</div> | ||
{{/renderedcontent}} | ||
</div> | ||
</div> |
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
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
Oops, something went wrong.