/**
  * init field form
  *
  * @access protected
  */
 protected function initFieldForm(ilAdvancedMDFieldDefinition $a_definition)
 {
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     $form = new ilPropertyFormGUI();
     $form->setFormAction($this->ctrl->getFormAction($this));
     $type = new ilNonEditableValueGUI($this->lng->txt("type"));
     $type->setValue($this->lng->txt($a_definition->getTypeTitle()));
     $form->addItem($type);
     $a_definition->addToFieldDefinitionForm($form, $this->getPermissions());
     if (!$a_definition->getFieldId()) {
         $form->setTitle($this->lng->txt('md_adv_create_field'));
         $form->addCommandButton('saveField', $this->lng->txt('create'));
     } else {
         $form->setTitle($this->lng->txt('md_adv_edit_field'));
         $form->addCommandButton('updateField', $this->lng->txt('save'));
     }
     $form->addCommandButton('editFields', $this->lng->txt('cancel'));
     return $form;
 }