mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
MINOR Disabled certain fields that stopped the page from being saved
This commit is contained in:
parent
45bea26300
commit
0e33550a18
@ -61,18 +61,18 @@ class BasicFieldsTestPage extends TestPage {
|
||||
// new HtmlOneLineField('HTMLOneLine', 'HTMLOneLineField'), // Doesn't work
|
||||
new EmailField('Email', 'EmailField'),
|
||||
new PasswordField('Password', 'PasswordField'),
|
||||
new ConfirmedPasswordField('ConfirmedPassword', 'ConfirmedPasswordField'),
|
||||
//new ConfirmedPasswordField('ConfirmedPassword', 'ConfirmedPasswordField'),
|
||||
new UniqueTextField('UniqueText', 'UniqueText', 'BasicFieldsTestPage', 'This field must be unique.', 'UniqueTextField'),
|
||||
new UniqueRestrictedTextField('UniqueRestrictedText', 'UniqueRestrictedText', 'BasicFieldsTestPage', 'This field must be unique for each page',
|
||||
'[^A-Za-z0-9-]+', '-', 'This field can only be made up of letters, digits and hyphens.',
|
||||
'UniqueRestrictedTextField'),
|
||||
new AjaxUniqueTextField('AjaxUniqueText', 'AjaxUniqueTextField', 'AjaxjUniqueText', 'BasicFieldsTestPage'),
|
||||
new AjaxUniqueTextField('AjaxUniqueText', 'AjaxUniqueTextField', 'AjaxUniqueText', 'BasicFieldsTestPage'),
|
||||
// new AutocompleteTextField('Autocomplete', 'AutocompleteTextField', Director::absoluteURL('BasicFieldsTestPage_Controller/AutoCompleteItems')), // Doesn't work
|
||||
));
|
||||
|
||||
$fields->addFieldsToTab('Root.Content.NumericTests', array(
|
||||
new NumericField('Number', 'NumericField'),
|
||||
new CurrencyField('Price', 'CurrencyField'),
|
||||
//new CurrencyField('Price', 'CurrencyField'),
|
||||
new PhoneNumberField('PhoneNumber', 'PhoneNumberField'),
|
||||
new CreditCardField('CreditCard', 'CreditCardField')
|
||||
));
|
||||
@ -85,7 +85,8 @@ class BasicFieldsTestPage extends TestPage {
|
||||
new OptionsetField('OptionSetID', 'OptionSetField', TestCategory::map()),
|
||||
));
|
||||
|
||||
$fields->addFieldsToTab('Root.Content.DateTimeTests', array(
|
||||
// All these date/time fields generally have issues saving directly in the CMS
|
||||
/*$fields->addFieldsToTab('Root.Content.DateTimeTests', array(
|
||||
new CalendarDateField('CalendarDate','CalendarDateField'),
|
||||
new CompositeDateField('CompositeDate','CompsiteDateField'),
|
||||
new DateField('Date','DateField'),
|
||||
@ -95,7 +96,7 @@ class BasicFieldsTestPage extends TestPage {
|
||||
new DropdownTimeField('DropdownTime','DropdownTimeField'),
|
||||
new PopupDateTimeField('PopupDateTime','PopupDateTimeField'),
|
||||
new TimeField('Time','TimeField')
|
||||
));
|
||||
));*/
|
||||
|
||||
$fields->addFieldsToTab('Root.Content.FileTests', array(
|
||||
new ImageField('Image','ImageField'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user