From 954bd4a21f6516d35ee0cf5c552ec4795ba5150d Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 1 Jul 2007 16:41:51 +0000 Subject: check to see if descriptions are turned on before including attachment browser and remove content insertion box. this is much easier to deal with in the assign content page --- templates/edit_pigeonholes.tpl | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'templates/edit_pigeonholes.tpl') diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index e558558..1cf79c0 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -45,9 +45,9 @@ {if $gBitSystem->isFeatureActive( 'pigeonholes_allow_forbid_insertion') }
- {formlabel label="Forbid Insertion" for="pigeonhole-no-insert"} + {formlabel label="Forbid Content Insertion" for="pigeonhole-no-insert"} {forminput} - mPrefs.no_insert}checked{/if} /> + mPrefs.no_insert}checked="checked"{/if} /> {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}
@@ -83,24 +83,6 @@ {/if} - {if !$gContent->mStructureId} -
- {formlabel label="Content" for="pigeonhole-content"} - {forminput} - {html_options options=$contentTypes name=content_type_guid selected=$contentSelect} - {/forminput} - - {forminput} - {html_options multiple="multiple" size="12" name="pigeonhole[members][]" id="pigeonhole-content" values=$contentList options=$contentList selected=$pigeonInfo.selected_members} - {/forminput} - - {forminput} - - - {/forminput} -
- {/if} - {include file="bitpackage:liberty/edit_storage_list.tpl"}
@@ -109,16 +91,15 @@ {/legend} {/jstab} - {if $gBitUser->hasPermission('p_liberty_attach_attachments') } + {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} + {legend legend="Attachments"} + {include file="bitpackage:liberty/edit_storage.tpl"} + {/legend}
{/jstab} - {/if} + {/if} {/jstabs} {/form} -- cgit v1.3