Showing a readonly field for where settings are derived from

This commit is contained in:
Stig Lindqvist 2014-02-25 20:35:27 +13:00
parent 3017712dfb
commit 21b6b05fb7

View File

@ -233,10 +233,13 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
)); ));
$logs = GridField::create('ROReviewNotes', 'Review Notes', $this->owner->ReviewLogs(), $logConfig); $logs = GridField::create('ROReviewNotes', 'Review Notes', $this->owner->ReviewLogs(), $logConfig);
$optionsFrom = ReadonlyField::create('ROType', _t('ContentReview.SETTINGSFROM', "Options are"), $this->owner->ContentReviewType);
$fields->addFieldsToTab("Root.ContentReview", array( $fields->addFieldsToTab("Root.ContentReview", array(
$contentOwners, $contentOwners,
$nextReviewAt->performReadonlyTransformation(), $nextReviewAt->performReadonlyTransformation(),
$reviewFreq, $reviewFreq,
$optionsFrom,
$logs $logs
)); ));
return; return;