diff options
| author | Lester Caine <lester@lsces.co.uk> | 2006-02-08 13:17:41 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2006-02-08 13:17:41 +0000 |
| commit | cbe559474ad73396743d84afdd036ea9755c16a5 (patch) | |
| tree | af1fe8af7b7ceab7d6974892da9f3e708460c6f5 /templates | |
| parent | 1163a5dfe4d46961da632ab08d8a78163a6401b6 (diff) | |
| download | pigeonholes-cbe559474ad73396743d84afdd036ea9755c16a5.tar.gz pigeonholes-cbe559474ad73396743d84afdd036ea9755c16a5.tar.bz2 pigeonholes-cbe559474ad73396743d84afdd036ea9755c16a5.zip | |
Make Theme/Permissions/Group optional in pigeonholes
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_pigeonholes.tpl | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/templates/edit_pigeonholes.tpl b/templates/edit_pigeonholes.tpl index 89d8046..f788d61 100644 --- a/templates/edit_pigeonholes.tpl +++ b/templates/edit_pigeonholes.tpl @@ -42,29 +42,35 @@ {/forminput} </div> - <div class="row"> - {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} - </div> + {if $gBitSystem->isFeatureActive( 'pigeonholes_themes' )} + <div class="row"> + {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} + </div> + {/if} - <div class="row"> - {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} - </div> + {if $gBitSystem->isFeatureActive( 'pigeonholes_permissions' )} + <div class="row"> + {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} + </div> + {/if} - <div class="row"> - {formlabel label="Group" for="group"} - {forminput} - {html_options name="pigeonhole[prefs][group_id]" id="group" 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} - </div> + {if $gBitSystem->isFeatureActive( 'pigeonholes_groups' )} + <div class="row"> + {formlabel label="Group" for="group"} + {forminput} + {html_options name="pigeonhole[prefs][group]" id="group" 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} + </div> + {/if} <div class="row"> {formlabel label="Content" for="pigeonhole-content"} |
