{{#*inline "contentTreeNode"}}

{{node.name}}

{{#each node.children as |child|}} {{> contentTreeNode node=child}} {{/each}}
    {{#each node.documents as |document|}}

    {{document.name}}

    {{/each}}
{{/inline}}

{{ localize "ADVENTURE.NameHint" }}

{{filePicker target="img" type="image"}}

{{ localize "ADVENTURE.ImageHint" }}

{{ localize "ADVENTURE.CaptionHint" }}

{{editor adventure.description target="description" button=false engine="prosemirror" collaborate=false}}

{{ localize "ADVENTURE.DescriptionHint" }}

{{numberInput adventure.sort name="sort" step=1}}

{{ localize "FOLDER.DocumentSortHint" }}

{{#each contentTree as |root|}}

{{root.name}} ({{root.documentCount}})

{{#each root.children}} {{> contentTreeNode node=this}} {{/each}}
    {{#each root.documents as |document|}}

    {{document.name}}

    {{/each}}
{{else}}
{{/each}}