|
2 | 2 | %A% |
3 | 3 | echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_control["myForm"], ['id' => 'myForm', 'class'=>"ajax"]) ?> |
4 | 4 |
|
5 | | -<?php $iterations = 0; foreach (['id', 'username', 'select', 'area', 'send'] as $name) { ?> |
| 5 | +<?php %a% foreach (['id', 'username', 'select', 'area', 'send'] as $name) { ?> |
6 | 6 | <?php $_input = is_object($name) ? $name : $_form[$name]; if ($_label = $_input->getLabel()) echo $_label ?> |
7 | 7 |
|
8 | 8 | <?php $_input = is_object($name) ? $name : $_form[$name]; echo $_input->getControl()->addAttributes(['title' => 'Hello', 'size' => 10]) ?> |
@@ -49,7 +49,7 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro |
49 | 49 |
|
50 | 50 |
|
51 | 51 |
|
52 | | -<?php $iterations = 0; foreach ($form['sex']->items as $key => $label) { ?> |
| 52 | +<?php %a% foreach ($form['sex']->items as $key => $label) { ?> |
53 | 53 | <?php if ($_label = $_form["sex"]->getLabelPart($key)) echo $_label->startTag() ?> |
54 | 54 | <?php echo $_form["sex"]->getControlPart($key) ?> <?php echo Latte\Runtime\Filters::escapeHtml($label, ENT_NOQUOTES) ;if ($_label) echo $_label->endTag() ?> |
55 | 55 |
|
@@ -81,7 +81,7 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro |
81 | 81 | ))->attributes() ?>><?php echo $_input->{method_exists($_input, 'getLabelPart')?'getLabelPart':'getLabel'}()->getHtml() ?></label> |
82 | 82 |
|
83 | 83 |
|
84 | | -<?php $iterations = 0; foreach ($form['checklist']->items as $key => $label) { ?> |
| 84 | +<?php %a% foreach ($form['checklist']->items as $key => $label) { ?> |
85 | 85 | <?php if ($_label = $_form["checklist"]->getLabelPart($key)) echo $_label->startTag() ?> |
86 | 86 | <?php echo $_form["checklist"]->getControlPart($key) ?> <?php echo Latte\Runtime\Filters::escapeHtml($label, ENT_NOQUOTES) ;if ($_label) echo $_label->endTag() ?> |
87 | 87 |
|
|
0 commit comments