class NumerationBlockForm !!!1191173.php!!! __construct(inout orm : ORM, inout context : ApplicationContext) : ABMForm parent::__construct($orm, $context); $from = new TextComponent(); $from->setLabel("Desde") ->setMaps('from'); $to = new TextComponent(); $to->setLabel("Hasta") ->setMaps('to'); $resellerOptions = $orm->query('Reseller') ->attributes('id AS value', 'provider.name as description') ->find(); $reseller = new SelectComponent(); $reseller->setLabel("Revendedor") ->setMaps('reseller') ->setOptions($resellerOptions); $compBotonete = new ButtonComponent(); $compBotonete->setAction('submit') ->setValue("Aceptar"); $oLayout1 = new GridLayout(3 /*4*/, 1); $oLayout1->addComponent($from, 1, 1) ->addComponent($to, 2, 1) ->addComponent($reseller, 3, 1) /*->addComponent($compBotonete, 4, 1)*/; $this->setClass("NumerationBlock") ->setTitle("Bloques de Numeración") ->setMethod("post") ->setFormType(Form::FORM_OK_CANCEL) ->addComponent($oLayout1); $this->setAction($context->getCurrentAction()->getStringCommand()); return $this;