PluginProbe
Packeta / trunk
Packeta vtrunk
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / deps / nette / forms / examples / template.latte

template.latte in Packeta trunk, at deps/nette/forms/examples/template.latte

30 lines 757 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Nette Forms rendering using Latte</title>
6 <link rel="stylesheet" media="screen" href="assets/style.css" />
7 <script src="https://nette.github.io/resources/js/3/netteForms.js"></script>
8 </head>
9
10 <body>
11 <h1>Nette Forms rendering using Latte</h1>
12
13 <form n:name=$form>
14 <ul class=error n:ifcontent>
15 <li n:foreach="$form->ownErrors as $error">{$error}</li>
16 </ul>
17
18 <table>
19 <tr n:foreach="$form->controls as $input"
20 n:if="!$input->getOption(rendered) && $input->getOption(type) !== hidden"
21 n:class="$input->required ? required">
22
23 <th>{label $input /}</th>
24 <td>{input $input} <span class=error n:ifcontent>{$input->error}</span></td>
25 </tr>
26 </table>
27 </form>
28 </body>
29 </html>
30