Skip to content

Instantly share code, notes, and snippets.

@hpatoio
Created October 24, 2016 14:57
Show Gist options
  • Save hpatoio/c07c58fe9cdd11d63c80737a7b9fc33e to your computer and use it in GitHub Desktop.
Save hpatoio/c07c58fe9cdd11d63c80737a7b9fc33e to your computer and use it in GitHub Desktop.
form.yml
{
"children": {
"firstname": {
"value": "",
"type": "text",
"required": true,
"label": "Name"
},
"lastname": {
"value": "",
"type": "text",
"required": true,
"label": "Last Name"
},
"email": {
"children": {
"email": {
"value": "",
"type": "email",
"required": true,
"label": "Email Address"
},
"email_confirm": {
"value": "",
"type": "email",
"required": true,
"label": "Confirm Email"
}
},
"value": {
"email": null,
"email_confirm": null
},
"type": "repeated",
"required": true,
"label": "Email Address"
},
"customer_data": {
"children": {
"do_you_need_invoice": {
"value": null,
"type": "checkbox",
"required": false,
"label": "Do you need an invoice?"
},
"birthdate": {
"value": "01/01/1980",
"type": "date",
"required": false,
"label": "Date of birth"
},
"country": {
"value": "",
"type": "entity",
"required": true,
"label": "Country"
},
"city": {
"value": "",
"type": "text",
"required": false,
"label": "City"
},
"address": {
"value": "",
"type": "text",
"required": false,
"label": "Address"
},
"zipcode": {
"value": "",
"type": "text",
"required": false,
"label": "ZIP Code"
},
"mobile": {
"value": "",
"type": "number",
"required": false,
"label": "Mobile #"
},
"id_number": {
"value": "",
"type": "text",
"required": false,
"label": "National / fiscal code"
}
},
"value": {},
"type": "musement_user_customer_data",
"required": true,
"label": "text.profile.customer_data"
},
"customer_preferences": {
"children": {
"news_weekly": {
"value": "1",
"type": "checkbox",
"required": false,
"label": "Send me the Musement newsletter for the latest deals and inspiration (you can unsubscribe anytime)"
}
},
"value": {},
"type": "musement_checkout_user_preferences",
"required": true,
"label": "text.profile.customer_preferences"
},
"passenger_info_collections": {
"children": {
"593442": {
"children": {
"passenger_infos": {
"children": [
{
"children": {
"firstname": {
"value": "",
"type": "text",
"required": true,
"label": "First name"
},
"lastname": {
"value": "",
"type": "text",
"required": true,
"label": "Last name"
},
"email": {
"value": "",
"type": "email",
"required": true,
"label": "E-Mail Address"
}
},
"value": {},
"type": "musement_passenger_info_collection",
"required": true,
"label": "text.profile.0"
},
{
"children": {
"firstname": {
"value": "",
"type": "text",
"required": true,
"label": "First name"
},
"lastname": {
"value": "",
"type": "text",
"required": true,
"label": "Last name"
},
"email": {
"value": "",
"type": "email",
"required": true,
"label": "E-Mail Address"
}
},
"value": {},
"type": "musement_passenger_info_collection",
"required": true,
"label": "text.profile.1"
}
],
"value": [
{},
{}
],
"type": "collection",
"required": true,
"label": "text.profile.passenger_infos"
}
},
"value": {},
"type": "musement_passenger_info_collection",
"required": true,
"label": "text.profile.593442"
},
"593443": {
"children": {
"passenger_infos": {
"children": [
{
"children": {
"firstname": {
"value": "",
"type": "text",
"required": true,
"label": "First name"
},
"lastname": {
"value": "",
"type": "text",
"required": true,
"label": "Last name"
},
"email": {
"value": "",
"type": "email",
"required": true,
"label": "E-Mail Address"
}
},
"value": {},
"type": "musement_passenger_info_collection",
"required": true,
"label": "text.profile.0"
}
],
"value": [
{}
],
"type": "collection",
"required": true,
"label": "text.profile.passenger_infos"
}
},
"value": {},
"type": "musement_passenger_info_collection",
"required": true,
"label": "text.profile.593443"
}
},
"value": {
"593442": {},
"593443": {}
},
"type": "collection",
"required": true,
"label": "Customer Information"
},
"extended_fields": {
"children": {
"4345": {
"children": {
"167": {
"children": {
"passenger_contact": {
"value": "",
"type": "text",
"required": true,
"label": "Passenger contact"
},
"email_": {
"value": "",
"type": "text",
"required": true,
"label": "Email "
}
},
"value": [],
"type": "form",
"required": true,
"label": "text.profile.167"
}
},
"value": [],
"type": "form",
"required": true,
"label": "text.profile.4345"
}
},
"value": [],
"type": "form",
"required": true,
"label": "text.profile.extended_fields"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment