Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
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 | | |
6a488035 TO |
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'} | |
f813f78e | 26 | {* step.link value is passed for section usages which allow clickable navigation AND when section state is clickable *} |
6a488035 TO |
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> | |
232624b1 | 35 | {/if} |