<% gh = @props.gh addedCells = {} section = @props.rowGroup.section xtTag = @form.rowGroupTag( @props.rowGroup, @self() ) %> <% if xtTag != "" : %> {BEGIN <%- xtTag %>} <% end %> <% for glRow in @props.rowGroup.rows : %> <% if @form.tableForm() : %> {BEGIN row_<%- @location %>_<%- glRow %>} <% end %> [ <% for glCol in Object.keys( gh.layout[glRow] ) : %> <% layoutCell = gh.layout[glRow][glCol] gridCell = @form.grid[ layoutCell.row ].cells[ layoutCell.col ] %> <% if addedCells[ gridCell.cell ] : %> { cellId: '<%- gridCell.cell%>', row: <%- glRow - addedCells[ gridCell.cell ][0] %>, col: <%- glCol - addedCells[ gridCell.cell ][1] %>, text: '', compensateColspan: true }, <% else : %> <% context = @addCell( layoutCell.row, layoutCell.col ) %> <% include @form.pdfCellTemplate( layoutCell.row, layoutCell.col ), context.addProp('cellStyle', @form.pdfStyleName( context.cellId, context ) ) %> <% addedCells[ gridCell.cell ] = [glRow, glCol] %> <% end %> <% end %> ], <% if @form.tableForm() : %> {END row_<%- @location %>_<%- glRow %>} <% end %> <% end %> <% if xtTag != "" : %> {END <%- xtTag %>} <% end %>