<% @props.helper = @form.helper() %> <% @props.formWidth = @props.helper.width() %> {BEGIN <%- @location %>_block} <% include 'forms/gridmessage.htm', @self() %>
class="r-fluid r-grid-vertical bs-grid-vertical" <%- @form.formHtmlAttrs(@self()) %> > {BEGIN grid_row} {BEGIN grid_record} {BEGIN grid_vrecord}
<% for section in ( @form.model.sections || [''] ).filter( (s, i, arr) => (s != 'foot' && arr.indexOf(s) == i) ) : %> <% tableClass = '' %> <% if section == 'head' : %> <% tableClass = 'class="header-table"' %> {BEGIN grid_recordheader}
<% else if section == 'body' : %>
<% end %> > <% for rowIdx in Object.keys( @form.grid ) : %> <% if @form.grid[rowIdx].section == section : %> <% for cellIdx in Object.keys( @form.grid[rowIdx].cells ) : %> <% include 'forms/cell.htm', @addCell( rowIdx, cellIdx ) %> <% end %> <% end %> <% end %>
<% if section == 'head' : %>
{END grid_recordheader} <% else : %>
<% end %> <% end %>
<% for cellIdx in Object.keys( @form.grid[rowIdx].cells ) : %> <% include 'forms/vfootcell.htm', @addCell( rowIdx, cellIdx ) %> <% end %> {END grid_vrecord} {END grid_record} {END grid_row}
{END <%- @location %>_block}