mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 08:00:37 +01:00
MDL-66076 forumreport_summary: Template example context fixes
This commit is contained in:
parent
b9669dd319
commit
d4d9b8c67c
@ -1,3 +1,54 @@
|
||||
{{!
|
||||
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 forumreport_summary/bulk_action_menu
|
||||
|
||||
Summary report filters.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"id": "formactionid",
|
||||
"attributes": [
|
||||
{
|
||||
"name": "data-action",
|
||||
"value": "toggle"
|
||||
},
|
||||
{
|
||||
"name": "data-togglegroup",
|
||||
"value": "summaryreport-table"
|
||||
},
|
||||
{
|
||||
"name": "data-toggle",
|
||||
"value": "action"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"name": "Choose...",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"name": "Send a message",
|
||||
"value": "#messageselect"
|
||||
}
|
||||
]
|
||||
}
|
||||
}}
|
||||
|
||||
<br /><div class="buttons"><div class="form-inline">
|
||||
<label for="{{id}}">{{#str}}withselectedusers{{/str}}</label>
|
||||
<select id="{{id}}" class="select custom-select ml-2" {{#attributes}}{{name}}="{{value}}" {{/attributes}}>
|
||||
|
@ -26,12 +26,12 @@
|
||||
"filtergroupsname" : "Groups (all)",
|
||||
"filtergroups": [
|
||||
{
|
||||
"gropuid": "1",
|
||||
"groupid": "1",
|
||||
"groupname": "Group A",
|
||||
"checked": true
|
||||
},
|
||||
{
|
||||
"gropuid": "3",
|
||||
"groupid": "3",
|
||||
"groupname": "Group C",
|
||||
"checked": false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user