Code

Updated server service Kiosk-Management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Jun 2008 08:49:35 +0000 (08:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Jun 2008 08:49:35 +0000 (08:49 +0000)
-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

gosa-plugins/goto/admin/systems/services/kiosk/class_goKioskService.inc
gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl

index ca1410f82acb18f8a48b09ea405b633421cf4fd0..9136a08910757c17bbe183ef0d4651bab0faf868 100644 (file)
@@ -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 
index 8fea2eb4d980d62ce53b8e7582c26a95f12ecc17..e366aaff1e909bfbb9a65fe5ef58ecc06de963e7 100644 (file)
@@ -1,5 +1,16 @@
 <h2><img alt="" class="center" src="images/house.png" align="middle">&nbsp;<LABEL for="gotoKioskProfile">{t}Kiosk profile management{/t}</ LABEL></h2>
 
+{if $baseDir == ""}
+
+<b>{msgPool type=invalidConfigurationAttribute param=KIOSKPATH}</b>
+
+<p class='seperator'>&nbsp;</p>
+<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
+    <input type='submit' name='CancelService' value='{msgPool type=cancelButton}'>
+</div>
+
+{else}
+
     <input type="hidden" name="dialogissubmitted" value="1">
 
 {t}Server path{/t}&nbsp;<input name="server_path" style="width:300px;" value="{$server_path}">
@@ -22,3 +33,4 @@
     focus_field('gotoKioskProfile');
   -->
 </script>
+{/if}