From f8668ecc5e9433ccbb6578bd85a0a3823ab69214 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jan 2010 17:19:25 +0000 Subject: [PATCH] Reenabled release buttons git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15068 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_faiManagement.inc | 8 ++++++++ gosa-plugins/fai/admin/fai/fai-filter.tpl | 20 ++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 677ba0ea3..4a6f7ab90 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -264,6 +264,14 @@ class faiManagement extends management } $headpage->setBase($this->fai_release); $headpage->update(); + $smarty = get_smarty(); + $smarty->assign("fai_release", $this->fai_release); + $smarty->assign("fai_base", get_ou('faiBaseRDN').$this->config->current['BASE']); + $r = $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs')); + $c = $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs')); + $smarty->assign("allow_create", $c); + $smarty->assign("allow_remove", $r); + $smarty->assign("fai_base", get_ou('faiBaseRDN').$this->config->current['BASE']); $display = $headpage->render(); return($this->getHeader().$display); } diff --git a/gosa-plugins/fai/admin/fai/fai-filter.tpl b/gosa-plugins/fai/admin/fai/fai-filter.tpl index f29a2a5d4..4bfc457ba 100644 --- a/gosa-plugins/fai/admin/fai/fai-filter.tpl +++ b/gosa-plugins/fai/admin/fai/fai-filter.tpl @@ -15,15 +15,29 @@
+ +{if $allow_create} - {t}Create release{/t} + {t}Create release{/t}
- {t}Create read-only release{/t} + {t}Create read-only release{/t} +{else} + {t}Release{/t} + {t}Create release{/t} +
+ {t}Freeze{/t} + {t}Create read-only release{/t} +{/if} + +{if $fai_release != $fai_base && $allow_remove}
- {t}Delete current release{/t} + {t}Delete current release{/t} +{/if} +
+
{$PROFILE} {t}Show profiles{/t} -- 2.30.2