mirror of
https://github.com/documize/community.git
synced 2025-07-27 17:19:42 +02:00
Use new UI framework for content block editor
This commit is contained in:
parent
89957c8278
commit
d0f0a12f2d
1 changed files with 15 additions and 14 deletions
|
@ -1,17 +1,18 @@
|
||||||
{{#layout/top-bar}}
|
{{#layout/master-sidebar}}
|
||||||
<li class="item">
|
{{ui/ui-spacer size=300}}
|
||||||
{{#link-to "folder.index" model.folder.id model.folder.slug class="link"}}
|
<div class="section">
|
||||||
{{model.folder.name}}
|
{{#link-to "folder.settings"}}
|
||||||
|
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.ArrowLeft label="Space Settings"}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</div>
|
||||||
<li class="item">
|
{{/layout/master-sidebar}}
|
||||||
{{#link-to "document.index" model.folder.id model.folder.slug model.document.id model.document.slug class="link selected"}}
|
|
||||||
{{model.document.name}}
|
|
||||||
{{/link-to}}
|
|
||||||
</li>
|
|
||||||
{{/layout/top-bar}}
|
|
||||||
|
|
||||||
{{document/block-editor document=model.document folder=model.folder block=model.block onCancel=(action "onCancel") onAction=(action "onAction")}}
|
{{#layout/master-content}}
|
||||||
|
{{layout/logo-heading
|
||||||
|
title="Content Blocks"
|
||||||
|
desc="Content blocks provide re-usable content that can be inserted into any document"
|
||||||
|
icon=constants.Icon.Integrations}}
|
||||||
|
|
||||||
{{#layout/bottom-bar}}
|
{{document/block-editor document=model.document folder=model.folder block=model.block
|
||||||
{{/layout/bottom-bar}}
|
onCancel=(action "onCancel") onAction=(action "onAction")}}
|
||||||
|
{{/layout/master-content}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue