From d4d9b8c67c15716d83ea88ea88f9ae7867d37282 Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Tue, 8 Oct 2019 23:23:19 +0800 Subject: [PATCH] MDL-66076 forumreport_summary: Template example context fixes --- .../templates/bulk_action_menu.mustache | 51 +++++++++++++++++++ .../report/summary/templates/filters.mustache | 4 +- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/mod/forum/report/summary/templates/bulk_action_menu.mustache b/mod/forum/report/summary/templates/bulk_action_menu.mustache index aa36045075d..bc01440bd66 100644 --- a/mod/forum/report/summary/templates/bulk_action_menu.mustache +++ b/mod/forum/report/summary/templates/bulk_action_menu.mustache @@ -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 . +}} +{{! + @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" + } + ] + } +}} +