{{! 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_viewalldoc Template for viewing all policy versions, one under another. Classes required for JS: - Data attributes required for JS: - Context variables required for this template: * returnurl - url to the previous page * policies - policy array Example context (json): { "returnurl": "#", "policies": [ { "id": "2", "name": "Terms & conditions", "summary": "Policy summary", "content": "Policy content", "policytypestr": "Site policy", "policyaudiencestr": "All users" }, { "id": "5", "name": "Privacy", "summary": "We keep your information private", "content": "Very private", "policytypestr": "Privacy policy", "policyaudiencestr": "Authenticated users" } ] } }} {{#returnurl}}
{{# str }} backtoprevious, tool_policy {{/ str }}
{{/returnurl}}

{{# str }} listactivepolicies, tool_policy {{/ str }}

{{#policies }} {{/policies }}
{{# str }}policydocname, tool_policy {{/ str }} {{# str }}policydoctype, tool_policy {{/ str }} {{# str }}policydocaudience, tool_policy {{/ str }}
{{{name}}} {{{ policytypestr }}} {{{ policyaudiencestr }}}
{{^policies }} {{# str }} noactivepolicies, tool_policy {{/ str }} {{/policies }} {{#policies }}

{{# str }} policydocsummary, tool_policy {{/ str }}

{{{summary}}}

{{# str }} policydoccontent, tool_policy {{/ str }}

{{{content}}}
{{/policies }}