1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00
documize/gui/app/templates/components/folder/settings-blocks.hbs
2018-06-05 14:04:14 +01:00

18 lines
No EOL
849 B
Handlebars
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>
<button type="button" class="btn btn-outline-success" onclick={{action 'onEdit' block.id}}>Edit</button>
<div class="button-gap" />
<button type="button" class="btn btn-outline-danger" onclick={{action 'onShowDeleteDialog' block.id}}>Delete</button>
</div>
{{/each}}
</div>
{{#if isSpaceAdmin}}
    {{#ui/ui-dialog title="Delete Content Block" confirmCaption="Delete" buttonType="btn-danger" show=showDeleteDialog onAction=(action 'onDeleteBlock')}}
        <p>Are you sure you want to delete this re-usable content block?</p>
    {{/ui/ui-dialog}}
{{/if}}