From 586857b173a14f209835b8d74f216ce8f57c42c1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Aug 2008 07:54:16 +0000 Subject: [PATCH] Renamed opsi class. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12307 594d385d-05f5-0310-b6e9-bd551577e9d8 --- ..._product_config.inc => class_opsiProperties.inc} | 0 gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc | 4 ++-- gosa-plugins/opsi/admin/opsi/properties.tpl | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) rename gosa-plugins/opsi/admin/opsi/{class_opsi_product_config.inc => class_opsiProperties.inc} (100%) diff --git a/gosa-plugins/opsi/admin/opsi/class_opsi_product_config.inc b/gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc similarity index 100% rename from gosa-plugins/opsi/admin/opsi/class_opsi_product_config.inc rename to gosa-plugins/opsi/admin/opsi/class_opsiProperties.inc diff --git a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc index 0e7c41608..acc0789f2 100644 --- a/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc +++ b/gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc @@ -330,7 +330,7 @@ class opsiGeneric extends plugin if(isset($_POST['cancel_properties']) && is_object($this->dialog)){ $this->dialog = NULL; } - if(isset($_POST['save_properties']) && ($this->dialog instanceof opsiProductConfig)){ + if(isset($_POST['save_properties']) && ($this->dialog instanceof opsiProperties)){ $this->dialog->save_object(); $pro = $this->dialog->get_product(); $CFG = $this->dialog->get_cfg(); @@ -386,7 +386,7 @@ class opsiGeneric extends plugin } if(preg_match("/^edit_lp_/",$name)){ $product = preg_replace("/^edit_lp_(.*)_.$/","\\1",$name); - $this->dialog = new opsiProductConfig($this->config, + $this->dialog = new opsiProperties($this->config, $product,$this->a_selectedLocalProducts[$product]['CFG'],$this->hostId); break; } diff --git a/gosa-plugins/opsi/admin/opsi/properties.tpl b/gosa-plugins/opsi/admin/opsi/properties.tpl index 4c7a8e5ba..f38fe4b06 100644 --- a/gosa-plugins/opsi/admin/opsi/properties.tpl +++ b/gosa-plugins/opsi/admin/opsi/properties.tpl @@ -1,4 +1,13 @@ -

Opsi product properties

+

 {t}Opsi product properties{/t}

+ + +{if $cfg_count == 0} +
+{t}This product has no options.{/t} +
+
+ +{else} {foreach from=$cfg item=item key=key} @@ -8,6 +17,8 @@ {/foreach}
+ +{/if}

 

-- 2.30.2