X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=cf_custom_field_add.php;h=c22c10e5bd1108a86c738c96e9645e9951927644;hb=a0ff02ec3fa7016404f3992710db57951e74e824;hp=c0dc255f6c1b38711cf3a3514a93f10e39781258;hpb=5629a1c360655d5a09dc965004946bf65e3725b9;p=timetracker.git diff --git a/cf_custom_field_add.php b/cf_custom_field_add.php index c0dc255f..c22c10e5 100644 --- a/cf_custom_field_add.php +++ b/cf_custom_field_add.php @@ -49,6 +49,7 @@ if (count($fields) >= 1) { if ($request->isPost()) { $cl_field_name = trim($request->getParameter('name')); + $cl_field_entity = $request->getParameter('entity'); $cl_field_type = $request->getParameter('type'); $cl_required = $request->getParameter('required'); if (!$cl_required) @@ -57,6 +58,10 @@ if ($request->isPost()) { $form = new Form('fieldForm'); $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'name','value'=>'')); +$form->addInput(array('type'=>'combobox','name'=>'entity', + 'data'=>array(CustomFields::ENTITY_TIME=>$i18n->get('label.type_text'), + CustomFields::ENTITY_USER=>$i18n->get('label.user')) +)); $form->addInput(array('type'=>'combobox','name'=>'type', 'data'=>array(CustomFields::TYPE_TEXT=>$i18n->get('label.type_text'), CustomFields::TYPE_DROPDOWN=>$i18n->get('label.type_dropdown'))