mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
FIX Use correct class names in EditableCustomRuleTest fixtures
This commit is contained in:
parent
59827e2011
commit
98f69f344f
@ -1,30 +1,30 @@
|
|||||||
SilverStripe\UserForms\Model\EditableFormField:
|
SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField:
|
||||||
countryDropdown:
|
countryDropdown:
|
||||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField
|
|
||||||
Name: CountrySelection
|
Name: CountrySelection
|
||||||
Title: "Choose your country"
|
Title: "Choose your country"
|
||||||
DisplayRulesConjunction: And
|
DisplayRulesConjunction: And
|
||||||
ShowOnLoad: false
|
ShowOnLoad: false
|
||||||
|
|
||||||
|
SilverStripe\UserForms\Model\EditableFormField\EditableTextField:
|
||||||
irdNumberField:
|
irdNumberField:
|
||||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
|
|
||||||
Name: IRDNumber
|
Name: IRDNumber
|
||||||
Title: "Enter your IRD Number"
|
Title: "Enter your IRD Number"
|
||||||
countryTextField:
|
countryTextField:
|
||||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
|
|
||||||
Name: CountryTextSelection
|
Name: CountryTextSelection
|
||||||
Title: "Enter your country (2 digit prefix)"
|
Title: "Enter your country (2 digit prefix)"
|
||||||
DisplayRulesConjunction: And
|
DisplayRulesConjunction: And
|
||||||
ShowOnLoad: false
|
ShowOnLoad: false
|
||||||
|
|
||||||
SilverStripe\UserForms\Model\EditableCustomRule:
|
SilverStripe\UserForms\Model\EditableCustomRule:
|
||||||
rule1:
|
rule1:
|
||||||
Display: Show
|
Display: Show
|
||||||
ConditionOption: HasValue
|
ConditionOption: HasValue
|
||||||
FieldValue: NZ
|
FieldValue: NZ
|
||||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryDropdown
|
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField.countryDropdown
|
||||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField
|
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|
||||||
rule2:
|
rule2:
|
||||||
Display: Show
|
Display: Show
|
||||||
ConditionOption: ValueGreaterThan
|
ConditionOption: ValueGreaterThan
|
||||||
FieldValue: 1
|
FieldValue: 1
|
||||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryTextField
|
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.countryTextField
|
||||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField
|
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|
||||||
|
Loading…
x
Reference in New Issue
Block a user