<?php
namespace Modules\Utils\AddRemarksBulk; 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(sprintf($this->lang['index']['formfield']['legend'],$this->values['remarkType'])); $form->addElement($label); $fieldset = \Engine\Form\Container\Fieldset::create($this->lang['index']['fieldset']); $form->addContainer($fieldset); $fldRemarks = new \App\Form\Input\Remarks($this->lang['index']['formFields']['remarks'], 'remarks', $this->values['remarks']); $fldRemarks->setRemarksType($this->values['remarkType']); $fldRemarks->setTooltip($this->lang['index']['tooltip']['remarks']); $fieldset->addElement($fldRemarks); $label = new \Engine\Form\Input\Label(); $label->setDetails(sprintf($this->lang['index']['messages']['addedToEntities'], count($this->values['ids']))); $fieldset->addElement($label); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } }