Commit 9e0ef06d authored by Sven Franck's avatar Sven Franck

data: added new JSON configuration

parent 1fe71353
[
{"text": "Belgique", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.belgium_country", "class":"translate", "value":"be"},
{"text": "France", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.francecountry", "class":"translate", "value":"f"},
{"text": "Allemagne", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.germanycountry", "class":"translate", "value":"de"},
{"text": "Luxembourg", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.luxembourgcountry", "class":"translate", "value":"lux"},
{"text": "Pays-Bas", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.netherlandscountry", "class":"translate", "value":"nl"},
{"text": "Suisse", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.switzerlandcountry", "class":"translate", "value":"ch"}
]
\ No newline at end of file
[
{"text": "Belgique (+32)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.belgium", "class":"translate", "value":"+32"},
{"text": "France (+33)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.france", "class":"translate", "value":"+33"},
{"text": "Allemagne (+49)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.germany", "class":"translate", "value":"+49"},
{"text": "Luxembourg (+352)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.luxembourg", "class":"translate", "value":"+352"},
{"text": "Pays-Bas (+31)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.netherlands", "class":"translate", "value":"+31"},
{"text": "Suisse (+41)", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.switzerland", "class":"translate", "value":"+41"}
]
\ No newline at end of file
[
{"text": "À l'adresse de facturation", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.invoice_address", "class":"translate", "value":"ship_invoice"}
]
\ No newline at end of file
[
{"text": "Belgique", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.belgium_country", "class":"translate", "value":"be"},
{"text": "France", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.francecountry", "class":"translate", "value":"f"},
{"text": "Allemagne", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.germanycountry", "class":"translate", "value":"de"},
{"text": "Luxembourg", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.luxembourgcountry", "class":"translate", "value":"lux"},
{"text": "Pays-Bas", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.netherlandscountry", "class":"translate", "value":"nl"},
{"text": "Suisse", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.switzerlandcountry", "class":"translate", "value":"ch"}
]
\ No newline at end of file
[
{"text": "Facture électronique sans surcoût", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.electronic", "class":"translate", "value":"electronic"},
{"text": "Facture papier pour 0,85 € par mois", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.paper", "class":"translate", "value":"paper"},
]
\ No newline at end of file
[
{"text": "Francaise", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.french", "class":"translate", "value":"F"},
{"text": "Anglaise", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.english", "class":"translate", "value":"EN"},
{"text": "Allemandes", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.german", "class":"translate", "value":"DE"},
{"text": "Nederlands", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.dutch", "class":"translate", "value":"NL"},
]
\ No newline at end of file
[
{"text": "1", "value":"1"},
{"text": "2", "value":"2"},
{"text": "3", "value":"3"},
{"text": "4", "value":"4"},
{"text": "5", "value":"5"}
]
\ No newline at end of file
[
{"text": "", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.electronic", "class":"translate", "value":"electronic"},
{"text": "", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.paper", "class":"translate", "value":"paper"},
]
\ No newline at end of file
[
{"text": "Mme", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.mrs", "class":"translate", "value":"madame"},
{"text": "Mlle", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.ms", "class":"translate", "value":"monsieur"},
{"text": "M", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.mr", "class":"translate", "value":"mademoiselle"},
]
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
{
"portal_type_source": "Sales Order",
"portal_type_title": "sales_order",
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"wrap_gadget": 2,
"submit_to": "#subscription/personal_data",
"allow_new": true
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "number_of_badges"},
{"field": "requested_invoice_method"},
{"field": "additional_badge_holders"},
{"type": "p", "direct": {"className": "translate"}, "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.coupon_info"}, "logic": {"text": "Vous disposez d'un code promo, code jeu concours ou numéro de parrain"}},
{"field": "coupon_code"}
]
}
],
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"mini": true
},
"children": [
{
"type": "a",
"direct": {"href":"#subscription", "className": "translate ui-btn ui-icon-caret-r ui-btn-icon-right ui-btn-active"},
"attributes": {"data-i18n": "global_dict.subscription"},
"logic": {"text": "Ma Forumle"}
}, {
"type": "a",
"direct": {"href":"#subscription", "className": "ui-disabled translate ui-btn ui-icon-caret-r ui-btn-icon-right"},
"attributes": {"data-i18n": "global_dict.details"},
"logic": {"text": "Mes Informations"}
}, {
"type": "a",
"direct": {"href":"#subscription", "className": "ui-disabled translate ui-btn ui-icon-caret-r ui-btn-icon-right"},
"attributes": {"data-i18n": "global_dict.order"},
"logic": {"text": "Ma Commande"}
}, {
"type": "a",
"direct": {"href":"#", "className": "ui-disabled translate ui-btn"},
"attributes": {"data-i18n": "global_dict.payment"},
"logic": {"text": "Mon Paiement"}
}
]
}, {
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [
{
"generate": "widget",
"type": "listview",
"property_dict": {
"inset": "true",
"class_list": "subscription_selector"
},
"children": [
{"type": "divider", "center": [{"type": "h3", "text": "Choisissez votre offre", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.choose_offer"}]},
{"type": "item", "class_list": "violet", "left": [{"type": "image", "src": "img/bg-offre01.png", "alt":""}], "center": [{"type": "h3", "text": "Au forfait - 1,25€ par mois", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.fixed_price"}, {"type": "p", "text": "Bip&Go Au forfait est fait pour vous", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.fixed_details"}], "right": {"radio": true, "id": "subscription_plan-0", "name": "subscription_plan"}},
{"type": "item", "class_list": "rose", "left": [{"type": "image", "src": "img/bg-offre02.png", "alt":""}], "center": [{"type": "h3", "text": "A la cart - 1,6€ par mois", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.carte_price"}, {"type": "p", "text": "", "text_i18n":"portal_type_dict.sales_order_dict.text_dict.carte_details"}], "right": {"radio": true, "id": "subscription_plan-1", "name": "subscription_plan"}}
]
},
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
{"type": "a", "direct": {"href": "#", "className": "ui-btn ui-disabled ui-btn-icon-left ui-icon-caret-l"}, "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.retour"}, "logic": {"text": "Retour"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-icon":"caret-r", "data-i18n":"[value]global_dict.proceed"}}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2 ui-content-element"
},
"children": [{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.advantages"},
"logic": {"text": "Les avantages Bip&Go"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.waiting"},
"logic": {"text": "Plus d'attente au péage"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.valid"},
"logic": {"text": "Valable partout en France et dans plus de 250 parkings"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.strings"},
"logic": {"text": "Sans engagement"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.secure"},
"logic": {"text": "Paiement sécurisé par prélèvement mensuel"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.delivery"},
"logic": {"text": "Livraison sous 48 heures en France"}
}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2 ui-content-element"
},
"children": [{
"type": "a",
"direct": {"href":"#", "className": "translate ui-btn ui-icon-medkit ui-corner-all ui-btn-icon-right"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.help"},
"logic": {"text": "Aide"}
}]
}
]
}
{
"portal_type_source": "Sales Order",
"portal_type_title": "sales_order",
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"wrap_gadget": 2,
"submit_to": "#subscription/validate_order",
"allow_new": true
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "type_of_sales_order"},
{"field": "title"},
{"field": "last_name"},
{"field": "first_name"},
{"custom": true, "wrap": true, "type": "input", "direct": {"id": "dob", "name": "dob", "className": "translate"}, "logic":{"label_i18n":"portal_type_dict.sales_order_dict.text_dict.dob", "label": "Date de naissance (JJ/MM/AAAA)"}},
{"field": "default_email_text"},
{"field": "default_email_confirm"}
],
"position": "right",
"field_list": [
{"field": "country_code"},
{"field": "cell_phone"},
{"field": "country_code_fix"},
{"field": "phone_fix"},
{"field": "address"},
{"field": "address_appendix_1"},
{"field": "address_appendix_2"},
{"field": "address_appendix_3"},
{"field": "country"},
{"field": "postcode"},
{"field": "city"}
],
"position": "left",
"field_list": [
{"field": "delivery_method"},
{"field": "delivery_address"},
{"field": "notification_language"}
]
}
],
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"mini": true
},
"children": [
{
"type": "a",
"direct": {"href":"#subscription", "className": "translate ui-btn ui-icon-caret-r ui-btn-icon-right"},
"attributes": {"data-i18n": "global_dict.subscription"},
"logic": {"text": "Ma Forumle"}
}, {
"type": "a",
"direct": {"href":"#subscription", "className": "translate ui-btn ui-icon-caret-r ui-btn-icon-right ui-btn-active"},
"attributes": {"data-i18n": "global_dict.details"},
"logic": {"text": "Mes Informations"}
}, {
"type": "a",
"direct": {"href":"#subscription", "className": "ui-disabled translate ui-btn ui-icon-caret-r ui-btn-icon-right"},
"attributes": {"data-i18n": "global_dict.order"},
"logic": {"text": "Ma Commande"}
}, {
"type": "a",
"direct": {"href":"#", "className": "ui-disabled translate ui-btn"},
"attributes": {"data-i18n": "global_dict.payment"},
"logic": {"text": "Mon Paiement"}
}
]
}, {
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"dynamic": true,
"map_children": "formItem",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
{"type": "a", "direct": {"href": "#subscription", "className": "ui-btn ui-btn-icon-left ui-icon-caret-l"}, "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.retour"}, "logic": {"text": "Retour"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-icon":"caret-r", "data-i18n":"[value]global_dict.proceed"}}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2 ui-content-element"
},
"children": [{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.advantages"},
"logic": {"text": "Les avantages Bip&Go"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.waiting"},
"logic": {"text": "Plus d'attente au péage"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.valid"},
"logic": {"text": "Valable partout en France et dans plus de 250 parkings"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.strings"},
"logic": {"text": "Sans engagement"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.secure"},
"logic": {"text": "Paiement sécurisé par prélèvement mensuel"}
}, {
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.delivery"},
"logic": {"text": "Livraison sous 48 heures en France"}
}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_2 ui-content-element"
},
"children": [{
"type": "a",
"direct": {"href":"#", "className": "translate ui-btn ui-icon-medkit ui-corner-all ui-btn-icon-right"},
"attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.help"},
"logic": {"text": "Aide"}
}]
}
]
}
This diff is collapsed.
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"title": "Subscription",
"title_i18n": "global_dict.subscription",
"theme": "slapos-white"
},
"view_dict": {
"default": [{
"url": "order.json"
}],
"personal": [{
"url": "personal_data.json"
}],
"order": [{
"url": "validate_order.json"
}]
}
}
]
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment