<?php
 namespace Modules\Invoices\Cashings\Management\TransferToCredit\Config; class View_Utils_FormAdmin extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $form = \Engine\Form\General::create(); $cashingDocDetails = \Engine\Form\Container\Fieldset::create($this->lang['index']['form']['fieldset']['cashingDocDetails']); $form->addContainer($cashingDocDetails); $cashDocType = new \App\Form\Input\Select_CashingDocType($this->lang['index']['form']['cashingDocType'], 'cashingDocType', $this->values['cashingDocType']); $cashDocType->showDefaultOption(); $cashDocType->setMandatory(); $cashingDocDetails->addElement($cashDocType); $impDocFieldset = \Engine\Form\Container\Fieldset::create($this->lang['index']['form']['fieldset']['impDocDetails']); $form->addContainer($impDocFieldset); $fld = new \App\Form\Input\Select_DocumentExternalSystem($this->lang['index']['form']['externalSystemCode'], 'idExternalSystem', $this->values['idExternalSystem']); $fld->setMandatory(); $fld->showDefaultOption(); $impDocFieldset->addElement($fld); $cashDocType = new \App\Form\Input\Select_CashingDocType($this->lang['index']['form']['impDocType'], 'impDocType', $this->values['impDocType']); $cashDocType->showDefaultOption(); $cashDocType->setMandatory(); $impDocFieldset->addElement($cashDocType); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } }