{** * templates/controllers/listbuilderGridRow.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2000-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * a listbuilder grid row *} {if $row->getId()} {assign var=rowId value="component-"|concat:$row->getGridId():"-row-":$row->getId()} {else} {assign var=rowId value="component-"|concat:$row->getGridId():"-row-tempId-"|uniqid} {/if} {capture assign="listbuilderRowActions"}
{foreach from=$row->getActions(\PKP\controllers\grid\GridRow::GRID_ACTION_POSITION_ROW_LEFT) item=action} {include file="linkAction/linkAction.tpl" action=$action contextId=$rowId} {/foreach}
{/capture} {foreach from=$cells item=cell name=listbuilderCells} {if $smarty.foreach.listbuilderCells.first} {if $row->getId()} {/if} {if !$row->getId() || $row->getIsModified()} {else} {/if}
{$cell}
{if $smarty.foreach.listbuilderCells.last} {$listbuilderRowActions} {/if} {else} {if $column->hasFlag('alignment')} {assign var=alignment value=$column->getFlag('alignment')} {else} {assign var=alignment value=\PKP\controllers\grid\GridColumn::COLUMN_ALIGNMENT_CENTER} {/if} {$cell} {if $smarty.foreach.listbuilderCells.last && $row->getActions(\PKP\controllers\grid\GridRow::GRID_ACTION_POSITION_ROW_LEFT)} {$listbuilderRowActions} {/if} {/if} {/foreach}