Merge pull request #16584 from eileenmcnaughton/role
[civicrm-core.git] / templates / CRM / common / SectionNav.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
9 *}
10 {* Navigation template for multi-section Wizards *}
11 {if count( $category.steps ) > 0}
12 <div id="wizard-steps">
13 <ul class="section-list">
14 {foreach from=$category.steps item=step}
15 {assign var=i value=$smarty.section.step.iteration}
16 {if $step.current}
17 {assign var="stepClass" value="current-section"}
18 {else}
19 {assign var="stepClass" value="future-section"}
20 {/if}
21 {if !$step.valid}
22 {assign var="stepClass" value="$stepClass not-valid"}
23 {/if}
24 {* Skip "Submit Application" category - it is shown separately *}
25 {if $step.title NEQ 'Submit Application'}
26 {* step.link value is passed for section usages which allow clickable navigation AND when section state is clickable *}
27 <li class="{$stepClass}">{if $step.link && !$step.current}<a href="{$step.link}">{/if}{$step.title}{if $step.link && !$step.current}</a>{/if}</li>
28 {if $step.current}
29 {include file="CRM/common/WizardHeader.tpl"}
30 {/if}
31 {/if}
32 {/foreach}
33 </ul>
34 </div>
35 {/if}