|
1 | 1 | <?php |
2 | 2 | %A% |
| 3 | + /* line 1 */ |
3 | 4 | echo Nette\Bridges\FormsLatte\Runtime::renderFormBegin($form = $_form = $this->global->formsStack[] = $this->global->uiControl["myForm"], []); |
4 | | -?> |
5 | | - |
| 5 | + echo ' |
6 | 6 | <table> |
7 | 7 | <tr> |
8 | | - <th><?php if ($_label = end($this->global->formsStack)["input1"]->getLabel()) echo $_label ?></th> |
9 | | - <td><?php echo end($this->global->formsStack)["input1"]->getControl() /* line 5 */ ?></td> |
| 8 | + <th>'; |
| 9 | + if ($_label = end($this->global->formsStack)["input1"]->getLabel()) echo $_label; |
| 10 | + echo '</th> |
| 11 | + <td>'; |
| 12 | + echo end($this->global->formsStack)["input1"]->getControl() /* line 5 */; |
| 13 | + echo '</td> |
10 | 14 | </tr> |
11 | | -<?php |
| 15 | +'; |
12 | 16 | $this->global->formsStack[] = $formContainer = $_form = end($this->global->formsStack)["cont1"]; |
13 | | -?> |
14 | | - <tr> |
15 | | - <th><?php if ($_label = end($this->global->formsStack)["input2"]->getLabel()) echo $_label ?></th> |
16 | | - <td><?php echo end($this->global->formsStack)["input2"]->getControl() /* line 10 */ ?></td> |
| 17 | + echo ' <tr> |
| 18 | + <th>'; |
| 19 | + if ($_label = end($this->global->formsStack)["input2"]->getLabel()) echo $_label; |
| 20 | + echo '</th> |
| 21 | + <td>'; |
| 22 | + echo end($this->global->formsStack)["input2"]->getControl() /* line 10 */; |
| 23 | + echo '</td> |
17 | 24 | </tr> |
18 | 25 | <tr> |
19 | | - <th><?php if ($_label = end($this->global->formsStack)["input3"]->getLabel()) echo $_label ?></th> |
20 | | - <td><?php echo end($this->global->formsStack)["input3"]->getControl() /* line 14 */ ?></td> |
| 26 | + <th>'; |
| 27 | + if ($_label = end($this->global->formsStack)["input3"]->getLabel()) echo $_label; |
| 28 | + echo '</th> |
| 29 | + <td>'; |
| 30 | + echo end($this->global->formsStack)["input3"]->getControl() /* line 14 */; |
| 31 | + echo '</td> |
21 | 32 | </tr> |
22 | 33 | <tr> |
23 | 34 | <th>Checkboxes</th> |
24 | 35 | <td> |
25 | | -<?php |
| 36 | +'; |
26 | 37 | $this->global->formsStack[] = $formContainer = $_form = end($this->global->formsStack)["cont2"]; |
27 | | -?> <ol> |
28 | | -<?php |
| 38 | + echo ' <ol> |
| 39 | +'; |
29 | 40 | $iterations = 0; |
30 | 41 | foreach ($formContainer->controls AS $name => $field) { |
31 | | - ?> <li><?php |
| 42 | + echo ' <li>'; |
32 | 43 | $_input = is_object($field) ? $field : end($this->global->formsStack)[$field]; |
33 | | - echo $_input->getControl() /* line 20 */ ?></li> |
34 | | -<?php |
| 44 | + echo $_input->getControl() /* line 20 */; |
| 45 | + echo '</li> |
| 46 | +'; |
35 | 47 | $iterations++; |
36 | 48 | } |
37 | | -?> </ol> |
38 | | -<?php |
| 49 | + echo ' </ol> |
| 50 | +'; |
39 | 51 | array_pop($this->global->formsStack); |
40 | | - $formContainer = $_form = end($this->global->formsStack) ?> |
41 | | - </td> |
| 52 | + $formContainer = $_form = end($this->global->formsStack); |
| 53 | + echo ' </td> |
42 | 54 | </tr> |
43 | 55 | <tr> |
44 | | - <th><?php if ($_label = end($this->global->formsStack)["input7"]->getLabel()) echo $_label ?></th> |
45 | | - <td><?php echo end($this->global->formsStack)["input7"]->getControl() /* line 26 */ ?></td> |
| 56 | + <th>'; |
| 57 | + if ($_label = end($this->global->formsStack)["input7"]->getLabel()) echo $_label; |
| 58 | + echo '</th> |
| 59 | + <td>'; |
| 60 | + echo end($this->global->formsStack)["input7"]->getControl() /* line 26 */; |
| 61 | + echo '</td> |
46 | 62 | </tr> |
47 | | -<?php |
| 63 | +'; |
48 | 64 | array_pop($this->global->formsStack); |
49 | 65 | $formContainer = $_form = end($this->global->formsStack); |
50 | 66 | $this->global->formsStack[] = $formContainer = $_form = end($this->global->formsStack)["items"]; |
51 | | -?> |
52 | | - <tr> |
| 67 | + echo ' <tr> |
53 | 68 | <th>Items</th> |
54 | 69 | <td> |
55 | | -<?php |
| 70 | +'; |
56 | 71 | $items = array(1, 2, 3); |
57 | 72 | $iterations = 0; |
58 | 73 | foreach ($items as $item) { |
59 | 74 | if (!isset($formContainer[$item])) continue; |
60 | 75 | $this->global->formsStack[] = $formContainer = $_form = is_object($item) ? $item : end($this->global->formsStack)[$item]; |
61 | | - ?> <?php echo end($this->global->formsStack)["input"]->getControl() /* line 37 */ ?> |
62 | | - |
63 | | -<?php |
| 76 | + echo ' '; |
| 77 | + echo end($this->global->formsStack)["input"]->getControl() /* line 37 */; |
| 78 | + echo "\n"; |
64 | 79 | array_pop($this->global->formsStack); |
65 | 80 | $formContainer = $_form = end($this->global->formsStack); |
66 | 81 | $iterations++; |
67 | 82 | } |
68 | | -?> |
69 | | - </td> |
| 83 | + echo ' </td> |
70 | 84 | </tr> |
71 | | -<?php |
| 85 | +'; |
72 | 86 | array_pop($this->global->formsStack); |
73 | | - $formContainer = $_form = end($this->global->formsStack) ?> |
74 | | - <tr> |
75 | | - <th><?php if ($_label = end($this->global->formsStack)["input8"]->getLabel()) echo $_label ?></th> |
76 | | - <td><?php echo end($this->global->formsStack)["input8"]->getControl() /* line 45 */ ?></td> |
| 87 | + $formContainer = $_form = end($this->global->formsStack); |
| 88 | + echo ' <tr> |
| 89 | + <th>'; |
| 90 | + if ($_label = end($this->global->formsStack)["input8"]->getLabel()) echo $_label; |
| 91 | + echo '</th> |
| 92 | + <td>'; |
| 93 | + echo end($this->global->formsStack)["input8"]->getControl() /* line 45 */; |
| 94 | + echo '</td> |
77 | 95 | </tr> |
78 | 96 | </table> |
79 | | -<?php |
| 97 | +'; |
80 | 98 | echo Nette\Bridges\FormsLatte\Runtime::renderFormEnd(array_pop($this->global->formsStack)); |
81 | | -?> |
| 99 | + echo "\n"; |
82 | 100 | %A% |
0 commit comments