view shared_view/includes/dojo/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='IMPL::Web::View::TTFormContainer' %]
[% BLOCK ITEM %]
    <div id="$control.id" class="input-control">
        <div class="control-label">
            [% this.Include('ITEM_LABEL') %]
            [% this.Include('ITEM_ERRORS') %]
        </div>
        <div class="control-content">
            $control.Render
        </div>
    </div>
[% END %]
[% BLOCK ITEM_ERRORS %]
    <span class="control-errors">[% control.errors.join(', ') %]</span>
[% END %]
[% BLOCK ITEM_LABEL %]
    [% control.GetSchemaProp('display') %]
[% END %]
[% BLOCK ERRORS %]
    <span class="control-errors">[% this.GetOwnErrors().join(', ') %]</span>
[% END %]
[% BLOCK LAYOUT %]
    <div id="$this.id" class="group-control">
        [% this.Include('ERRORS') %]
        <div class="control-label">
            [% this.GetSchemaProp('display') %]
        </div>
        <div class="control-content">
            [% this.Include('CONTENT') %]
            <br style="clear: both;" />
        </div>
    </div>    
[% END %]
[% BLOCK CONTENT;
    FOREACH ctl IN this.GetChildControls();
        this.Include('ITEM', control = ctl);
    END;
END %]
[% this.Include('LAYOUT') %]