{** * templates/controllers/grid/listbuilderGridCell.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 regular listbuilder grid cell (with or without actions) *} {if $id} {assign var=cellId value="cell-"|concat:$id} {else} {assign var=cellId value=""} {/if} {if $column->getFlag('sourceType') === $smarty.const.LISTBUILDER_SOURCE_TYPE_NONE}
{include file="controllers/grid/gridCellContents.tpl"}
{else}
{if $column->getFlag('sourceType') === $smarty.const.LISTBUILDER_SOURCE_TYPE_SELECT} {** * Include a hidden element containing the current key. * Used e.g. to match the currently selected value. *} {/if} {* Display the current value *} {include file="controllers/grid/gridCellContents.tpl"}
{if $column->getFlag('sourceType') === $smarty.const.LISTBUILDER_SOURCE_TYPE_TEXT} {if $column->hasFlag('multilingual')}{* Multilingual *} {assign var="FBV_id" value="newRowId"} {assign var="FBV_uniqId" value=""|uniqid} {assign var="FBV_name" value="newRowId["|concat:$column->getId()|escape|concat:"]"} {include file="form/textInput.tpl" formLocale=$primaryLocale FBV_id=$FBV_id FBV_name=$FBV_name FBV_value=$label FBV_tabIndex=$column->getFlag('tabIndex') FBV_multilingual=true formLocales=$formLocales} {else}{* Not multilingual *} getFlag('tabIndex')}tabindex="{$column->getFlag('tabIndex')}"{/if} value="{$label|escape}" /> {/if} {elseif $column->getFlag('sourceType') == $smarty.const.LISTBUILDER_SOURCE_TYPE_SELECT} {/if}
{/if}