2018-06-05 14:04:14 +01:00
|
|
|
|
<div class="content-zone">
|
|
|
|
|
<div class="explainer-header explainer-gap">Content blocks provide re-usable content that can be inserted into any document</div>
|
|
|
|
|
{{#each blocks as |block|}}
|
|
|
|
|
<div class="mb-5">
|
|
|
|
|
<h1>{{block.title}}</h1>
|
|
|
|
|
<p>{{block.excerpt}}</p>
|
2018-12-08 20:54:19 +00:00
|
|
|
|
<button type="button" class="btn btn-outline-success" onclick={{action "onEdit" block.id}}>Edit</button>
|
2018-06-05 14:04:14 +01:00
|
|
|
|
<div class="button-gap" />
|
2018-12-08 20:54:19 +00:00
|
|
|
|
<button type="button" class="btn btn-outline-danger" onclick={{action "onShowDeleteDialog" block.id}}>Delete</button>
|
2018-06-05 14:04:14 +01:00
|
|
|
|
</div>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{#if isSpaceAdmin}}
|
2018-12-08 20:54:19 +00:00
|
|
|
|
{{#ui/ui-dialog title="Delete Content Block" confirmCaption="Delete" buttonType="btn-danger" show=showDeleteDialog onAction=(action "onDeleteBlock")}}
|
2018-06-05 14:04:14 +01:00
|
|
|
|
<p>Are you sure you want to delete this re-usable content block?</p>
|
|
|
|
|
{{/ui/ui-dialog}}
|
|
|
|
|
{{/if}}
|