public function getCMSFields() { $f = parent::getCMSFields(); $f->addFieldToTab('Root.Main', new TextField('BookingLink', 'Booking Link')); $f->addFieldToTab('Root.Main', new CheckboxField('SoldOut', 'Is SoldOut')); $f->addFieldToTab('Root.Main', $ddl_type = new DropdownField('Type', 'Type', $this->dbObject('Type')->enumValues())); $ddl_type->setEmptyString('-- Select Hotel Type --'); return $f; }
public function getCMSFields() { $f = parent::getCMSFields(); $f->addFieldToTab('Root.Main', new DropdownField('Type', 'Type', singleton('SummitAirport')->dbObject('Type')->enumValues())); return $f; }