{** * templates/controllers/listbuilderGridRow.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2000-2019 John Willinsky * Distributed under the GNU GPL v2. 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($smarty.const.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=$smarty.const.COLUMN_ALIGNMENT_CENTER} {/if} {$cell} {if $smarty.foreach.listbuilderCells.last && $row->getActions($smarty.const.GRID_ACTION_POSITION_ROW_LEFT)} {$listbuilderRowActions} {/if} {/if} {/foreach}