X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcore%2Fplwizard.tpl;h=095765d4ab9a47d0bfbd5d5ea8cc6178875b02e6;hb=295d4c48a12e49274135d9f781862a45e5b8c5dc;hp=8cc54ee6985f885efa4375cf8a76832533711373;hpb=16703e553d2616c5a8c20a0ed11dd985552f8991;p=platal.git diff --git a/templates/core/plwizard.tpl b/templates/core/plwizard.tpl index 8cc54ee..095765d 100644 --- a/templates/core/plwizard.tpl +++ b/templates/core/plwizard.tpl @@ -57,13 +57,21 @@
{foreach from=$pages item=title key=id} -
- {if $stateless || $id gt $current} - {/if} - {$title} - {if $stateless || $id gt $current}{/if} -
+ {if $stateless || $id gt $current} + {assign var=tag value="a"} + {else} + {assign var=tag value="div"} + {/if} + <{$tag} class="wiz_tab {if $id eq $current}active{/if} {if !$stateless && $current gt $id}grayed{/if}" + style="display: block; float: left; width: {$tab_width}%; vertical-align: middle" + id="wiz_tab_{$lookup[$id]}" + {if $tag eq "a"} + href="{$wiz_baseurl}/{$lookup[$id]}" + onclick="return changePage(this, '{$lookup[$id]}')" + {/if} + > + {$title} + {/foreach}