mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02: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:
|
||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField
|
||||
Name: CountrySelection
|
||||
Title: "Choose your country"
|
||||
DisplayRulesConjunction: And
|
||||
ShowOnLoad: false
|
||||
|
||||
SilverStripe\UserForms\Model\EditableFormField\EditableTextField:
|
||||
irdNumberField:
|
||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
|
||||
Name: IRDNumber
|
||||
Title: "Enter your IRD Number"
|
||||
countryTextField:
|
||||
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
|
||||
Name: CountryTextSelection
|
||||
Title: "Enter your country (2 digit prefix)"
|
||||
DisplayRulesConjunction: And
|
||||
ShowOnLoad: false
|
||||
|
||||
SilverStripe\UserForms\Model\EditableCustomRule:
|
||||
rule1:
|
||||
Display: Show
|
||||
ConditionOption: HasValue
|
||||
FieldValue: NZ
|
||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryDropdown
|
||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField
|
||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField.countryDropdown
|
||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|
||||
rule2:
|
||||
Display: Show
|
||||
ConditionOption: ValueGreaterThan
|
||||
FieldValue: 1
|
||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryTextField
|
||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField
|
||||
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.countryTextField
|
||||
Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
|
||||
|
Loading…
Reference in New Issue
Block a user