{** * templates/workflow/submissionProgressBar.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Include the submission progress bar and the tab structure for the workflow. *} {* Calculate the selected tab index for the current stage *} {assign var=selectedTabIndex value=0} {foreach from=$workflowStages item=stage} {if $stage.id < $stageId} {assign var=selectedTabIndex value=$selectedTabIndex+1} {/if} {/foreach}