FIX: Show RightTitle on CheckboxField

RightTitle, if set, will be shown after Title
with a space between them.

Fixes https://github.com/silverstripe/silverstripe-framework/issues/3819
This commit is contained in:
Sam Minnee 2019-04-04 15:50:19 +13:00
parent d816989f2e
commit 8a098d637f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<div id="$HolderID" class="field<% if extraClass %> $extraClass<% end_if %>">
$Field
<label class="right" for="$ID">$Title</label>
<label class="right" for="$ID">$Title<% if $RightTitle %> $RightTitle<% end_if %></label>
<% if $Message %><span class="message $MessageType">$Message</span><% end_if %>
<% if $Description %><span class="description">$Description</span><% end_if %>
</div>

View File

@ -1,5 +1,5 @@
$Field
<% if $Title %>
<label class="checkboxfield-small" <% if $ID %>for="$ID"<% end_if %>>$Title</label>
<label class="checkboxfield-small" <% if $ID %>for="$ID"<% end_if %>>$Title<% if $RightTitle %> $RightTitle<% end_if %></label>
<% end_if %>