summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7ab71c0)
raw | patch | inline | side by side (parent: 7ab71c0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 26 Jun 2008 08:49:35 +0000 (08:49 +0000) | ||
committer | hickert <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
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 | patch | blob | history | |
gosa-plugins/goto/admin/systems/services/kiosk/goKioskService.tpl | patch | blob | history |
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 ca1410f82acb18f8a48b09ea405b633421cf4fd0..9136a08910757c17bbe183ef0d4651bab0faf868 100644 (file)
/* 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'])){
/* 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 8fea2eb4d980d62ce53b8e7582c26a95f12ecc17..e366aaff1e909bfbb9a65fe5ef58ecc06de963e7 100644 (file)
<h2><img alt="" class="center" src="images/house.png" align="middle"> <LABEL for="gotoKioskProfile">{t}Kiosk profile management{/t}</ LABEL></h2>
+{if $baseDir == ""}
+
+<b>{msgPool type=invalidConfigurationAttribute param=KIOSKPATH}</b>
+
+<p class='seperator'> </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} <input name="server_path" style="width:300px;" value="{$server_path}">
focus_field('gotoKioskProfile');
-->
</script>
+{/if}