{{! 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 tool_policy/page_viewdoc Template for viewing a policy version document. Classes required for JS: - Data attributes required for JS: - Context variables required for this template: * policy - version document object. Example context (json): { "numpolicy": 1, "totalpolicies": 2, "policy": { "name": "Terms & conditions", "summary": "Policy summary", "content": "Policy content" }, "returnurl": "#", "editurl": "#", "accepturl": "#" } }}

{{{policy.name}}}

{{# numpolicy }}
{{# str }} steppolicies, tool_policy, { "numpolicy": {{# quote }}{{numpolicy}}{{/quote }}, "totalpolicies": {{# quote }}{{totalpolicies}}{{/ quote }} } {{/ str }}
{{/ numpolicy }}
{{# numpolicy }}

{{# str }}readpolicy, tool_policy, {{{policy.name}}} {{/ str }}

{{/ numpolicy }}
{{{policy.summary}}}
{{{policy.content}}}

{{#returnurl}} {{# numpolicy }} {{#str}} next {{/str}} {{/ numpolicy }} {{^ numpolicy }} {{#str}} back {{/str}} {{/ numpolicy }} {{/returnurl}} {{#editurl}} {{#str}} edit {{/str}} {{/editurl}} {{#accepturl}} {{#str}} iagree, tool_policy, {{{policy.name}}} {{/str}} {{/accepturl}} {{#declineurl}} {{#str}} idontagree, tool_policy, {{{policy.name}}} {{/str}} {{/declineurl}}