{{#if hasPages}} {{#each pages key="id" as |item index|}} {{#if canEdit}}
+ SECTION
{{else}}
{{/if}} {{document/document-page document=document folder=folder page=item.page meta=item.meta pending=item.pending permissions=permissions toEdit=toEdit roles=roles blocks=blocks onSavePage=(action 'onSavePage') onSavePageAsBlock=(action 'onSavePageAsBlock') onCopyPage=(action 'onCopyPage') onMovePage=(action 'onMovePage') onDeletePage=(action 'onDeletePage') refresh=(action refresh)}} {{/each}} {{#if canEdit}}
+ SECTION
{{/if}} {{/if}} {{#unless hasPages}} {{#if canEdit}}
+ SECTION
{{/if}} {{/unless}} {{#if canEdit}}
{{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}}
You have no reusable content — publish any section as a template
{{/if}}
{{/if}} {{#if permissions.documentTemplate}} {{#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}} {{/if}}