dedijk4/vendor/rockettheme/toolbox/Blueprints/tests/data/blueprint/basic.yaml

42 lines
724 B
YAML
Raw Normal View History

2020-02-19 16:42:35 +01:00
rules:
name:
pattern: "[A-Z][a-z]+"
min: 3
max: 15
form:
validation: loose
fields:
text:
type: text
label: Text
placeholder: 'Enter your text'
enabled:
type: select
label: Enabled
default: true
data-options@: blueprint_data_option_test
user.name:
type: name
label: Name
default: John
validate:
type: name
user.country:
type: select
label: Enabled
default: fi
data-options@:
- blueprint_data_option_test
- { us: 'United States', fi: 'Finland', po: 'Poland' }
- true
undefined:
type: select
label: Undefined
data-options@: undefined_function