diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc
index 5b84ae350da5f99ffc8a0e45e3ffef48a5f5af46..c3edb7590b5cdf721309ef332222f92d32d55f80 100644 (file)
function execute()
{
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
/* Do we represent a valid phone? */
if (!$this->is_account && $this->parent == NULL){
$display= "<img alt=\"\" src=\"images/stop.png\" align=middle> <b>".
}
$smarty->assign("base_select", $this->base);
}
$smarty->assign("base_select", $this->base);
+ /* Show Asterisk for required attribute ipHostNumber and macAddress */
+ $smarty->assign("staticAddress", "<font class=\"must\">*</font>");
+
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('component.tpl', TRUE)));
/* Show main page */
$smarty->assign("netconfig", dirname(__FILE__)."/network.tpl");
return($smarty->fetch (get_template_path('component.tpl', TRUE)));
/* must: cn, macAddress, ipHostNumber */
if ($this->cn == "" && chkacl ($this->acl, "cn") == ""){
/* must: cn, macAddress, ipHostNumber */
if ($this->cn == "" && chkacl ($this->acl, "cn") == ""){
- $message[]= "The required field 'Component name' is not set.";
+ $message[]= _("The required field 'Component name' is not set.");
}
if ($this->macAddress == "" && chkacl ($this->acl, "macAddress") == ""){
}
if ($this->macAddress == "" && chkacl ($this->acl, "macAddress") == ""){
- $message[]= "The required field 'MAC-address' is not set.";
+ $message[]= _("The required field 'MAC-address' is not set.");
}
if ($this->ipHostNumber == "" && chkacl ($this->acl, "ipHostNumber") == ""){
}
if ($this->ipHostNumber == "" && chkacl ($this->acl, "ipHostNumber") == ""){
- $message[]= "The required field 'IP-Address' is not set.";
+ $message[]= _("The required field 'IP-address' is not set.");
}
$ui= get_userinfo();
}
$ui= get_userinfo();