{** * templates/controllers/listbuilder/multipleListsListbuilder.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. * * Displays a MultipleListsListbuilder object *} {assign var=staticId value="component-"|concat:$grid->getId()} {assign var=gridId value=$staticId|concat:'-'|uniqid} {assign var=gridActOnId value=$gridId} {if count($lists) == 2} {assign var=widthClass value="pkp_helpers_half"} {elseif count($lists) == 3} {assign var=widthClass value="pkp_helpers_third"} {/if}
{* Use this disabled input to store LB deletions. See ListbuilderHandler.js *}
{include file="controllers/grid/gridHeader.tpl"} {foreach from=$lists item=list} {assign var=listId value=$list->getId()}
{if $grid->getActions($smarty.const.GRID_ACTION_POSITION_ABOVE)} {include file="controllers/grid/gridActionsAbove.tpl" actions=$grid->getActions($smarty.const.GRID_ACTION_POSITION_ABOVE) gridId=$gridId} {/if} {if $list->getTitle()}
{$list->getTitle()|translate}
{/if} {assign var=gridTableId value=$staticId|concat:"-table-":$listId} {include file="controllers/listbuilder/listbuilderTable.tpl" gridTableId=$gridTableId rows=$listsRows[$listId]}
{/foreach}