{bithelp}

{tr}Edit Categories{/tr}

{formfeedback hash=$feedback} {form method="post" enctype="multipart/form-data"} {jstabs} {jstab title="Create / Edit Category"} {legend legend="Create / Edit Category"} {if $gContent->mStructureId}
{formlabel label="Parent" for="pigeonhole-parent"} {forminput} {* we need to disable dropdown when editing since it might confus users when nothing happens *} {if $pigeonInfo.content_id} {html_options id="pigeonhole-parent" name="pigeonhole[parent_id]" values=$pigeonStructure options=$pigeonStructure selected=$pigeonInfo.parent_id disabled=disabled} {else} {html_options id="pigeonhole-parent" name="pigeonhole[parent_id]" values=$pigeonStructure options=$pigeonStructure selected=$pigeonInfo.parent_id} {/if} {formhelp note="Pick where you would like to create a new sub-category. To change the hierarchy of the categories, please visit the change structure page."} {/forminput}
{/if}
{formlabel label="Title" for="pigeonhole-title"} {forminput} {/forminput}
{if $gBitSystem->isFeatureActive('pigeonholes_display_description')}
{textarea id="pigeonhole-desc" name="pigeonhole[edit]" help="A description of the category. This will be visible when users view this particular category." label="Description" edit=$pigeonInfo.data}
{/if} {if $gBitSystem->isFeatureActive( 'pigeonholes_allow_forbid_insertion') }
{forminput label="checkbox"} mPrefs.no_insert}checked="checked"{/if} />Forbid Content Insertion {formhelp note="Forbids inserting new content into this category. Useful for categories which are meant to hold other categories in a heirarchy where only leaf categories should hold content."} {/forminput}
{/if} {if $gBitSystem->isFeatureActive( 'pigeonholes_themes' )}
{formlabel label="Theme" for="pigeonhole-style"} {forminput} {html_options id="pigeonhole-style" name="pigeonhole[prefs][style]" output=$styles values=$styles selected=$gContent->mPrefs.style} {formhelp note="This theme will be applied when viewing any page belonging to this category." warning="Setting is inherited from parent category."} {/forminput}
{/if} {if $gBitSystem->isFeatureActive( 'pigeonholes_permissions' )}
{formlabel label="Permission" for="perm"} {forminput} {html_options name="pigeonhole[prefs][permission]" id="perm" options=$perms selected=$gContent->mPrefs.permission} {formhelp note="Permission required to view any page in this category." warning="Setting is inherited from parent category."} {/forminput}
{/if} {if $gBitSystem->isFeatureActive( 'pigeonholes_groups' )}
{formlabel label="Group" for="group_id"} {forminput} {html_options name="pigeonhole[prefs][group_id]" id="group_id" options=$groups selected=$gContent->mPrefs.group_id} {formhelp note="Users of only this group can view the content of this category." warning="Setting is inherited from parent category."} {/forminput}
{/if} {include file="bitpackage:liberty/edit_storage_list.tpl"}
{/legend} {/jstab} {if $gBitSystem->isFeatureActive('pigeonholes_display_description') && $gBitUser->hasPermission('p_liberty_attach_attachments') } {jstab title="Attachments"}
{legend legend="Attachments"} {include file="bitpackage:liberty/edit_storage.tpl"} {/legend}
{/jstab} {/if} {/jstabs} {/form} {include file="bitpackage:pigeonholes/view_structure_inc.tpl"}