view shared_view/includes/form/group.tt @ 12:d9551c7e7101

improved dox library
author sergey
date Fri, 16 May 2014 16:47:50 +0400
parents 573272ec604b
children
line wrap: on
line source

[%
	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>