mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Removed temporary preview links in CMSPageEditController
This commit is contained in:
parent
ab3fe3e638
commit
07094f5b10
@ -5,17 +5,4 @@ class CMSPageEditController extends CMSMain {
|
||||
static $url_rule = '/$Action/$ID/$OtherID';
|
||||
static $url_priority = 41;
|
||||
|
||||
function getEditForm($id = null, $fields = null) {
|
||||
$record = $this->getRecord($id ? $id : $this->currentPageID());
|
||||
$form = parent::getEditForm($record, ($record) ? $record->getCMSFields() : null);
|
||||
|
||||
// TODO Replace with preview button
|
||||
$form->Fields()->addFieldToTab(
|
||||
'Root.Main',
|
||||
new LiteralField('SwitchView', sprintf('<div class="cms-switch-view field"><label>Preview:</label><div class="middleColumn">%s</div></div>', $this->SwitchView()))
|
||||
);
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user