<?php
 namespace Modules\Orders\Cancel; class View_Utils_FormService extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $form = \Engine\Form\General::create(); $form->setStyle('width', 250)->setStyle('labelWidth', 40); $fieldset1 = \Engine\Form\Container\Fieldset::create($this->lang['formFieldsCat']['serviceCancel']); $form->addContainer($fieldset1); $fld_servCancelReason = new \App\Form\Input\Select_ServiceCancelReason($this->lang['formFields']['serviceCancelReason'], 'serviceCancelReason', $this->values['serviceCancelReason']); $fld_servCancelReason->setMandatory(true); $fld_servCancelReason->showDefaultOption(); $fieldset1->addElement($fld_servCancelReason); $fld_servCancelDet = new \Engine\Form\Input\Textarea($this->lang['formFields']['serviceCancelDetails'], 'serviceCancelDetails', $this->values['serviceCancelDetails']); $fld_servCancelDet->setMandatory(false); $fieldset1->addElement($fld_servCancelDet); $form->addElement(new \Engine\Form\Input\Hidden('', 'idService', $this->values['idService'])); $form->addElement(new \Engine\Form\Input\Hidden('', 'save', 1)); return $form; } }