{{#if hasPages}} {{#each pages key="id" as |page index|}} {{#if permissions.documentEdit}}
+ SECTION
{{else}}
{{/if}} {{#document/document-page document=document folder=folder page=page permissions=permissions toEdit=toEdit pageId=pageId onSavePage=(action 'onSavePage') onSavePageAsBlock=(action 'onSavePageAsBlock') onCopyPage=(action 'onCopyPage') onMovePage=(action 'onMovePage') onDeletePage=(action 'onDeletePage')}} {{/document/document-page}} {{/each}} {{#if permissions.documentEdit}}
+ SECTION
{{/if}} {{/if}} {{#unless hasPages}} {{#if permissions.documentEdit}}
+ SECTION
{{/if}} {{/unless}}
{{input type="text" id="new-section-name" value=newSectionName class=(if newSectionNameMissing 'form-control form-control-lg is-invalid' 'form-control form-control-lg') placeholder="Enter section name" autocomplete="off"}}
Insert section type
    {{#each sections as |section|}}
  • {{section.title}}
  • {{/each}}
{{#if hasBlocks}}
Insert re-usable content
    {{#each blocks as |block|}}
  • {{#if permissions.documentTemplate}} {{#link-to 'document.block' folder.id folder.slug document.id document.slug block.id class="button-icon-green button-icon-small align-middle"}} edit {{/link-to}}
    delete
    {{/if}}
    {{block.title}}
    {{block.excerpt}}
  • {{/each}}
{{else}}
Reusable content appears below
{{/if}}
{{#ui/ui-dialog title="Delete Content Block" confirmCaption="Delete" buttonType="btn-danger" show=showDeleteBlockDialog onAction=(action 'onDeleteBlock')}}

Are you sure you want to delete this re-usable content block?

{{/ui/ui-dialog}}