mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
Change space settings management into tab views
This commit is contained in:
parent
738b3d94b6
commit
92f8fe550e
38 changed files with 683 additions and 411 deletions
18
gui/app/templates/components/folder/settings-blocks.hbs
Normal file
18
gui/app/templates/components/folder/settings-blocks.hbs
Normal file
|
@ -0,0 +1,18 @@
|
|||
<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}}
|
Loading…
Add table
Add a link
Reference in a new issue