public function getCMSFields($params = null)
 {
     $fields = parent::getCMSFields($params);
     //  new FieldSet();
     // tabbed or untabbed
     //		$fields->push(new TabSet("Root", $mainTab = new Tab("Main")));
     //		$mainTab->setTitle(_t('SiteTree.TABMAIN', "Main"));
     $fields->removeByName('Settings');
     $fields->addFieldToTab('Root.Main', new TextField('Title'));
     $fields->addFieldToTab('Root.Main', new TextareaField('Description'));
     if ($this->ID) {
         $config = new GridFieldConfig_RecordEditor();
         $grid = new GridField('ChildReports', 'Child reports', $this->ChildReports(), $config);
         $fields->addFieldToTab('Root.Main', $grid);
     } else {
         $fields->addFieldToTab('Root.Main', new LiteralField('Notice', 'Please save before adding related reports'));
     }
     return $fields;
 }
 /**
  * Overwrites SiteTree.getCMSFields.
  *
  * This method creates a customised CMS form for back-end user.
  *
  * @return fieldset
  */
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->removeFieldsFromTab("Root.Main", array("Pages"));
     return $fields;
 }