mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API Using $HolderID for form field container templates
Replaces duplicate $ID usage. See https://github.com/silverstripe/silverstripe-framework/pull/1873
This commit is contained in:
parent
5a1d476e8d
commit
0c4ec4708b
@ -1,4 +1,4 @@
|
|||||||
<div id="$Name" class="field<% if extraClass %> $extraClass<% end_if %>">
|
<div id="$HolderID" class="field<% if extraClass %> $extraClass<% end_if %>">
|
||||||
$Field
|
$Field
|
||||||
<label class="right" for="$ID">$Title</label>
|
<label class="right" for="$ID">$Title</label>
|
||||||
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<ul id="$ID" class="$extraClass">
|
<ul id="$HolderID" class="$extraClass">
|
||||||
<% if Options.Count %>
|
<% if Options.Count %>
|
||||||
<% loop Options %>
|
<% loop Options %>
|
||||||
<li class="$Class">
|
<li class="$Class">
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<ul id="$ID" class="$extraClass">
|
<ul id="$HolderID" class="$extraClass">
|
||||||
<% loop Options %>
|
<% loop Options %>
|
||||||
<li class="$Class">
|
<li class="$Class">
|
||||||
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> />
|
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> />
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div id="TreeDropdownField_$ID"
|
<div id="$HolderID"
|
||||||
class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
|
class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
|
||||||
data-url-tree="$Link(tree)"
|
data-url-tree="$Link(tree)"
|
||||||
data-title="$TitleURLEncoded"
|
data-title="$TitleURLEncoded"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user