<?php
 namespace Modules\Admin\Config\SupplierInvoices\ActiveServices; class View_Utils_FormAdmin extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $form = \Engine\Form\General::create(); $label = new \Engine\Form\Input\Label(); $label->setDetails($this->lang['index']['description']); $form->addElement($label); $fieldset=\Engine\Form\Container\Fieldset::create($this->lang['index']['fieldset']); $form->addContainer($fieldset); foreach (\App\Config\Services_Basic::getInstance()->getListLinear() as $serviceCode => $serviceDetails) { $fld_checkbox = new \Engine\Form\Input\Checkbox($serviceDetails['name'],'activeServices['.$serviceCode.']',$this->values['activeServices'][$serviceCode]); $fieldset->addElement($fld_checkbox); } $fieldset->addElement(new \Engine\Form\Input\Hidden(null, 'save', 1)); $form->addButton(new \Engine\Form\Button\Submit('save')); return $form; } }