2
2
%A%
3
3
Nette \Bridges \FormsLatte \FormMacros::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], array ('id ' => 'myForm ' , 'class ' =>"ajax " )) ?>
4
4
5
- <?php $ iterations = 0 ; foreach (array ('id ' , 'username ' , 'select ' , 'area ' , 'send ' ) as $ name ) { ?>
5
+ <?php %a% foreach (array ('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 (array ('title ' => 'Hello ' , 'size ' => 10 )) ?>
@@ -47,7 +47,7 @@ Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control[
47
47
48
48
49
49
50
- <?php $ iterations = 0 ; foreach ($ form ['sex ' ]->items as $ key => $ label ) { ?>
50
+ <?php %a% foreach ($ form ['sex ' ]->items as $ key => $ label ) { ?>
51
51
<?php if ($ _label = $ _form ["sex " ]->getLabelPart ($ key )) echo $ _label ->startTag () ?>
52
52
<?php echo $ _form ["sex " ]->getControlPart ($ key ) ?> <?php echo Latte \Runtime \Filters::escapeHtml ($ label , ENT_NOQUOTES ) ;if ($ _label ) echo $ _label ->endTag () ?>
53
53
@@ -68,7 +68,7 @@ Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control[
68
68
))->attributes () ?> > <input<?php $ _input = $ _form ["checkbox " ]; echo $ _input ->{method_exists ($ _input , 'getControlPart ' )?'getControlPart ' :'getControl ' }()->attributes () ?> > </label>
69
69
70
70
71
- <?php $ iterations = 0 ; foreach ($ form ['checklist ' ]->items as $ key => $ label ) { ?>
71
+ <?php %a% foreach ($ form ['checklist ' ]->items as $ key => $ label ) { ?>
72
72
<?php if ($ _label = $ _form ["checklist " ]->getLabelPart ($ key )) echo $ _label ->startTag () ?>
73
73
<?php echo $ _form ["checklist " ]->getControlPart ($ key ) ?> <?php echo Latte \Runtime \Filters::escapeHtml ($ label , ENT_NOQUOTES ) ;if ($ _label ) echo $ _label ->endTag () ?>
74
74
0 commit comments