<% # cells in the first row with more than one cell # should receive splitRowMet = false setWidthsRow = false %> {BEGIN <%- @location %>_block} <% if @form.modelId == "chart-grid" :%> <% include 'forms/gridmessage.htm', @self() %> <% end %> > <% for rowIdx in Object.keys( @form.grid ) : %> <% setWidthsRow = true if !splitRowMet and @form.grid[rowIdx].cells.length > 0 %> <% splitRowMet = true if setWidthsRow %> _<%- rowIdx %>} <% if setWidthsRow : %> data-row-width="<%- @form.grid[rowIdx].cells.length %>" <% end %> > <% for cellIdx in Object.keys( @form.grid[rowIdx].cells ) : %> <% include @form.cellTemplate( rowIdx, cellIdx ), @addCell( rowIdx, cellIdx ) %> <% end %> <% end %>
{END <%- @location %>_block}