mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API FormField->setDescription() visible in default template
Renders into <span class="description"> instead of "title" attribute
This commit is contained in:
parent
255b4c44d3
commit
6f9d01f621
@ -60,10 +60,10 @@ you'll need to adjust your code.
|
||||
including `Email_BounceHandler` and `Email_BounceRecord` classes,
|
||||
as well as the `Member->Bounced` property.
|
||||
* Deprecated global email methods `htmlEmail()` and `plaintextEmail`, as well as various email helper methods like `encodeMultipart()`. Use the `Email` API, or the `Mailer` class where applicable.
|
||||
* Removed non-functional `$inlineImages` option for sending emails
|
||||
* Removed non-functional `$inlineImages` option for sending emails
|
||||
* Removed support for keyed arrays in `SelectionGroup`, use new `SelectionGroup_Item` object
|
||||
to populate the list instead (see [API docs](api:SelectionGroup)).
|
||||
* Removed `Form->Name()`: Use getName()
|
||||
* `FormField->setDescription()` now renders in a `<span class="description">` by default, rather than a `title` attribute * Removed `Form->Name()`: Use getName()
|
||||
* Removed `FormField->setContainerFieldSet()`: Use setContainerFieldList()
|
||||
* Removed `FormField->rootFieldSet()`: Use rootFieldList()
|
||||
* Removed `Group::map()`: Use DataList::("Group")->map()
|
||||
|
@ -356,7 +356,6 @@ class FormField extends RequestHandler {
|
||||
'class' => $this->extraClass(),
|
||||
'id' => $this->ID(),
|
||||
'disabled' => $this->isDisabled(),
|
||||
'title' => $this->getDescription(),
|
||||
);
|
||||
|
||||
return array_merge($attrs, $this->attributes);
|
||||
|
@ -1,4 +1,4 @@
|
||||
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
|
||||
<ul id="$ID" class="$extraClass">
|
||||
<% if Options.Count %>
|
||||
<% loop Options %>
|
||||
<li class="$Class">
|
||||
|
@ -1,7 +1,5 @@
|
||||
<% if isReadonly %>
|
||||
<span id="$ID"
|
||||
<% if extraClass %>class="$extraClass"<% end_if %>
|
||||
<% if $Description %>title="$Description"<% end_if %>>
|
||||
<span id="$ID"<% if extraClass %> class="$extraClass"<% end_if %>>
|
||||
$Value
|
||||
</span>
|
||||
<% else %>
|
||||
|
@ -5,4 +5,5 @@
|
||||
</div>
|
||||
<% if RightTitle %><label class="right" for="$ID">$RightTitle</label><% end_if %>
|
||||
<% if Message %><span class="message $MessageType">$Message</span><% end_if %>
|
||||
<% if Description %><span class="description">$Description</span><% end_if %>
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
<ul id="$ID" class="$extraClass"<% if Description %> title="$Description"<% end_if %>>
|
||||
<ul id="$ID" class="$extraClass">
|
||||
<% loop Options %>
|
||||
<li class="$Class">
|
||||
<input id="$ID" class="radio" name="$Name" type="radio" value="$Value"<% if isChecked %> checked<% end_if %><% if isDisabled %> disabled<% end_if %> />
|
||||
|
Loading…
Reference in New Issue
Block a user