mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Permission checkbox display on members (fixes #8193)
This commit is contained in:
parent
432ff753c2
commit
e74ec57756
@ -197,6 +197,7 @@ class PermissionCheckboxSetField extends FormField {
|
||||
if($this->readonly) $disabled = ' disabled="true"';
|
||||
|
||||
$inheritMessage = '<small>' . $inheritMessage . '</small>';
|
||||
$icon = ($checked) ? 'accept' : 'decline';
|
||||
|
||||
// If the field is readonly, add a span that will replace the disabled checkbox input
|
||||
if($this->readonly) {
|
||||
@ -204,7 +205,7 @@ class PermissionCheckboxSetField extends FormField {
|
||||
. "<input id=\"$itemID\"$disabled name=\"$this->name[$code]\" type=\"checkbox\""
|
||||
. " value=\"$code\"$checked class=\"checkbox\" />"
|
||||
. "<label {$title}for=\"$itemID\">"
|
||||
. "<span class=\"ui-button-icon-primary ui-icon btn-icon-accept\"></span>"
|
||||
. "<span class=\"ui-button-icon-primary ui-icon btn-icon-$icon\"></span>"
|
||||
. "$value$inheritMessage</label>"
|
||||
. "</li>\n";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user