diff --git a/gosa-core/plugins/admin/departments/class_departmentGeneric.inc b/gosa-core/plugins/admin/departments/class_departmentGeneric.inc
index 3962c47942570b43d7a8585d1f728fa42ac1464d..c8da2b281e438896435e5b869a3bd41f165ff4bc 100644 (file)
}
$smarty->assign("dep_type",$this->type);
- return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
+
+ switch($this->type){
+ case 'c' : $tpl ="country.tpl";break;
+ case 'o' : $tpl ="organization.tpl";break;
+ case 'l' : $tpl ="locality.tpl";break;
+ case 'ou' : $tpl ="generic.tpl";break;
+ case 'alias' : $tpl ="alias.tpl";break;
+ case 'referal' : $tpl ="referal.tpl";break;
+ default : $tpl ="generic.tpl";
+ }
+
+ return($smarty->fetch (get_template_path($tpl, TRUE)));
}
function clear_fields()