<?php
namespace Modules\Admin\Config\Services\Advanced; class View_Utils_AddCalculation extends \App\Mvc\View_Utils_FormAbstract { protected $formClassName='View_Utils_AddCalculation'; protected $renderingTemplate = 'addCalculation.tpl'; public function getForm() { $CFG = \Engine\Loader_Cfg::getInstance()->getGlobal(); $form = \Engine\Form\General::create(); $fieldset = \Engine\Form\Container\Fieldset::create(); $form->addContainer($fieldset); $fldName = new \Engine\Form\Input\Text($this->lang['addCalculation']['formFields']['name'], 'name', $this->values['name']); $fldName->setMandatory(true); $fieldset->addElement($fldName); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } }