@@ -36,7 +36,7 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
36
36
37
37
<label<?php $ _input = is_object ($ form ['username ' ]) ? $ form ['username ' ] : $ _form [$ form ['username ' ]]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?> ></label>
38
38
<label<?php $ _input = is_object ($ form ['username ' ]) ? $ form ['username ' ] : $ _form [$ form ['username ' ]]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?>
39
- ><?php echo $ _input ->getLabel ()->getHtml () ?> </label>
39
+ ><?php echo $ _input ->{ method_exists ( $ _input , ' getLabelPart ' )? ' getLabelPart ' : ' getLabel ' } ()->getHtml () ?> </label>
40
40
<input<?php $ _input = is_object ($ form ['username ' ]) ? $ form ['username ' ] : $ _form [$ form ['username ' ]]; echo $ _input ->{method_exists ($ _input , 'getControlPart ' )?'getControlPart ' :'getControl ' }()->attributes () ?> >
41
41
42
42
<?php if ($ _label = $ _form ["my " ]->getLabel ()) echo $ _label ; echo $ _form ["my " ]->getControl () ?>
@@ -59,10 +59,10 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
59
59
<?php $ iterations ++; } ?>
60
60
<label<?php $ _input = $ _form ["sex " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?> ></label>
61
61
<label<?php $ _input = $ _form ["sex " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?>
62
- ><?php echo $ _input ->getLabel ()->getHtml () ?> </label>
62
+ ><?php echo $ _input ->{ method_exists ( $ _input , ' getLabelPart ' )? ' getLabelPart ' : ' getLabel ' } ()->getHtml () ?> </label>
63
63
<label title="hello"<?php $ _input = $ _form ["sex " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->addAttributes (array (
64
64
'title ' => NULL ,
65
- ))->attributes () ?> ><?php echo $ _input ->getLabel ()->getHtml () ?> </label>
65
+ ))->attributes () ?> ><?php echo $ _input ->{ method_exists ( $ _input , ' getLabelPart ' )? ' getLabelPart ' : ' getLabel ' } ()->getHtml () ?> </label>
66
66
67
67
68
68
<?php if ($ _label = $ _form ["checkbox " ]->getLabelPart ("" )) echo $ _label ->startTag () ?>
@@ -74,6 +74,11 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
74
74
<label title=hello<?php $ _input = $ _form ["checkbox " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->addAttributes (array (
75
75
'title ' => NULL ,
76
76
))->attributes () ?> > <input<?php $ _input = $ _form ["checkbox " ]; echo $ _input ->{method_exists ($ _input , 'getControlPart ' )?'getControlPart ' :'getControl ' }()->attributes () ?> > </label>
77
+ <label<?php $ _input = $ _form ["checkbox " ]; echo $ _input ->getLabelPart ("" )->attributes () ?>
78
+ ><?php echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->getHtml () ?> </label>
79
+ <label title=hello<?php $ _input = $ _form ["checkbox " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->addAttributes (array (
80
+ 'title ' => NULL ,
81
+ ))->attributes () ?> ><?php echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->getHtml () ?> </label>
77
82
78
83
79
84
<?php $ iterations = 0 ; foreach ($ form ['checklist ' ]->items as $ key => $ label ) { ?>
@@ -87,10 +92,10 @@ echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $_contro
87
92
<?php $ iterations ++; } ?>
88
93
<label<?php $ _input = $ _form ["checklist " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?> ></label>
89
94
<label<?php $ _input = $ _form ["checklist " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->attributes () ?>
90
- ><?php echo $ _input ->getLabel ()->getHtml () ?> </label>
95
+ ><?php echo $ _input ->{ method_exists ( $ _input , ' getLabelPart ' )? ' getLabelPart ' : ' getLabel ' } ()->getHtml () ?> </label>
91
96
<label title="hello"<?php $ _input = $ _form ["checklist " ]; echo $ _input ->{method_exists ($ _input , 'getLabelPart ' )?'getLabelPart ' :'getLabel ' }()->addAttributes (array (
92
97
'title ' => NULL ,
93
- ))->attributes () ?> ><?php echo $ _input ->getLabel ()->getHtml () ?> </label>
98
+ ))->attributes () ?> ><?php echo $ _input ->{ method_exists ( $ _input , ' getLabelPart ' )? ' getLabelPart ' : ' getLabel ' } ()->getHtml () ?> </label>
94
99
95
100
96
101
<?php if (1 ) { ?> <form id="myForm" class="ajax"<?php echo Nette \Bridges \FormsLatte \Runtime::renderFormBegin ($ form = $ _form = $ _control ["myForm " ], array (
0 commit comments