11
|
1 [%
|
|
2 META class='form'
|
|
3 %]
|
|
4 [% MACRO element(control) BLOCK;
|
|
5 ers = errors(control).join(', ');
|
|
6 %]
|
|
7 <div class='input-control'>
|
|
8 <div class='control-label'>
|
|
9 [% label(control) %][% IF ers %] <span class="control-errors">$ers</span>[% END %]
|
|
10 </div>
|
|
11 <div class='control-content'>
|
|
12 [% display_for(control) %]
|
|
13 </div>
|
|
14 </div>
|
|
15 [% END %]
|
|
16
|
|
17 [% element(child.name) FOREACH child IN children %]
|
|
18 <div class="form-footer">
|
|
19 [% render('dojo/form/Button', button) FOREACH button IN buttons %]
|
|
20 </div>
|