mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX SSF-25 : $Form is not defined in the context, sine {$Form.Name} always give 'Form' string, we need just have 'Form' string there instead to use {$Form.Name}
This commit is contained in:
parent
767336916b
commit
de69d0944b
@ -6,7 +6,7 @@
|
|||||||
<% if SearchClassSelector = tabs %>
|
<% if SearchClassSelector = tabs %>
|
||||||
<ul>
|
<ul>
|
||||||
<% control ModelForms %>
|
<% control ModelForms %>
|
||||||
<li class="$FirstLast"><a id="tab-ModelAdmin_$Title.HTMLATT" href="#{$Form.Name}_$ClassName">$Title</a></li>
|
<li class="$FirstLast"><a id="tab-ModelAdmin_$Title.HTMLATT" href="#Form_$ClassName">$Title</a></li>
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
@ -16,14 +16,14 @@
|
|||||||
Search for:
|
Search for:
|
||||||
<select>
|
<select>
|
||||||
<% control ModelForms %>
|
<% control ModelForms %>
|
||||||
<option value="{$Form.Name}_$ClassName">$Title</option>
|
<option value="Form_$ClassName">$Title</option>
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
|
||||||
<% control ModelForms %>
|
<% control ModelForms %>
|
||||||
<div class="tab" id="{$Form.Name}_$ClassName">
|
<div class="tab" id="Form_$ClassName">
|
||||||
$Content
|
$Content
|
||||||
</div>
|
</div>
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user