summaryrefslogtreecommitdiff
path: root/templates/edit_content_status_inc.tpl
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-05-23 17:21:53 +0000
committerwjames5 <will@tekimaki.com>2008-05-23 17:21:53 +0000
commit7abacd006b786e6363be5a6ebfd625589be18f5f (patch)
tree6e8fc69859b947ba3ba7d9f5e390d2e0a7eda743 /templates/edit_content_status_inc.tpl
parentbe51cb47c457f0bb377e7619fc3654073011c183 (diff)
downloadliberty-7abacd006b786e6363be5a6ebfd625589be18f5f.tar.gz
liberty-7abacd006b786e6363be5a6ebfd625589be18f5f.tar.bz2
liberty-7abacd006b786e6363be5a6ebfd625589be18f5f.zip
status enhancements, dont show form if there are no status options, allow derivative classes to customize their status edit tpl
Diffstat (limited to 'templates/edit_content_status_inc.tpl')
-rw-r--r--templates/edit_content_status_inc.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/edit_content_status_inc.tpl b/templates/edit_content_status_inc.tpl
index 5d68055..26d3709 100644
--- a/templates/edit_content_status_inc.tpl
+++ b/templates/edit_content_status_inc.tpl
@@ -1,4 +1,8 @@
-{if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && $gBitSystem->isFeatureActive( 'liberty_display_status_menu' ) && ($gBitUser->hasPermission('p_liberty_edit_content_status') || $gBitUser->hasPermission('p_liberty_edit_all_status'))}
+{if $gBitSystem->isFeatureActive( 'liberty_display_status' ) &&
+ $gBitSystem->isFeatureActive( 'liberty_display_status_menu' ) &&
+ $gContent->getAvailableContentStatuses() &&
+ ($gBitUser->hasPermission('p_liberty_edit_content_status') || $gBitUser->hasPermission('p_liberty_edit_all_status'))
+ }
<div class="row">
{formlabel label="Status" for="content_status_id"}
{forminput}