From 154080e959440ca9168a56196cf786d1a7405cc5 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 14 Jan 2006 19:55:19 +0000 Subject: merge recent changes into HEAD --- templates/edit_pigeonholes.tpl | 74 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 8 deletions(-) (limited to 'templates/edit_pigeonholes.tpl') diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index ed2f2a2..df30670 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -7,13 +7,71 @@
{formfeedback hash=$feedback} - {if $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' ) and ( $smarty.request.action eq 'create' or $smarty.request.action eq 'edit' or !$gPigeonholes->mContentId )} - {include file="bitpackage:pigeonholes/edit_pigeonholes_inc.tpl"} - {elseif $gBitUser->hasPermission( 'bit_p_edit_pigeonholes' )} - {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" structure_id=`$gPigeonholes->mStructureId` action=create} -
- {/if} - - {include file="bitpackage:pigeonholes/view_structure_inc.tpl" edit=true} + {form legend="Create / Edit Category"} + {if $gPigeonholes->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} +
+ +
+ {formlabel label="Description" for="pigeonhole-desc"} + {forminput} + + {formhelp note="A description of the category. This will be visible when users view this particular category."} + {/forminput} +
+ +
+ {formlabel label="Theme" for="pigeonhole-style"} + {forminput} + {html_options id="pigeonhole-style" name="pigeonhole[settings][style]" output=$styles values=$styles selected=$pigeonInfo.settings.style} + {formhelp note="This theme will be applied when viewing any page belonging to this category."} + {/forminput} +
+ +
+ {formlabel label="Content" for="pigeonhole-content"} + {forminput} + {html_options values=$contentTypes 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} +
+ +
+ + +
+ {/form} + + {include file="bitpackage:pigeonholes/view_structure_inc.tpl"}
-- cgit v1.3