diff shared_view/includes/form/group.tt @ 11:573272ec604b

almost comlete doxygen library
author sergey
date Thu, 15 May 2014 18:24:02 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shared_view/includes/form/group.tt	Thu May 15 18:24:02 2014 +0400
@@ -0,0 +1,20 @@
+[%
+	META class='form'
+%]
+[% MACRO element(control) BLOCK;
+	ers = errors(control).join(', ');
+%]
+<div class='input-control'>
+	<div class='control-label'>
+		[% label(control) %][% IF ers %] <span class="control-errors">$ers</span>[% END %]
+	</div>
+	<div class='control-content'>
+		[% display_for(control) %]
+	</div>
+</div>
+[% END %]
+
+[% element(child.name) FOREACH child IN children %]
+<div class="form-footer">
+	[% render('dojo/form/Button', button) FOREACH button IN buttons %]
+</div>