{if !$pigeonList}
{formfeedback warning="No categories have been set up yet. You need to create some before you can assign content to them."}
{else}
{form legend="Assign Content"}
{formlabel label="Restrict listing" for="content_type"}
{forminput}
{tr}Records{/tr}
{/forminput}
{forminput}
{/forminput}
{forminput}
{html_options options=$contentTypes name=content_type id=content_type selected=$contentSelect}
{/forminput}
{forminput}
{formhelp note="You can restrict the content listing to a given content type or apply a filter."}
{/forminput}
{formlabel label="Category" for="root_structure_id"}
{forminput}
{html_options values=$pigeonRoots options=$pigeonRoots name=root_structure_id id=root_structure_id selected=$smarty.request.root_structure_id}
{formhelp note="Pick category you want to use to insert content into."}
{/forminput}
{/form}
{formfeedback hash=$feedback}
{form}
{if $gBitSystem->isFeatureActive( 'custom_member_sorting' ) && $smarty.request.include eq 'members'}
{formfeedback warning="Using this insertion method will reset any custom sorting you have done so far."}
{/if}
{if $gBitSystem->isFeatureActive('pigeonholes_reverse_assign_table')}
{foreach from=$assignableContent item=item}