{literal} {/literal} {strip}

{$gContent->getTitle()|escape} {tr}Table of Contents{/tr}

{form legend="Add Content" id="structureaddform"}
{if $subtree}
{formlabel label="After page" for="after_ref_id"} {forminput} {formhelp note="Format: Position in tree - Title of Content, insert after, structure_id"} {/forminput}
{/if}
{minifind} {* disable until it can be sorted }
{formlabel label="Search" for="lib-content"} {forminput}
{formhelp note=""} {/forminput}
{ *}
{formlabel label="Content Type" for="content_type_guid"} {forminput} {html_options class="form-control" onchange="submit();" options=$contentTypes name=content_type_guid selected=$contentSelect} {/forminput} {* forminput} {html_options class="form-control" multiple="multiple" id="lib-content" size="12" name="content[]" values=$contentList options=$contentList} {/forminput *}
{foreach from=$contentListHash item=contentHash} {assign var=inStructureId value=$gStructure->isInStructure($contentHash.content_id)} {/foreach}
{if $contentHash.thumbnail_url}{tr}Thumbnail{/tr}{/if}
{displayname hash=$contentHash}
{if $inStructureId}
{tr}Remove{/tr}
{else}
{tr}Add{/tr}
{/if}
{/form}
{/strip}