From: janw Date: Tue, 31 May 2005 12:36:02 +0000 (+0000) Subject: Add asterisk for required attributes in network.tpl X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c02a9629a834fa473d9fb709e9ca3d531c936c5e;p=gosa.git Add asterisk for required attributes in network.tpl git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@549 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc index 4c8508128..139444563 100644 --- a/plugins/admin/systems/class_componentGeneric.inc +++ b/plugins/admin/systems/class_componentGeneric.inc @@ -60,6 +60,9 @@ class componentGeneric extends plugin } $smarty->assign("base_select", $this->base); + /* Show Asterisk for required attribute ipHostNumber and macAddress */ + $smarty->assign("staticAddress", "*"); + /* Show main page */ $smarty->assign("netconfig", dirname(__FILE__)."/network.tpl"); return($smarty->fetch (get_template_path('component.tpl', TRUE))); diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 2e788e1cf..417b6b31c 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -59,7 +59,10 @@ class phoneGeneric extends plugin $smarty->assign("$attr", $this->$attr); } $smarty->assign("base_select", $this->base); - + + /* Show Asterisk for required attribute ipHostNumber and macAddress */ + $smarty->assign("staticAddress", "*"); + /* Show main page */ $smarty->assign("netconfig", dirname(__FILE__)."/network.tpl"); return($smarty->fetch (get_template_path('phone.tpl', TRUE))); diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index c816cc234..b662fae88 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -69,6 +69,9 @@ class printgeneric extends plugin } $smarty->assign("base_select", $this->base); + /* Don't show Asterisk for non-required attribute ipHostNumber and macAddress */ + $smarty->assign("staticAddress", ""); + /* Show main page */ $smarty->assign("netconfig", dirname(__FILE__)."/network.tpl"); return($smarty->fetch (get_template_path('printer.tpl', TRUE))); diff --git a/plugins/admin/systems/class_servDB.inc b/plugins/admin/systems/class_servDB.inc index c6e38f25c..12612a580 100644 --- a/plugins/admin/systems/class_servDB.inc +++ b/plugins/admin/systems/class_servDB.inc @@ -71,6 +71,9 @@ class servdb extends plugin $smarty->assign("$attr"."ACL", chkacl($this->acl, $attr)); } + /* Don't show Asterisk for non-required attribute ipHostNumber and macAddress */ + $smarty->assign("staticAddress", ""); + /* Classes... */ foreach ($this->additionaloc as $oc => $dummy){ if (isset($this->objectclasses[$oc])){ diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index c081b412a..12c1c309d 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -100,6 +100,7 @@ class servgeneric extends plugin $smarty->assign($attr."ACL", chkacl($this->acl, $attr)); $smarty->assign("$attr", $this->$attr); } + $smarty->assign("staticAddress", ""); $smarty->assign("base_select", $this->base); /* Assign status */ diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc index bff759aab..3c6fae64c 100644 --- a/plugins/admin/systems/class_servService.inc +++ b/plugins/admin/systems/class_servService.inc @@ -61,6 +61,8 @@ class servservice extends plugin $smarty= get_smarty(); + $smarty->assign("staticAddress", ""); + /* Handling for Nfs Export Entries */ diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index 99b11ba7e..e639e1636 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -131,6 +131,7 @@ class termgeneric extends plugin /* Fill templating stuff */ $smarty= get_smarty(); $smarty->assign("cn", $this->cn); + $smarty->assign("staticAddress", ""); $smarty->assign("bases", $this->config->idepartments); diff --git a/plugins/admin/systems/class_terminalInfo.inc b/plugins/admin/systems/class_terminalInfo.inc index 4b41bfbfd..46eb02226 100644 --- a/plugins/admin/systems/class_terminalInfo.inc +++ b/plugins/admin/systems/class_terminalInfo.inc @@ -73,6 +73,8 @@ class terminfo extends plugin $smarty= get_smarty(); $display= ""; + $smarty->assign("staticAddress", ""); + /* Check if terminal is online */ $query= "fping -q -r 1 -t 500 ".$this->cn; exec ($query, $dummy, $retval); diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index 0d5b0b851..d04d110a0 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -166,6 +166,7 @@ class termservice extends plugin $smarty->assign($val, $this->$val); $smarty->assign($val."ACL", chkacl($this->acl, $val)); } + $smarty->assign("staticAddress", ""); /* Checkboxes */ foreach(array("gotoLpdEnable", "gotoScannerEnable") as $val){ diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc index 82b5a25c9..a9533636a 100644 --- a/plugins/admin/systems/class_winGeneric.inc +++ b/plugins/admin/systems/class_winGeneric.inc @@ -84,6 +84,8 @@ class wingeneric extends plugin $smarty->assign("$attr", $this->$attr); } + /* Show Asterisk for required attribute ipHostNumber and macAddress */ + $smarty->assign("staticAddress", "*"); $smarty->assign("base_select", $this->base); diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index cf9c8b9d2..1a82a1ae0 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -141,7 +141,8 @@ class workgeneric extends plugin $smarty= get_smarty(); $smarty->assign("cn", $this->cn); $smarty->assign("bases", $this->config->idepartments); - + $smarty->assign("staticAddress", ""); + /* Check if workstation is online */ $query= "fping -q -r 1 -t 500 ".$this->cn; exec ($query, $dummy, $retval); diff --git a/plugins/admin/systems/network.tpl b/plugins/admin/systems/network.tpl index 4700d7b5f..93b3cb9b6 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -5,7 +5,7 @@ - +
{t}IP-address{/t}{t}IP-address{/t}{$staticAddress}
@@ -13,7 +13,7 @@ - +
{t}MAC-address{/t}{t}MAC-address{/t}{$staticAddress}