API FormField->setDescription() visible in default template

Renders into <span class="description"> instead of "title" attribute
This commit is contained in:
Ingo Schommer 2012-12-13 16:22:58 +01:00
parent 255b4c44d3
commit 6f9d01f621
6 changed files with 6 additions and 8 deletions

View File

@ -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()

View File

@ -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);

View File

@ -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">

View File

@ -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 %>

View File

@ -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>

View File

@ -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 %> />