From 420bf25fda0488429e34c73ea11f6117f6a3fda9 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Jun 2008 08:49:35 +0000 Subject: [PATCH] Updated server service Kiosk-Management -If kioskpath wasn't set there was an error message displayed everytime you have opened a server. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11449 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/kiosk/class_goKioskService.inc | 3 ++- .../admin/systems/services/kiosk/goKioskService.tpl | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc index ca1410f82..9136a0891 100644 --- a/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc +++ b/gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc @@ -28,7 +28,7 @@ class goKioskService extends goService{ /* Load list of profiles and check if they still exists */ if ($this->baseDir == ""){ - msg_dialog::display(_("Configuration error"), msgPool::cmdnotfound("KIOSKPATH",_("Kiosk profile service")), ERROR_DIALOG); +# msg_dialog::display(_("Configuration error"), msgPool::cmdnotfound("KIOSKPATH",_("Kiosk profile service")), ERROR_DIALOG); }else{ $this->gotoKioskProfiles = array(); if(isset($this->attrs['gotoKioskProfile']) && is_array($this->attrs['gotoKioskProfile'])){ @@ -73,6 +73,7 @@ class goKioskService extends goService{ /* Fill templating stuff */ $smarty= get_smarty(); + $smarty->assign("baseDir",$this->baseDir); $display= ""; /* Download kiosk profile diff --git a/gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl b/gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl index 8fea2eb4d..e366aaff1 100644 --- a/gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl +++ b/gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl @@ -1,5 +1,16 @@

 

+{if $baseDir == ""} + +{msgPool type=invalidConfigurationAttribute param=KIOSKPATH} + +

 

+
+ +
+ +{else} + {t}Server path{/t}  @@ -22,3 +33,4 @@ focus_field('gotoKioskProfile'); --> +{/if} -- 2.30.2