diff --git a/tests/Forms.Latte/expected/FormMacros.button.phtml b/tests/Forms.Latte/expected/FormMacros.button.phtml index c659a675d..d8f99a563 100644 --- a/tests/Forms.Latte/expected/FormMacros.button.phtml +++ b/tests/Forms.Latte/expected/FormMacros.button.phtml @@ -1,9 +1,7 @@ global->formsStack[] = $this->global->uiControl["myForm"]; - ?>global->formsStack), array ( - ), false) ?>> + ?>global->formsStack), [], false) ?>> global->formsStack)["send"]; echo $_input->getControlPart()->attributes() ?>> diff --git a/tests/Forms.Latte/expected/FormMacros.forms.phtml b/tests/Forms.Latte/expected/FormMacros.forms.phtml index 46737a98a..8f8341ab1 100644 --- a/tests/Forms.Latte/expected/FormMacros.forms.phtml +++ b/tests/Forms.Latte/expected/FormMacros.forms.phtml @@ -51,16 +51,10 @@ + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>>Name global->formsStack)["username"]; - echo $_input->getControlPart()->addAttributes(array ( - 'value' => NULL, - 'type' => NULL, - 'class' => NULL, - ))->attributes() ?>> + echo $_input->getControlPart()->addAttributes(['value' => null, 'type' => null, 'class' => null])->attributes() ?>> global->formsStack)[$form['username']]; @@ -104,9 +98,7 @@ getLabelPart()->attributes() ?>>getLabelPart()->getHtml() ?> + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>>getLabelPart()->getHtml() ?> global->formsStack)["checkbox"]->getLabelPart("")) echo $_label->startTag() ?> global->formsStack)["checkbox"]; - echo $_input->getLabelPart("")->addAttributes(array ( - 'title' => NULL, - ))->attributes() ?>> getLabelPart("")->addAttributes(['title' => null])->attributes() ?>> global->formsStack)["checkbox"]; echo $_input->getControlPart("")->attributes() ?>> getLabelPart("")->attributes() ?>>getLabelPart()->getHtml() ?> + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>>getLabelPart()->getHtml() ?> global->formsStack)["checklist"]; echo $_input->getLabelPart($key)->attributes() ?>> global->formsStack)["checklist"]; - echo $_input->getControlPart($key)->addAttributes(array ( - 'title' => NULL, - ))->attributes() ?>> + echo $_input->getControlPart($key)->addAttributes(['title' => null])->attributes() ?>> getLabelPart()->attributes() ?>>getLabelPart()->getHtml() ?> + echo $_input->getLabelPart()->addAttributes(['title' => null])->attributes() ?>>getLabelPart()->getHtml() ?> global->formsStack[] = $this->global->uiControl["myForm"]; if (1) { - ?>
global->formsStack), array ( - 'id' => NULL, - 'class' => NULL, - ), false) ?>> + ?>global->formsStack), ['id' => null, 'class' => null], false) ?>> global->formsStack)["username"]; echo $_input->getControlPart()->attributes() ?>> @@ -205,16 +181,13 @@ global->formsStack[] = $this->global->uiControl["myForm"]; ?>global->formsStack), array ( - 'class' => NULL, - ), false) ?>> + echo ($_tmp = array_filter(['nclass'])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))) . '"' : ""; + echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin(end($this->global->formsStack), ['class' => null], false) ?>> global->formsStack)["username"]; - echo $_input->getControlPart()->addAttributes(array ( - 'class' => NULL, - ))->attributes(); - if ($_tmp = array_filter(['nclass'])) echo ' class="', LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))), '"' ?>> + echo $_input->getControlPart()->addAttributes(['class' => null])->attributes(); + echo ($_tmp = array_filter(['nclass'])) ? ' class="' . LR\Filters::escapeHtmlAttr(implode(" ", array_unique($_tmp))) . '"' : ""; +?>> global->formsStack), false); ?> @@ -222,9 +195,7 @@ global->formsStack[] = is_object($this->global->uiControl['myForm']) ? $this->global->uiControl['myForm'] : $this->global->uiControl[$this->global->uiControl['myForm']]; - ?>global->formsStack), array ( - ), false) ?>> + ?>global->formsStack), [], false) ?>> global->formsStack)["username"]; echo $_input->getControlPart()->attributes() ?>> @@ -240,9 +211,7 @@ + echo $_input->getControlPart()->addAttributes(['title' => null])->attributes() ?>>getControl()->getHtml() ?> global->formsStack[] = $this->global->uiControl["myForm"]; - ?>global->formsStack), array ( - ), false) ?>> + ?>global->formsStack), [], false) ?>> global->formsStack), false); ?>