1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 03:55:24 +02:00

Enable doc section expand/collapse

Closes #170
This commit is contained in:
HarveyKandola 2019-06-05 11:09:24 +01:00
parent 99a5418dba
commit 8baad7e2f0
22 changed files with 229 additions and 102 deletions

View file

@ -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)}}