+
+ // TODO: consider encapsulating this block in a function.
+ $entity_type = $field['entity_type'];
+ if (CustomFields::ENTITY_TIME == $entity_type)
+ $entity = $i18n->get('entity.time');
+ else if (CustomFields::ENTITY_USER == $entity_type)
+ $entity = $i18n->get('entity.user');
+ else if (CustomFields::ENTITY_PROJECT == $entity_type)
+ $entity = $i18n->get('entity.project');
+ $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'entity','value'=>$entity,'enable'=>false));
+