diff --git a/admin/tool/policy/templates/acceptances.mustache b/admin/tool/policy/templates/acceptances.mustache index 63a7335ae80..6c37b4c9f13 100644 --- a/admin/tool/policy/templates/acceptances.mustache +++ b/admin/tool/policy/templates/acceptances.mustache @@ -29,60 +29,60 @@ * policies Example context (json): - { + { "hasonbehalfagreements": true, "policies": [ - { - "versions": [ - { - "isfirst": true, - "policyid": 1, - "viewurl": "/", - "name": "Terms & conditions", - "revision": "2.0", - "hasarchived": true, - "timeaccepted": "1 Mar 2018", - "agreement": { - "onbehalf": false, - "status": false, - "canaccept": true, - "acceptlink": "#" - } - }, - { - "isfirst": false, - "policyid": 1, - "viewurl": "/", - "name": "Terms & conditions", - "revision": "1.0-beta", - "acceptedby": "Mary Smith", - "note": "Based on parent's agreement via email", - "hasarchived": false, - "timeaccepted": "15 Feb 2018", - "agreement": { - "onbehalf": true, - "status": true, - "canaccept": false - } - } - ] - } - ] - } + { + "versions": [ + { + "isfirst": true, + "policyid": 1, + "viewurl": "/", + "name": "Terms & conditions", + "revision": "2.0", + "hasarchived": true, + "timeaccepted": "1 Mar 2018", + "agreement": { + "onbehalf": false, + "status": false, + "canaccept": true, + "acceptlink": "#" + } + }, + { + "isfirst": false, + "policyid": 1, + "viewurl": "/", + "name": "Terms & conditions", + "revision": "1.0-beta", + "acceptedby": "Mary Smith", + "note": "Based on parent's agreement via email", + "hasarchived": false, + "timeaccepted": "15 Feb 2018", + "agreement": { + "onbehalf": true, + "status": true, + "canaccept": false + } + } + ] + } + ] + } }}
| {{#str}} policydocname, tool_policy {{/str}} | -{{#str}} policydocrevision, tool_policy {{/str}} | -{{#str}} agreed, tool_policy {{/str}} | -{{#str}} agreedon, tool_policy {{/str}} | - {{#hasonbehalfagreements}} -{{#str}} agreedby, tool_policy {{/str}} | -{{#str}} acceptancenote, tool_policy {{/str}} | - {{/hasonbehalfagreements}} -- | {{#str}} policydocname, tool_policy {{/str}} | +{{#str}} policydocrevision, tool_policy {{/str}} | +{{#str}} agreed, tool_policy {{/str}} | +{{#str}} agreedon, tool_policy {{/str}} | + {{#hasonbehalfagreements}} +{{#str}} agreedby, tool_policy {{/str}} | +{{#str}} acceptancenote, tool_policy {{/str}} | + {{/hasonbehalfagreements}} ++ {{#policies}} |
|---|