{$grid_hiddenattr} data-form-width="<%- @props.formWidth %>"> <% for rowIdx in Object.keys( @form.grid ) : %> <% if rowIdx > "0" : %> <% for gridCell, cellIdx in @form.grid[rowIdx].cells : %> <% cell = @form.cells[gridCell.cell] %> <% end %> <% end %> <% end %>
data-single <% end %> <%- if gridCell.colspan>1 then 'colspan="'+gridCell.colspan+'"' else '' %> <%- if gridCell.rowspan>1 then 'rowspan="'+gridCell.rowspan+'"' else '' %> <%- @cellAttr( gridCell.cell ) %> >
<% for itemId, idx in cell.items : %> <% nextItemId = if idx < cell.items.length - 1 then cell.items[ idx+1 ] else null %> <% include @page.items[itemId].template( @page ), @addItem( itemId ).setProp( 'nextItemId', nextItemId ) %> <% end %>