mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Include the title attribute on tree and readonly fields.
This commit is contained in:
parent
d9c7bb8eb9
commit
9e4b526213
@ -114,6 +114,7 @@ class TreeMultiselectField extends TreeDropdownField {
|
||||
'class' => 'TreeDropdownField multiple' . ($this->extraClass() ? " {$this->extraClass()}" : '') . ($this->showSearch ? " searchable" : ''),
|
||||
'data-url-tree' => $this->form ? $this->Link('tree') : "",
|
||||
'data-title' => $title,
|
||||
'title' => $this->getDescription()
|
||||
),
|
||||
$this->createTag (
|
||||
'input',
|
||||
|
@ -1,5 +1,9 @@
|
||||
<% if isReadonly %>
|
||||
<span id="$ID"<% if extraClass %> class="$extraClass"<% end_if %>>$Value</span>
|
||||
<span id="$ID"
|
||||
<% if extraClass %>class="$extraClass"<% end_if %>
|
||||
<% if $Description %>title="$Description"<% end_if %>>
|
||||
$Value
|
||||
</span>
|
||||
<% else %>
|
||||
<input $AttributesHTML>
|
||||
<% end_if %>
|
||||
|
@ -1,3 +1,8 @@
|
||||
<div id="TreeDropdownField_$ID" class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>" data-url-tree="$Link(tree)" data-title="$Title"<% if Metadata %> data-metadata="$Metadata"<% end_if %>>
|
||||
<div id="TreeDropdownField_$ID"
|
||||
class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
|
||||
data-url-tree="$Link(tree)"
|
||||
data-title="$Title"
|
||||
<% if Description %>title="$Description"<% end_if %>
|
||||
<% if Metadata %>data-metadata="$Metadata"<% end_if %>>
|
||||
<input id="$ID" type="hidden" name="$Name" value="$Value" />
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user