public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $cmsUsers = Member::mapInCMSGroups();
     $fields->addFieldsToTab('Root.Main', array(new HeaderField('AssignUsers', $this->fieldLabel('AssignUsers')), new CheckboxField('AssignInitiator', $this->fieldLabel('AssignInitiator')), new CheckboxSetField('Users', $this->fieldLabel('Users'), $cmsUsers), new TreeMultiselectField('Groups', $this->fieldLabel('Groups'), 'Group')));
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $cmsUsers = Member::mapInCMSGroups();
     $fields->addFieldsToTab('Root.Main', array(new HeaderField('AssignUsers', $this->fieldLabel('AssignUsers')), new CheckboxField('AssignInitiator', $this->fieldLabel('AssignInitiator')), $users = CheckboxSetField::create('Users', $this->fieldLabel('Users'), $cmsUsers), new TreeMultiselectField('Groups', $this->fieldLabel('Groups'), 'Group')));
     // limit to the users which actually can access the CMS
     $users->setSource(Member::mapInCMSGroups());
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     if (class_exists('AbstractQueuedJob')) {
         $before = _t('UnpublishItemWorkflowAction.DELAYUNPUBDAYSBEFORE', 'Delay publication ');
         $after = _t('UnpublishItemWorkflowAction.DELAYUNPUBDAYSAFTER', ' days');
         $fields->addFieldToTab('Root.Main', new FieldGroup(_t('UnpublishItemWorkflowAction.UNPUBLICATIONDELAY', 'Delay Un-publishing'), new LabelField('UnpublishDelayBefore', $before), new NumericField('UnpublishDelay', ''), new LabelField('UnpublishDelayAfter', $after)));
     }
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->addFieldsToTab('Root.Main', array(new HeaderField('NotificationEmail', $this->fieldLabel('NotificationEmail')), new LiteralField('NotificationNote', '<p>' . $this->fieldLabel('NotificationNote') . '</p>'), new TextField('EmailSubject', $this->fieldLabel('EmailSubject')), new TextField('EmailFrom', $this->fieldLabel('EmailFrom')), new TextareaField('EmailTemplate', $this->fieldLabel('EmailTemplate'), 10), new ToggleCompositeField('FormattingHelpContainer', $this->fieldLabel('FormattingHelp'), new LiteralField('FormattingHelp', $this->getFormattingHelp()))));
     if (class_exists('ListingPage')) {
         // allow the user to select an existing 'listing template'. The "getItems()" for that template
         // will be the list of items in the workflow
         $templates = DataObject::get('ListingTemplate');
         $opts = array();
         if ($templates) {
             $opts = $templates->map();
         }
         $fields->addFieldToTab('Root.Main', new DropdownField('ListingTemplateID', $this->fieldLabel('ListingTemplateID'), $opts, '', null, '(choose)'), 'EmailTemplate');
     }
     if ($this->ListingTemplateID) {
         $fields->removeFieldFromTab('Root.Main', 'EmailTemplate');
     }
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     return $fields;
 }
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->addFieldsToTab('Root.Main', array(TextField::create('Property', 'Property')->setRightTitle('Property to set; if this exists as a setter method, will be called passing the value'), TextField::create('Value', 'Value')));
     return $fields;
 }