{**
 * templates/controllers/grid/gridCategoryRow.tpl
 *
 * Copyright (c) 2013-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 category row
 *}
{assign var=categoryId value="component-"|concat:$categoryRow->getGridId():"-category-":$categoryRow->getId()|escape}

<td colspan="{$columns|@count}">
	{if $categoryRow->getActions()}
		<div class="row_actions">
			{foreach name=actions from=$categoryRow->getActions() item=action}
				{include file="linkAction/linkAction.tpl" action=$action contextId=$categoryId}
			{/foreach}
		</div>
	{/if}
	{if $categoryRow->getActions($smarty.const.GRID_ACTION_POSITION_ROW_CLICK)}
		<div>
			{foreach name=actions from=$categoryRow->getActions($smarty.const.GRID_ACTION_POSITION_ROW_CLICK) item=action}
				{include file="linkAction/linkAction.tpl" action=$action contextId=$categoryId}
			{/foreach}
		</div>
	{/if}
	{if $categoryRow->getCategoryLabel()}
		<h3>{$categoryRow->getCategoryLabel()|escape}</h3>
	{/if}
</td>
