2018-05-30 11:27:29 +01:00
|
|
|
{{#if hasPages}}
|
2018-06-01 11:49:09 +01:00
|
|
|
|
2018-12-08 20:54:19 +00:00
|
|
|
{{#each pages key="id" as |item|}}
|
2018-06-01 11:49:09 +01:00
|
|
|
{{#if canEdit}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div class="start-section" {{action "onShowSectionWizard" item.page}}>
|
2018-06-01 11:49:09 +01:00
|
|
|
<div class="start-button">
|
|
|
|
<div class="cta">+ SECTION</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="margin-top-70" />
|
|
|
|
{{/if}}
|
|
|
|
{{document/document-page
|
|
|
|
roles=roles
|
|
|
|
pages=pages
|
|
|
|
folder=folder
|
|
|
|
toEdit=toEdit
|
|
|
|
blocks=blocks
|
|
|
|
page=item.page
|
|
|
|
meta=item.meta
|
|
|
|
document=document
|
|
|
|
pending=item.pending
|
|
|
|
permissions=permissions
|
|
|
|
refresh=(action refresh)
|
2018-12-08 20:54:19 +00:00
|
|
|
onSavePage=(action "onSavePage")
|
|
|
|
onCopyPage=(action "onCopyPage")
|
|
|
|
onMovePage=(action "onMovePage")
|
|
|
|
onDeletePage=(action "onDeletePage")
|
|
|
|
onSavePageAsBlock=(action "onSavePageAsBlock")
|
2018-06-01 11:49:09 +01:00
|
|
|
onPageLevelChange=(action onPageLevelChange)
|
|
|
|
onPageSequenceChange=(action onPageSequenceChange)}}
|
|
|
|
{{/each}}
|
|
|
|
|
2018-05-30 11:27:29 +01:00
|
|
|
{{#if canEdit}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div class="start-section" {{action "onShowSectionWizard"}}>
|
2018-05-30 11:27:29 +01:00
|
|
|
<div class="start-button">
|
|
|
|
<div class="cta">+ SECTION</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-01 11:49:09 +01:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if showLikes}}
|
2018-06-09 18:18:21 +01:00
|
|
|
<div class=" d-flex justify-content-center non-printable">
|
2018-06-01 11:49:09 +01:00
|
|
|
<div class="vote-box">
|
|
|
|
{{#unless voteThanks}}
|
|
|
|
<div class="prompt">
|
|
|
|
{{folder.likes}}
|
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
2018-12-12 13:35:16 +00:00
|
|
|
<button type="button" class="btn btn-outline-success bold-700" {{action "onVote" 1}}>Yes, thanks!</button>
|
|
|
|
<button type="button" class="btn btn-outline-secondary bold-700" {{action "onVote" 2}}>Not really</button>
|
2018-06-01 11:49:09 +01:00
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="ack">Thanks for the feedback!</div>
|
|
|
|
{{/unless}}
|
2018-05-30 11:27:29 +01:00
|
|
|
</div>
|
2017-12-05 19:03:38 +00:00
|
|
|
</div>
|
2018-05-30 11:27:29 +01:00
|
|
|
{{/if}}
|
2018-06-01 11:49:09 +01:00
|
|
|
|
2018-06-04 14:37:21 +01:00
|
|
|
{{else }}
|
2018-05-30 11:27:29 +01:00
|
|
|
|
|
|
|
{{#if canEdit}}
|
2018-12-08 20:54:19 +00:00
|
|
|
<div class="start-section" {{action "onShowSectionWizard"}}>
|
2018-06-01 11:49:09 +01:00
|
|
|
<div class="start-button">
|
|
|
|
<div class="cta">+ SECTION</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{/if}}
|
|
|
|
|
2018-06-04 14:37:21 +01:00
|
|
|
{{#if canEdit}}
|
|
|
|
{{document/add-section
|
|
|
|
pages=pages
|
|
|
|
blocks=blocks
|
|
|
|
folder=folder
|
|
|
|
toEdit=toEdit
|
|
|
|
folders=folders
|
|
|
|
sections=sections
|
|
|
|
document=document
|
|
|
|
permissions=permissions
|
|
|
|
show=showInsertSectionModal
|
|
|
|
beforePage=newSectionLocation
|
|
|
|
onInsertSection=(action onInsertSection)}}
|
|
|
|
{{/if}}
|