MDL-59671 core_calendar: add visibility logic to template

This commit is contained in:
Simey Lameze
2017-08-08 11:44:19 +08:00
parent 4df03a279a
commit 1106040a4d
@@ -26,7 +26,11 @@
}}
{{< core/modal }}
{{$footer}}
<button type="button" class="btn btn-secondary" data-action="delete">{{#str}} delete {{/str}}</button>
<button type="button" class="btn btn-primary" data-action="edit">{{#str}} edit {{/str}}</button>
{{#canedit}}
{{#candelete}}
<button type="button" class="btn btn-secondary" data-action="delete">{{#str}} delete {{/str}}</button>
{{/candelete}}
<button type="button" class="btn btn-primary" data-action="edit">{{#str}} edit {{/str}}</button>
{{/canedit}}
{{/footer}}
{{/ core/modal }}