view shared_view/includes/form/group.tt @ 16:e69c970c3ddd default tip

sync
author sergey
date Tue, 20 May 2014 01:28:48 +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>