MDL-59671 core_calendar: add visibility logic to template

This commit is contained in:
Simey Lameze 2017-08-04 14:54:41 +08:00
parent 4df03a279a
commit 1106040a4d

View File

@ -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 }}