From 3ff9cc3985d319312dd65a903f1e2a39c2acbf66 Mon Sep 17 00:00:00 2001 From: Michal Korinek Date: Sat, 30 May 2015 09:56:27 +0200 Subject: [PATCH] FormMacros: added support for {method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->attributes() ?> ->getLabel()->getHtml() ?> +>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?> {method_exists($_input, 'getControlPart')?'getControlPart':'getControl'}()->attributes() ?>> getLabel()) echo $_label ; echo $_form["my"]->getControl() ?> @@ -59,10 +59,10 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro {method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->attributes() ?>> {method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->attributes() ?> ->getLabel()->getHtml() ?> +>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?> +))->attributes() ?>>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?> getLabelPart("")) echo $_label->startTag() ?> @@ -74,6 +74,11 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro +getLabelPart("")->attributes() ?> +>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?> + items as $key => $label) { ?> @@ -87,10 +92,10 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro {method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->attributes() ?>> {method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->attributes() ?> ->getLabel()->getHtml() ?> +>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?> +))->attributes() ?>>{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?>
+