File: //var/cpanel/perl/easy/Cpanel/Easy/easy_apache_ui/ea_wizard_wrapper.tmpl
[% MACRO uriencode BLOCK -%][% key | uri -%]=[% value | uri -%]&[% END -%]
<form name="ea3_form" method="post" action="[% wizardData.pageUrl %]">
[% SET stepUrl = '' -%]
[% FOREACH item IN wizardData.formData.keys -%]
<input type="hidden" name="[% item | html %]" value="[% wizardData.formData.$item | html %]" />
[%# Construct the url part for the steps navigation -%]
[% stepUrl = stepUrl _ uriencode(key=item, value=wizardData.formData.$item) -%]
[% END -%]
[% IF wizardData.nextStepKey -%]
[%# RENDER form data as input hidden stuff -%]
<input type="hidden" name="action" value="[% wizardData.nextStepKey %]" />
[% END -%]
[%# Remove trailing '&' and encode the step's url part -%]
[% stepUrl = stepUrl.remove('\&$') -%]
[%# RENDER Wizard Navigation -%]
<ul id="eaNavMenu" class="navMenu">
[% FOREACH step IN wizardData.wizardSteps -%]
[% IF !step.isVisited %]
<li class="notVisited">
[% step.stepOrder _ ". " _ step.stepName -%]
</li>
[% ELSIF step.isCurrent %]
<li class="current">
[% step.stepOrder _ ". " _ step.stepName -%]
</li>
[% ELSE %]
<li class="visited">
<a href="[% wizardData.pageUrl %]?action=[% step.stepKey %]&[% stepUrl %]">
[% step.stepOrder _ ". " _ step.stepName -%]
</a>
</li>
[% END -%]
[% IF !loop.last -%]
<li class="stepSeparator"> → </li>
[% END -%]
[% END -%]
</ul>
<hr />
[%- content -%]
</form>