{BEGIN <%- @location %>_block} <% include 'forms/gridmessage.htm', @self() %> > <% for section in @form.sections() : %> <% @setProp( 'section', section ) %> <% trAttrs = "" %> <% switch section : %> <% when 'head' : %> <% trAttrs = "{$gridHeader_class}" %> {BEGIN grid_header} <% end %> <% else : %> <% trAttrs = "{$rowattrs}" %> {BEGIN grid_row} <% end %> <% end %> <% for rowIdx in Object.keys( @form.grid ) : %> <% if @form.grid[rowIdx].section == section : %> > <% for cellIdx in Object.keys( @form.grid[rowIdx].cells ) : %> <% include @form.cellTemplate( rowIdx, cellIdx ), @addCell( rowIdx, cellIdx ) %> <% end %> <% end %> <% end %> <% switch section : %> <% when 'head' : %> {END grid_header} <% end %> <% else : %> {END grid_row} <% end %> <% end %> <% end %>
{END <%- @location %>_block}