diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-07-01 16:41:51 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-07-01 16:41:51 +0000 |
| commit | 954bd4a21f6516d35ee0cf5c552ec4795ba5150d (patch) | |
| tree | bf34fd7e2428f89f6ddff003fb449119c87db09e | |
| parent | 0473b81362d19b50ca1e930d0df99d7784fd7015 (diff) | |
| download | pigeonholes-954bd4a21f6516d35ee0cf5c552ec4795ba5150d.tar.gz pigeonholes-954bd4a21f6516d35ee0cf5c552ec4795ba5150d.tar.bz2 pigeonholes-954bd4a21f6516d35ee0cf5c552ec4795ba5150d.zip | |
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
| -rw-r--r-- | templates/edit_pigeonholes.tpl | 33 |
1 files changed, 7 insertions, 26 deletions
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') } <div class="row"> - {formlabel label="Forbid Insertion" for="pigeonhole-no-insert"} + {formlabel label="Forbid Content Insertion" for="pigeonhole-no-insert"} {forminput} - <input type="checkbox" name="pigeonhole[prefs][no_insert]" id="pigeonhole-no-insert" {if $gContent->mPrefs.no_insert}checked{/if} /> + <input type="checkbox" name="pigeonhole[prefs][no_insert]" id="pigeonhole-no-insert" {if $gContent->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} </div> @@ -83,24 +83,6 @@ </div> {/if} - {if !$gContent->mStructureId} - <div class="row"> - {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} - <input type="text" size="30" name="find_objects" value="{$smarty.request.find_objects}" /> - <input type="submit" value="{tr}Apply filter{/tr}" name="search_objects" /> - {/forminput} - </div> - {/if} - {include file="bitpackage:liberty/edit_storage_list.tpl"} <div class="row submit"> @@ -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"} <div class=row> - {legend legend="Attachments"} - {include file="bitpackage:liberty/edit_storage.tpl"} - - {/legend} + {legend legend="Attachments"} + {include file="bitpackage:liberty/edit_storage.tpl"} + {/legend} </div> {/jstab} - {/if} + {/if} {/jstabs} {/form} |
