<?php
 namespace Modules\Partners\Customers\Segments; class View_Utils_FormAdmin extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $CFG = \Engine\Loader_Cfg::getInstance()->getGlobal(); $form = \Engine\Form\General::create(); $fieldset = \Engine\Form\Container\Fieldset::create($this->lang['index']['field']['segmentName']); $form->addContainer($fieldset); $segmentName = new \Engine\Form\Input\Text($this->lang['index']['field']['segmentName'], 'segmentName', $this->values['segmentName']); $segmentName->setMandatory(); $fieldset->addElement($segmentName); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } } 