{{localize 'link_insert'}}
    {{#if hasSections}}
  • {{localize 'link_type_section'}}
  • {{/if}} {{#if hasAttachments}}
  • {{localize 'link_type_attachment'}}
  • {{/if}}
  • {{localize 'link_type_search'}}
  • {{localize 'link_type_network'}}
{{#if showSections}}

{{localize 'link_type_section_explain'}}

{{ui/ui-list-picker items=candidates.pages nameField="title" singleSelect=true onSelect=(action "setSelection")}}
{{/if}} {{#if showAttachments}}

{{localize 'link_type_attachment_explain'}}

    {{#each candidates.attachments as |item|}}
  • {{item.title}}
    {{#if item.selected}} {{/if}}
  • {{/each}}
{{/if}} {{#if showSearch}}
{{focus-input id="content-linker-search" type="input" class="form-control" value=keywords placeholder="" autocomplete="off" key-up=(action "onSearch")}} {{localize 'link_type_search_explain'}}
{{#unless hasMatches}}

{{localize 'nothing_found'}}

{{/unless}}
    {{#each matches.documents as |item|}}
  • {{item.title}}
    {{item.context}}
    {{#if item.selected}} {{/if}}
  • {{/each}} {{#each matches.pages as |item|}}
  • {{item.title}}
    {{item.context}}
    {{#if item.selected}} {{/if}}
  • {{/each}} {{#each matches.attachments as |item|}}
  • {{item.title}}
    {{#if item.selected}} {{/if}}
  • {{/each}}
{{/if}} {{#if showNetwork}}

{{localize 'link_type_network_explain'}}

{{focus-input id="content-linker-networklocation" type="input" class="form-control" value=networkLocation placeholder=(localize 'link_type_network_example') autocomplete="off"}}
{{/if}}
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'close') dismiss=true}} {{ui/ui-button-gap}} {{ui/ui-button color=constants.Color.Green light=true label=(localize 'insert') onClick=(action "onInsertLink")}}