2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template tool_policy/page_viewdoc
20 Template for viewing a policy version document.
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * policy - version document object.
31 Example context (json):
36 "name": "Terms & conditions",
37 "summary": "Policy <u>summary</u>",
38 "content": "Policy <em>content</em>"
47 <div class="clearfix">
48 <div class="float-left">
49 <h2>{{{policy.name}}}</h2>
52 <div class="float-right">
53 {{# str }} steppolicies, tool_policy,
54 { "numpolicy": {{# quote }}{{numpolicy}}{{/quote }}, "totalpolicies": {{# quote }}{{totalpolicies}}{{/ quote }} }
62 <div class="clearfix mt-2">
63 <h3>{{# str }}readpolicy, tool_policy, {{{policy.name}}} {{/ str }}</h3>
69 <div class="policy_document mt-1">
70 <div class="policy_document_summary clearfix mb-1">
73 <div class="policy_document_content mt-2">
80 <div class="policy_buttons">
83 <a role="button" href="{{returnurl}}" class="btn btn-primary">{{#str}} next {{/str}}</a>
86 <a role="button" href="{{returnurl}}" class="btn btn-primary">{{#str}} back {{/str}}</a>
90 <a role="button" href="{{editurl}}" class="btn">{{#str}} edit {{/str}}</a>
93 <a role="button" href="{{accepturl}}" class="btn btn-primary">{{#str}} iagree, tool_policy, {{{policy.name}}} {{/str}}</a>
96 <a role="button" href="{{declineurl}}" class="btn btn-link">{{#str}} idontagree, tool_policy, {{{policy.name}}} {{/str}}</a>
99 <div class="float-right">
101 {{# str }} backtotop, tool_policy {{/ str }}
102 <i class="icon text-primary fa fa-caret-up" title="{{# str }} backtotop, tool_policy {{/ str }}" ></i>