>
<% for section in @form.sections() : %>
<% @setProp( 'section', section ) %>
<% trAttrs = "" %>
<% switch section : %>
<% when 'head' : %>
<% end %>
<% when 'foot' : %>
<% end %>
<% when 'page' : %>
{BEGIN page_row}
<% trAttrs = "{$page_row_attrs}" %>
<% end %>
<% else : %>
{BEGIN grid_row}
<% trAttrs = "{$table_row_attrs}" %>
<% 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 %>
<% when 'foot' : %>
<% end %>
<% end %>
<% end %>
{END page_row}
{END grid_row}