diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc
index 0f92ffb185d59f0a531b8ef341c057cfc096a09b..d686439c19832711746d834c7640ec277db9fbcc 100644 (file)
$this->required = $required;
$this->type = $type;
$this->display = $display;
$this->required = $required;
$this->type = $type;
$this->display = $display;
+ $class = get_class();
+ $this->postName = "{$class}_{$this->name}";
+ }
+
+ function getDisplayName()
+ {
+ return($this->display);
}
function render()
{
}
function render()
{
-
- $class = get_class();
- return("{$this->display} <input type='text' name=\"{$class}_{$this->name}\" value=\"".set_post($this->value)."\">");
+ return("");
}
function save_object()
{
}
function save_object()
{
- $class = get_class();
- $name = "{$class}_{$this->name}";
- if(isset($_POST[$name])){
- $this->value = get_post($name);
+ if(isset($_POST[$this->postName])){
+ $this->value = get_post($this->postName);
}
}
}
}