view 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 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>