mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 09:05:49 +00:00
Backport of 68d374
This commit is contained in:
parent
37be2b85a0
commit
1d77f6b36e
@ -141,7 +141,13 @@ class MultiFormStep extends DataObject {
|
|||||||
*/
|
*/
|
||||||
public function Link() {
|
public function Link() {
|
||||||
$form = $this->form;
|
$form = $this->form;
|
||||||
return Controller::join_links($form->getDisplayLink(), "?{$form->config()->get_var}={$this->Session()->Hash}");
|
return Controller::join_links(
|
||||||
|
$form->getDisplayLink(),
|
||||||
|
'?' . http_build_query(array(
|
||||||
|
$form->getGetVar() => $this->Session()->Hash,
|
||||||
|
'StepID' => $this->ID,
|
||||||
|
))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<ul class="stepIndicator current-$CurrentStep.class">
|
<ul class="stepIndicator current-$CurrentStep.class">
|
||||||
<% loop AllStepsLinear %>
|
<% loop AllStepsLinear %>
|
||||||
<li class="$ClassName<% if LinkingMode %> $LinkingMode<% end_if %><% if FirstLast %> $FirstLast<% end_if %><% if $ExtraClasses %> $ExtraClasses<% end_if %>">
|
<li class="$ClassName<% if LinkingMode %> $LinkingMode<% end_if %><% if FirstLast %> $FirstLast<% end_if %><% if $ExtraClasses %> $ExtraClasses<% end_if %>">
|
||||||
<% if LinkingMode = current %><% else %><% if ID %><a href="{$Top.URLSegment}/?${Top.GetVar}={$SessionID}&StepID={$ID}"><% end_if %><% end_if %>
|
<% if LinkingMode = current %><% else %><% if ID %><a href="$Link"><% end_if %><% end_if %>
|
||||||
<% if Title %>$Title<% else %>$ClassName<% end_if %>
|
<% if Title %>$Title<% else %>$ClassName<% end_if %>
|
||||||
<% if LinkingMode = current %><% else %><% if ID %></a><% end_if %><% end_if %>
|
<% if LinkingMode = current %><% else %><% if ID %></a><% end_if %><% end_if %>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user