Example #1
0
 public function getTestForm()
 {
     $form = new forms\Form1('Сообщение о введении процедуры наблюдения...');
     $group1 = new Group('Заявитель');
     $group2 = new Group('Реквизиты');
     $group3 = new Group('Адрес');
     $subgroup1 = new Group('Адрес');
     $subgroup2 = new Group('Что то еще');
     $subgroup2->addChild(new fields\TextField());
     $subgroup2->addChild(new fields\AreaField());
     $subgroup2->addChild(new fields\VocabularyField());
     $subgroup1->addChild(new fields\TextField());
     $subgroup1->addChild(new fields\TextField());
     $subgroup1->addChild(new fields\VocabularyField());
     $subgroup1->addChild($subgroup2);
     $group1->addChild(new fields\TextField());
     $group1->addChild(new fields\TextField());
     $group1->addChild(new fields\TextField());
     $group1->addChild($subgroup1);
     $group2->addChild(new fields\TextField());
     $group2->addChild(new fields\AreaField());
     $group2->addChild(new fields\TextField());
     $group3->addChild(new fields\TextField());
     $group3->addChild(new fields\TextField());
     $form->addChild($group1);
     $form->addChild($group2);
     $form->addChild($group3);
     return $form;
 }