mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
parent
99a5418dba
commit
8baad7e2f0
22 changed files with 229 additions and 102 deletions
|
@ -12,6 +12,7 @@
|
|||
</div>
|
||||
{{else}}
|
||||
{{document/page-heading
|
||||
expanded=expanded
|
||||
page=page
|
||||
meta=meta
|
||||
pages=pages
|
||||
|
@ -24,6 +25,7 @@
|
|||
permissions=permissions
|
||||
onEdit=(action "onEdit")
|
||||
refresh=(action refresh)
|
||||
onExpand=(action onExpand)
|
||||
onCopyPage=(action "onCopyPage")
|
||||
onMovePage=(action "onMovePage")
|
||||
onDeletePage=(action "onDeletePage")
|
||||
|
@ -32,12 +34,14 @@
|
|||
onPageSequenceChange=(action onPageSequenceChange)
|
||||
onShowSectionWizard=(action onShowSectionWizard)}}
|
||||
|
||||
{{#if expanded}}
|
||||
<div class="wysiwyg">
|
||||
{{section/base-renderer page=page}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{document/section-attachment uploadLabel="Upload Attachments"
|
||||
{{document/section-attachment uploadLabel="Upload Attachments"
|
||||
editMode=editMode page=page document=document files=attachments
|
||||
onAttachmentUpload=(action onAttachmentUpload)
|
||||
onAttachmentDelete=(action onAttachmentDelete)}}
|
||||
|
|
|
@ -8,10 +8,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="grid-cell-2 grid-cell-right grid-cell-middle">
|
||||
{{#unless (eq document.protection constants.ProtectionType.Lock)}}
|
||||
<div class="section-heading no-print" id="page-toolbar-{{ page.id }}">
|
||||
<div class="section-toolbar">
|
||||
<i class="dicon {{constants.Icon.Expand}} {{unless expanded "expand"}}" {{action "onExpand"}}>
|
||||
{{#attach-tooltip showDelay=1000}}Show/hide{{/attach-tooltip}}
|
||||
</i>
|
||||
{{#unless (eq document.protection constants.ProtectionType.Lock)}}
|
||||
{{#if canEdit}}
|
||||
<div class="gap"/>
|
||||
<i class="add-section dicon {{constants.Icon.Plus}}" {{action "onShowSectionWizard" page}}>
|
||||
{{#attach-tooltip showDelay=1000}}Insert section above{{/attach-tooltip}}
|
||||
</i>
|
||||
|
@ -57,9 +61,9 @@
|
|||
{{/attach-popover}}
|
||||
</i>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{{#if hasPages}}
|
||||
{{#each pages key="id" as |item|}}
|
||||
<Ui::UiSpacer @size="100" id={{concat 'page-spacer-' item.page.id}} />
|
||||
<Ui::UiSpacer @size="100" id={{concat "page-spacer-" item.page.id}} />
|
||||
{{document/document-page
|
||||
expandState=expandState
|
||||
roles=roles
|
||||
pages=pages
|
||||
folder=folder
|
||||
|
@ -14,6 +15,7 @@
|
|||
permissions=permissions
|
||||
attachments=attachments
|
||||
refresh=(action refresh)
|
||||
onExpand=(action onExpand)
|
||||
onAttachmentUpload=(action onAttachmentUpload)
|
||||
onAttachmentDelete=(action onAttachmentDelete)
|
||||
onSavePage=(action "onSavePage")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue