Mercurial > pub > site.implab
comparison shared_view/includes/form/box.tt @ 11:573272ec604b
almost comlete doxygen library
author | sergey |
---|---|
date | Thu, 15 May 2014 18:24:02 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:83ad674a8cdd | 11:573272ec604b |
---|---|
1 [% labels( | |
2 InvalidForm = 'Invalid form data, please review.' | |
3 )%] | |
4 [% MACRO element(control) BLOCK; | |
5 ers = control.GetOwnErrors().join(', '); | |
6 %] | |
7 <div class='input-control'> | |
8 <div class='control-label'> | |
9 [% control.label %][% IF ers %] <span class="control-errors">$ers</span>[% END %] | |
10 </div> | |
11 <div class='control-content'> | |
12 [% display_model(control, path = control.name) %] | |
13 </div> | |
14 </div> | |
15 [% END %] | |
16 [% BLOCK CONTENT %] | |
17 [% element(prop) FOREACH prop IN metadata.GetProperties() %] | |
18 [% END %] | |
19 [% BLOCK FOOTER %] | |
20 [% render('dojo/form/Button', button) FOREACH button IN buttons %] | |
21 [% END %] | |
22 <script type="dojo/on" data-dojo-event="submit"> | |
23 if(!this.validate()){ | |
24 alert('$InvalidForm'); | |
25 return false; | |
26 } | |
27 return true; | |
28 </script> | |
29 <div class="box-form"> | |
30 <div class="title">$document.title</div> | |
31 <div class="content"> | |
32 <div class="group-control"> | |
33 [% FOR error IN metadata.GetOwnErrors() %] | |
34 <div class="control-errors">$error</div> | |
35 [% END %] | |
36 <div class="control-content"> | |
37 [% INCLUDE CONTENT %] | |
38 <br style="clear:both"> | |
39 </div> | |
40 <div class="form-footer"> | |
41 [% INCLUDE FOOTER %] | |
42 </div> | |
43 </div> | |
44 </div> | |
45 </div> |