silverstripe-userforms/tests/EditableFormFieldTest.yml

140 lines
2.9 KiB
YAML
Raw Normal View History

2015-07-24 04:37:48 +02:00
EditableCustomRule:
rule-1:
Display: Hide
ConditionOption: HasValue
FieldValue: 6
EditableOption:
option-1:
Name: Option1
Title: Option 1
2015-07-24 04:37:48 +02:00
option-2:
Name: Option2
Title: Option 2
department-1:
Name: dept1
Title: sales@example.com
department-2:
Name: dept2
Title: accounts@example.com
option-3:
Name: Option3
Title: Option 3
option-4:
Name: Option4
Title: Option 4
option-5:
Name: Option5
Title: Option 5
option-6:
Name: Option6
Title: Option 6
2015-07-24 04:37:48 +02:00
UserDefinedForm_EmailRecipient:
recipient-1:
EmailAddress: test@example.com
EmailSubject: Email Subject
EmailFrom: no-reply@example.com
2015-07-24 04:37:48 +02:00
no-html:
EmailAddress: nohtml@example.com
EmailSubject: Email Subject
EmailFrom: no-reply@example.com
SendPlain: true
2015-07-24 04:37:48 +02:00
no-data:
EmailAddress: nodata@example.com
EmailSubject: Email Subject
EmailFrom: no-reply@example.com
HideFormData: true
2015-07-24 04:37:48 +02:00
EditableTextField:
basic-text:
Name: basic-text-name
Title: Basic Text Field
2015-07-24 04:37:48 +02:00
basic-text-2:
Name: basic-text-name
Title: Basic Text Field
2015-07-24 04:37:48 +02:00
required-text:
Name: required-text-field
Title: Required Text Field
CustomErrorMessage: Custom Error Message
Required: true
2015-07-24 04:37:48 +02:00
EditableDropdown:
basic-dropdown:
Name: basic-dropdown
Title: Basic Dropdown Field
Options: =>EditableOption.option-1, =>EditableOption.option-2
2015-07-24 04:37:48 +02:00
department-dropdown:
Name: department
Title: Department
Options: =>EditableOption.department-1, =>EditableOption.department-2
2015-07-24 04:37:48 +02:00
EditableCheckbox:
checkbox-1:
Name: checkbox-1
Title: Checkbox 1
2015-07-24 04:37:48 +02:00
checkbox-2:
Name: checkbox-1
Title: Checkbox 1
2015-07-24 04:37:48 +02:00
checkbox-with-rule:
Name: checkbox-with-rule
Title: Checkbox with rule
DisplayRules: =>EditableCustomRule.rule-1
EditableCheckboxGroupField:
checkbox-group:
Name: check-box-group
Title: Check box group
Options: =>EditableOption.option-3, =>EditableOption.option-4
2015-07-24 04:37:48 +02:00
EditableEmailField:
email-field:
Name: email-field
Title: Email
EditableRadioField:
radio-field:
Name: radio-option
Title: Radio Option
Options: =>EditableOption.option-5, =>EditableOption.option-6
2015-07-24 04:37:48 +02:00
EditableFileField:
file-field:
Name: file-uploader
Title: Set file
UserDefinedForm:
basic-form-page:
Title: User Defined Form
Fields: =>EditableTextField.basic-text
EmailRecipients: =>UserDefinedForm_EmailRecipient.recipient-1, =>UserDefinedForm_EmailRecipient.no-html, =>UserDefinedForm_EmailRecipient.no-data
2015-07-24 04:37:48 +02:00
form-with-reset-and-custom-action:
Title: Form with Reset Action
SubmitButtonText: Custom Button
ShowClearButton: true
2015-07-24 04:37:48 +02:00
validation-form:
Title: Validation Form
Fields: =>EditableTextField.required-text
2015-07-24 04:37:48 +02:00
custom-rules-form:
Title: Custom Rules Form
2015-07-24 04:37:48 +02:00
Fields: =>EditableCheckbox.checkbox-with-rule, =>EditableTextField.basic-text-2
empty-form:
Title: Empty Form