{** * templates/controllers/grid/gridRow.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 grid row. *} {if !is_null($row->getId())} {assign var=rowIdPrefix value="component-"|concat:$row->getGridId()} {if $categoryId} {assign var=rowIdPrefix value=$rowIdPrefix|concat:"-category-":$categoryId|escape} {/if} {assign var=rowId value=$rowIdPrefix|concat:"-row-":$row->getId()} {else} {assign var=rowId value=""} {/if} {assign var="row_class" value="gridRow"} {if is_a($row, 'GridCategoryRow')} {assign var="row_class" value=$row_class|cat:' category'} {if !$row->hasFlag('gridRowStyle')} {assign var="row_class" value=$row_class|cat:' default_category_style'} {/if} {/if} {if $row->getActions($smarty.const.GRID_ACTION_POSITION_DEFAULT)} {assign var="row_class" value=$row_class|cat:' has_extras'} {/if}