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
......@@ -9,8 +9,7 @@
},
"scheme": [{
"property_dict": {
"use_browser_language": true,
"lng": "en-EN",
"lng": "fr-FR",
"load": "current",
"fallbackLng": "en-EN",
"resGetPath": "lang/__lng__/__ns__.json",
......@@ -41,83 +40,126 @@
"wrap": "fragment",
"target": "document"
},
"children": [{
"generate": "widget",
"type": "header",
"property_dict": {
"fixed": true,
"theme": "slapos-black",
"class_list": "override_header ",
"add_content": 0,
"section_list": ["last"],
"image": {
"src": "img/weinparis.png",
"alt": "WEINPARIS"
}
},
"children": [{
"children": [
{
"generate": "widget",
"type": "controlgroup",
"type": "header",
"property_dict": {
"direction": "horizontal"
"fixed": true,
"theme": "slapos-white",
"class_list": "override_header ",
"add_content": 0,
"section_list": ["first"],
"image": {
"src": "img/logo.jpg",
"alt": "Bip&Go"
}
},
"children": [
{"type":"a", "direct": {"href": "#global-user", "className":"responsive translate action"}, "attributes": {"data-rel":"panel", "data-action":"set_login", "data-icon":"heart", "data-i18n":"global_dict.login"}, "logic": {"text":"Login"}},
{"type":"a", "direct": {"href": "#basket", "className": "responsive translate"}, "attributes": {"data-i18n": "global_dict.basket", "data-icon": "shopping-cart"}, "logic": {"text": "Basket"}}
]
}, {
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"children":[
{"type":"a", "direct": {"href": "#global-menu", "className":"responsive translate"}, "attributes": {"data-rel":"panel", "data-icon":"bars", "data-i18n":"global_dict.login"}, "logic": {"text":"Menu"}}
]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"children": [
{"type":"select", "direct": {"id": "switch_language", "className":"responsive translate"}, "attributes": {"data-icon":"flag-fr"}, "logic": {"wrapper_class_list":"flag", "options": [{"value": "en-EN", "text":"English", "text_i18n":"global_dict.english"}, {"value": "fr-FR", "text": "Chinese", "text_i18n":"global_dict.french", "selected": true}]}},
{"type":"a", "direct": {"href": "#", "className":"responsive translate"}, "attributes": {"data-icon":"envelope", "data-i18n":"global_dict.contact"}, "logic": {"text":"Contact"}},
{"type":"a", "direct": {"href": "#global-user", "className":"responsive translate"}, "attributes": {"data-rel":"panel", "data-icon":"user", "data-i18n":"global_dict.login"}, "logic": {"text":"Connexion"}}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive ui-subheader"
},
"children": [{
"type": "p",
"direct": {"className": "translate"},
"attributes": {"data-i18n": ""},
"logic": {"text": "Le plus malin pour avoir un badge liber-t"}
}, {
"type": "img",
"direct": {"src": "img/logo-libert-t.jpg", "alt": ""}
}, {
"type": "img",
"direct": {"src": "img/appr.png", "alt": "", "className": "beeper"}
}
]
}
]
},
{
"generate": "widget",
"type": "controlbar",
"type": "panel",
"property_dict": {
"class_list": "responsive ui-subheader"
"id": "global-menu",
"theme": "slapos-white",
"position": "left"
},
"children": [
{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "responsive",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
"children": [{
"generate": "widget",
"type": "header",
"property_dict": {
"id": "menu-header",
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title": "Info",
"title_i18n": "global_dict.info"
},
"children":[{
"type": "a",
"direct": {
"href": "#",
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"attributes": {
"data-enhanced": true,
"data-rel": "close"
},
"children": [{"type": "input", "direct": {"id": "product_search", "className": "required translate"}, "attributes": {"type": "text", "data-theme": "slapos-white", "data-i18n": "[placeholder]global_dict.search_items" }, "logic": {"clear": true, "action": {"action":"search", "icon": "search", "text": "Search", "text_i18n": "global_dict.search_items"}, "add_label": false}},
"logic": {"text": "Close"}
}]
}, {
"generate": "widget",
"type": "collapsible",
"property_dict": {
"text": "No Offres",
"text_i18n": "global_dict.our_offers",
"title": "Click to open and select",
"title_i18n": "global_dict.click",
"collapsed_icon": "caret-down",
"expanded_icon": "caret-up"
},
"children": [
{
"generate": "widget",
"type": "controlgroup",
"type": "listview",
"property_dict": {
"direction": "horizontal"
"theme": "slapos-white",
"map_children": "listItem"
},
"children":[
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-iconpos":"notext", "data-rel":"panel", "data-action":"set_search", "data-href": "ui_panel_detail_search", "data-icon":"search-plus", "data-i18n":"global_dict.detail_search"}, "logic": {"text":"Search+"}}
"children": [
{"type": "item", "href": "#", "center": [{"type": "h3","text": "Au forfait", "text_i18n":"global_dict.fixed"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "A la carte", "text_i18n": "global_dict.pay_as_you_go"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Liber-T vacances", "text_i18n": "global_dict.vacances"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Pour Le Pro", "text_i18n": "global_dict.professionel"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Comparatif", "text_i18n": "global_dict.comparison"}]}
]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal"
},
"children":[
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-rel": "panel", "data-iconpos":"notext", "data-action":"set_filter", "data-icon":"filter", "data-i18n":"global_dict.filter"}, "logic": {"text":"Filter"}},
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-rel": "panel", "data-iconpos":"notext", "data-action":"set_sorting", "data-icon":"sort", "data-i18n":"global_dict.sort"}, "logic": {"text":"Sort"}},
{"type":"a", "direct": {"href": "#global-search", "className":"action translate"}, "attributes": {"data-rel":"panel", "data-iconpos":"notext", "data-action":"set_sales", "data-icon":"bell", "data-i18n":"global_dict.save"}, "logic": {"text":"Save"}}
]
}
]
}
]
}]
}, {
"generate": "widget",
"type": "panel",
"property_dict": {
"id": "global-search",
"theme": "slapos-white",
"position": "left"
},
"children": []
}, {
}
]
}
]
},
{
"generate": "widget",
"type": "panel",
"property_dict": {
......@@ -133,7 +175,7 @@
"theme": "slapos-black",
"add_content": 0,
"section_list":["last"],
"title": "Your Account",
"title": "Espace Abonné",
"title_i18n": "global_dict.account"
},
"children":[{
......@@ -149,7 +191,8 @@
"logic": {"text": "Close"}
}]
}]
}, {
},
{
"generate":"widget",
"type": "footer",
"property_dict": {
......@@ -158,64 +201,54 @@
},
"children": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive"
},
"type": "navbar",
"children": [{
"generate": "widget",
"type": "form",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
"inset": true,
"theme": "slapos-white",
"map_children": "listItem"
},
"children": [
{"type": "input", "direct": {"className": "required translate"}, "attributes": {"type": "text", "data-i18n": "[placeholder]global_dict.newsletter" }, "logic": {"clear": true, "action": {"action":"subscribe", "icon": "edit", "text": "Subscribe", "text_i18n": "global_dict.subscribe"}, "add_label": false, "wrap": true}}
{"type": "divider", "center": [{"type": "h3", "text": "Nous connaître", "text_i18n": "global_dict.about"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "A propos de bip&go", "text_i18n": "global_dict.about_beep"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Groupe sanef", "text_i18n": "global_dict.about_sanef"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Nos agences", "text_i18n": "global_dict.about_agents"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Nos partenaires", "text_i18n": "global_dict.about_partners"}]}
]
}, {
}, {
"generate": "widget",
"type": "controlgroup",
"type": "listview",
"property_dict": {
"direction": "horizontal"
"inset": true,
"theme": "slapos-white",
"map_children": "listItem"
},
"children": [
{"type": "a", "direct": {"href": "#", "className": "ui-icon-facebook ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "facebook"}, "logic": {"text": "Facebook"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-twitter ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "twitter"}, "logic": {"text": "Twitter"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-google-plus ui-btn-icon-notext"}, "attributes": {"data-action": "like", "data-value": "google-plus"}, "logic": {"text": "Google+"}}
{"type": "divider", "center": [{"type": "h3", "text": "Comprendre le télépéage", "text_i18n": "global_dict.understand"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Comment ça marche", "text_i18n": "global_dict.why"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Trucs et astuces", "text_i18n": "global_dict.statutes"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Foire aux questions", "text_i18n": "global_dict.faq"}]}
]
}, {
"generate": "widget",
"type": "listview",
"property_dict": {
"inset": true,
"theme": "slapos-white",
"map_children": "listItem"
},
"children": [
{"type": "divider", "center": [{"type": "h3", "text": "Infos légales", "text_i18n": "global_dict.legal"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Conditions générales", "text_i18n": "global_dict.conditions"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "De vente", "text_i18n": "global_dict.sales"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Mentions légales", "text_i18n": "global_dict.terms"}]},
{"type": "item", "href": "#", "center": [{"type": "h3", "text": "Plan du site", "text_i18n": "global_dict.sitemap"}]}
]
}]
}, {
"generate": "widget",
"type": "form",
"property_dict": {
},
"children":[
{"type":"select", "direct": {"id": "switch_language", "className":"action translate"}, "attributes": {"data-action":"trigger_translate", "data-icon":"flag-en"}, "logic": {"wrap": true, "wrapper_class_list":"flag", "label": "Select a country", "label_i18n": "global_dict.pick_country", "options": [{"value": "en-EN", "text":"English", "text_i18n":"global_dict.english", "selected": true}, {"value": "fr-FR", "text": "Francaise", "text_i18n":"global_dict.french"}]}},
{"type":"input", "direct": {"className": "ui-hidden-accessible"}, "attributes": {"type": "submit"}, "logic": {}}
]
}, {
"type": "p",
"direct": {"className": "italic small center faint"},
"children": [
{"type": "span", "direct": {"className": "translate"}, "attributes": {"data-i18n": "global_dict.created"}, "logic": {"text": "Created by "}},
{"type": "a", "direct": {"href": "http://www.nexedi.com", "className": "ui-link"}, "attributes": {"rel": "external"}, "logic": {"text": "Nexedi", "plain_link": true}},
{"type": "span", "logic": {"text": " - "}},
{"type": "span", "direct": {"className": "translate"}, "attributes": {"data-i18n": "global_dict.powered"}, "logic": {"text": "Powered by "}},
{"type": "a", "direct": {"href": "http://www.erp5.com", "className": "ui-link"}, "attributes": {"rel": "external"}, "logic": {"text": "ERP5", "plain_link": true}}
]
}, {
"generate": "widget",
"type": "navbar",
"children": [
{"type": "a", "direct": {"href": "#contact", "className": "translate"}, "attributes": {"data-i18n": "global_dict.contact"}, "logic": {"text":"Contact"}},
{"type": "a", "direct": {"href": "#legal", "className": "translate"}, "attributes": {"data-i18n": "global_dict.legal"}, "logic": {"text": "Legal"}},
{"type": "a", "direct": {"href": "#", "className": "ui-icon-caret-up ui-btn-icon-left translate"}, "attributes": {"data-i18n":"global_dict.scrollup", "data-action": "scroll_top"}, "logic": {"text":"Top"}}
]
}]
}]
}
]
......@@ -8,180 +8,268 @@
"theme": "slapos-white"
},
"view_dict": {
"default": [
{
"default": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "span_1 responsive"
},
"children": [
{
"generate": "widget",
"type": "carousel",
"property_dict": {
"handles": true,
"captions": true,
"map_children": "listItem"
},
"children": [
{"type": "item", "href": "#", "center": [{"type": "image", "src": "img/website-Bleu.png", "alt": ""}]},
{"type": "item", "href": "#", "center": [{"type": "image", "src": "img/website-Pub.png", "alt": ""}]},
{"type": "item", "href": "#", "center": [{"type": "image", "src": "img/website-Vert.png", "alt": ""}]}
]
}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "section",
"class_list": "span_1"
"class_list": "span_3 responsive"
},
"children": [{
"type": "img",
"direct": {"src": "img/weinparis.jpg", "alt": "", "className": "teaser"}
},{
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"initial_query": {"query": "reference: 'product_group'", "include_docs": true, "select_list": ["title", "title_i18n", "_id"]},
"property_dict": {
"link": true,
"link_identifier": "title",
"link_core": "product_module::group="
},
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}
],
"type": "div",
"direct": {"className": "offer violet background"},
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"dynamic": true,
"map_children": "listItem"
},
"children": []
}]
"type": "img",
"direct": {"src": "website-Logo-offre.png", "alt": "Bip&Go"}
},{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.fixed"},
"logic": {"text": "Au Forfait"},
}, {
"type": "a",
"direct": {"href": "#"},
"children": [{
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.once_a_month"},
"logic": {"text": "Vous empruntez l’autoroute au moins 1 fois par mois."}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.once_price"},
"logic": {"text": "1.25 € par mois"}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text": "En savoir plus"}
}]
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#subscription"},
"attributes": {"data-i18n": "global_dict.subscribe"},
"logic": {"text":"J'en profite"}
}]
}]
},
{
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "section",
"class_list": "span_1"
"class_list": "span_3 responsive"
},
"children":[{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,2], "select_list": ["_id", "brand", "teaser_image_path"], "sort_on": [["teaser_image_path", "descending"]] },
"property_dict": {
"link": "true",
"link_identifier": "_id",
"link_core": "product_module"
},
"scheme": [{
"position": "caption",
"field_list": [{"field": "brand", "type": "caption"}]
}, {
"position": "content",
"field_list": [{"field": "teaser_image_path", "type": "image"}]
}],
"children": [{
"type": "div",
"direct": {"className": "offer rose background"},
"children": [{
"generate": "widget",
"type": "carousel",
"property_dict": {
"handles": true,
"captions": true,
"captiontheme": "slapos-white",
"captionpos": "bottom",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}]
},
{
"type": "h3",
"direct": {"className": "translate ui-content-header responsive"},
"attributes": {"data-i18n":"global_dict.bestseller"},
"logic": {"text": "Bestsellers"}
"type": "img",
"direct": {"src": "website-Logo-offre.png", "alt": "Bip&Go"}
},{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.pay_as_you_go"},
"logic": {"text": "A la Carte"},
}, {
"type": "a",
"direct": {"href": "#"},
"children": [{
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.view_times"},
"logic": {"text": "Vous ne prenez l’autoroute que quelques fois par an."}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.view_times"},
"logic": {"text": "1.6 € par mois"}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text": "En savoir plus"}
}]
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#subscription"},
"attributes": {"data-i18n": "global_dict.subscribe"},
"logic": {"text":"J'en profite"}
}]
}
]
}, {
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"query": "subject: 'best'", "include_docs": true, "limit": [0,4], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"generate": "widget",
"type": "controlbar",
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module"
"class_list": "span_3 responsive"
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"filter": "true",
"input": "#product_search",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}, {
"type": "h3",
"direct": {"className": "translate ui-content-header responsive"},
"attributes": {"data-i18n":"global_dict.newest"},
"logic": {"text": "Newest items"}
"type": "div",
"direct": {"className": "offer bleu background"},
"children": [{
"type": "img",
"direct": {"src": "website-Logo-offre.png", "alt": "Bip&Go"}
},{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.pro"},
"logic": {"text": "Pour Le Pro"},
}, {
"type": "a",
"direct": {"href": "#"},
"children": [{
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.enterprice"},
"logic": {"text": "Vous représentez une enterprise."}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.enterprice_price"},
"logic": {"text": "Cliquez ici pour voir l’offre la plus adaptée à vos besoins"}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text": "En savoir plus"}
}]
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#subscription"},
"attributes": {"data-i18n": "global_dict.subscribe"},
"logic": {"text":"J'en profite"}
}]
}
]
}, {
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,8], "sort_on": [["date_created", "descending"]], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"generate": "widget",
"type": "controlbar",
"property_dict": {
"link": true,
"link_identifier": "_id",
"link_core": "product_module",
"pagination": {
"class_list": "center",
"option_list": [
{"value": "8", "text": "8", "text_i18n":"global_dict.8"},
{"value": "16", "text": "16", "text_i18n":"global_dict.16"},
{"value": "32", "text": "32", "text_i18n":"global_dict.32"},
{"value": "64", "text": "64", "text_i18n":"global_dict.64"}
]
}
"class_list": "span_1 responsive"
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
"children":[{
"type": "div",
"direct": {"className": "offer rouge background"},
"children": [{
"type": "img",
"direct": {"src": "website-Logo-offre.png", "alt": "Bip&Go"}
},{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.vacances"},
"logic": {"text": "Liber-T Vacances"},
}, {
"type": "a",
"direct": {"href": "#"},
"children": [{
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.holiday"},
"logic": {"text": "Passez au Télépéage avec vos Chèques-Vacances"}
}, {
"type": "span",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text": "En savoir plus"}
}]
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#subscription"},
"attributes": {"data-i18n": "global_dict.subscribe"},
"logic": {"text":"J'en profite"}
}]
}, {
"type": "a",
"direct": {"href": "#", "className": "translate right ui-btn ui-btn-icon-right ui-icon-caret-r ui-corner-all ui-btn-slapos-active"},
"attributes": {"data-i18n":"global_dict.comparison"},
"logic": {"text": "Comparatif"}
}
],
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict":{
"class_list": "responsive span_1"
},
"children": [{
"generate": "widget",
"type": "listview",
"type":"listview",
"property_dict": {
"class_list": "responsive",
"filter": "true",
"input": "#product_search",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
"inset": true,
"map_children": "listItem"
},
"children":[]
}]
}
]
}
"children": [
{"type": "divider", "center": [{"type": "h3", "text": "3 bonnes raisons de s’abonner au télépéage avec Bip&Go", "text_i18n": "global_dict.about"}]},
{"type": "item", "left": [{"type": "image", "src":"img/website-Img-raison01.png", "alt":""}], "center": [{"type": "h3", "text": "1. Efficace", "text_i18n": "global_dict.efficiency"}, {"type": "p", "text":"Des voies réservées pour gagner du temps.", "text_i18n": "efficiency_reason"}]},
{"type": "item", "left": [{"type": "image", "src":"img/website-Img-raison02.png", "alt":""}], "center": [{"type": "h3", "text": "2. Facile", "text_i18n": "global_dict.ease"}, {"type": "p", "text": "Plus de ticket ou de monnaie à chercher, un simple boîtier suffit.", "text_i18n": "global_dict.ease_reason"}]},
{"type": "item", "left": [{"type": "image", "src":"img/website-Img-raison03.png", "alt":""}], "center": [{"type": "h3", "text": "3. Universel", "text_i18n": "global_dict.reach"}, {"type": "p", "text":"Valable partout en France et dans plus de 250 parkings.", "text_i18n": ""}]},
{"type": "item", "center": [{"type": "h3", "text": "Vos consommations sont centralisées sur une seule facture que vous recevez tous les mois, détaillant vos trajets autoroutiers et stationnements parkings.", "text_i18n":"global_dict.single_bill"}]}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive span_1"
},
"children":[{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n":"global_dict.traffic_control"},
"logic":{"text": "Trafic en temps réel"}
}, {
"type": "img",
"direct": {"src": "img/website-Visuel-home.png", "alt": ""},
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text":"En savoir plus"}
}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {
"class_list": "responsive span_2"
},
"children":[{
"type": "h3",
"direct": {"className": "translate"},
"attributes": {"data-i18n": "global_dict.advice"},
"logic":{"text": "Conseils & Astuces"}
}, {
"type": "img",
"direct": {"src": "img/website-Visuel-home2.png", "alt": ""},
}, {
"type": "a",
"direct": {"className": "light ui-btn ui-corner-all ui-icon-caret-r ui-btn-icon-right", "href": "#"},
"attributes": {"data-i18n": "global_dict.find_out_more"},
"logic": {"text":"En savoir plus"}
}]
}
]
}
]
}
\ No newline at end of file
}
]
}
{
"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"}
}]
}
]
}
{
"number_of_badges": {
"type":"ListField",
"widget": {
"id": "number_of_badges",
"title": "Number of badges",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.number_of_badges.title",
"description": "The number of badges ordered.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.number_of_badges.description",
"alternate_name": "number_of_badges",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getNumbers",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"requested_invoice_method": {
"type":"RadioField",
"widget": {
"id": "requested_invoice_method",
"title": "Requested Invoice Method",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.requested_invoice_method.title",
"description": "The requested invoice method.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.requested_invoice_method.description",
"alternate_name": "requested_invoice_method",
"css_class": null,
"hidden": null,
"items": "getInvoiceMethod",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"subscription_plan": {
"type":"RadioField",
"widget": {
"id": "subscription_plan",
"title": "Subscription Plan",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.subscription_plan.title",
"description": "The plan to subscribe",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.subscription_plan.description",
"alternate_name": "subscription_plan",
"css_class": null,
"hidden": null,
"items": "getInvoiceMethod",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"additional_badge_holders": {
"type":"ListField",
"widget": {
"id": "additional_badge_holders",
"title": "Additional Badge Holders (€2 each)",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.additional_badge_holders.title",
"description": "Number of additional badge holders in order to be able to use my badge in several vehicles.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.additional_badge_holders.description",
"alternate_name": "additional_badge_holders",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getNumbers",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"coupon_code": {
"type":"StringField",
"widget": {
"id": "coupon_code",
"title": "Coupon",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.coupon_code.title",
"description": "The field to confirm the password selected by the user.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.coupon_code.description",
"alternate_name": "coupon_code",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"_id": {
"type":"StringField",
"widget": {
"id": "_id",
"title": "ID",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict._id.title",
"description": "The _id of this sales order",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict._id.description",
"alternate_name": "_id",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"type_of_sales_order": {
"type":"RadioField",
"widget": {
"id": "type_of_sales_order",
"title": "Type of subscription",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.type_of_sales_order.title",
"description": "Indicator whether this is a private or professional subscription.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.type_of_sales_order.description",
"alternate_name": "type_of_sales_order",
"css_class": null,
"hidden": null,
"items": "getSubscriptionTypes",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"title": {
"type":"RadioField",
"widget": {
"id": "title",
"title": "Title",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.title.title",
"description": "The title of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.title.description",
"alternate_name": "title",
"css_class": null,
"hidden": null,
"items": "getTitles",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"last_name": {
"type":"StringField",
"widget": {
"id": "last_name",
"title": "Last name",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.last_name.title",
"description": "The last name of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.last_name.description",
"alternate_name": "last_name",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"first_name": {
"type":"StringField",
"widget": {
"id": "first_name",
"title": "ID",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.first_name.title",
"description": "The first name of this person",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.first_name.description",
"alternate_name": "first_name",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"dob_day": {
"type":"StringField",
"widget": {
"id": "dob_day",
"title": "ID",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_day.title",
"description": "The day this person was born.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_day.description",
"alternate_name": "dob_day",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": 2,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"dob_month": {
"type":"StringField",
"widget": {
"id": "dob_month",
"title": "ID",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_month.title",
"description": "The month this person was born",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_month.description",
"alternate_name": "dob_month",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": 2,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"dob_year": {
"type":"StringField",
"widget": {
"id": "dob_year",
"title": "ID",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_year.title",
"description": "The year this person was born.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.dob_year.description",
"alternate_name": "dob_year",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"default_email_text": {
"type":"EmailField",
"widget": {
"id": "default_email_text",
"title": "Email Address",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.default_email_text.title",
"description": "The email address of the person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.default_email_text.description",
"alternate_name": "default_email_text",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
},
"not_email": {
"message": "You did not enter an email address.",
"i18n": "validation_dict.not_email"
}
}
},
"default_email_confirm": {
"type":"EmailField",
"widget": {
"id": "default_email_confirm",
"title": "Email address (confirmation) ",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.default_email_confirm.title",
"description": "The confirmed email address of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.default_email_confirm.description",
"alternate_name": "default_email_confirm",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
},
"not_email": {
"message": "You did not enter an email address.",
"i18n": "validation_dict.not_email"
}
}
},
"country_code": {
"type":"ListField",
"widget": {
"id": "country_code",
"title": "International country code for cell phone (used to validate your subscription) ",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.country_code.title",
"description": "The country code of the person subscribing.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.country_code.description",
"alternate_name": "country_code",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getCountryCode",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"cell_phone": {
"type":"StringField",
"widget": {
"id": "cell_phone",
"title": "Cell phone number (used to validate your subscription)",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.cell_phone.title",
"description": "The cell phone number of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.cell_phone.description",
"alternate_name": "cell_phone",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"country_code_fix": {
"type":"ListField",
"widget": {
"id": "country_code_fix",
"title": "Landline international country code",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.country_code_fix.title",
"description": "The country code of the landline phone of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.country_code_fix.description",
"alternate_name": "country_code_fix",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getCountryCode",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"phone_fix": {
"type":"StringField",
"widget": {
"id": "phone_fix",
"title": "Landline number",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.phone_fix.title",
"description": "The landline phone number of this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.phone_fix.description",
"alternate_name": "phone_fix",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"address": {
"type":"StringField",
"widget": {
"id": "address",
"title": "Invoicing address (number and street name)",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.address.title",
"description": "The adress of this person",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.address.description",
"alternate_name": "address",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"address_appendix_1": {
"type":"StringField",
"widget": {
"id": "address_appendix_1",
"title": "Address 1 (Floor - stair - apartment) ",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_1.title",
"description": "Address Appendix 1 for this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_1.description",
"alternate_name": "address_appendix_1",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"address_appendix_2": {
"type":"StringField",
"widget": {
"id": "address_appendix_2",
"title": "Address 2 (Building - block - residence) ",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_2.title",
"description": "Address Appendix 2 for this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_2.description",
"alternate_name": "address_appendix_2",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"address_appendix_3": {
"type":"StringField",
"widget": {
"id": "address_appendix_3",
"title": "Address 3 (place name or PO Box) ",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_3.title",
"description": "Address Appendix 3 for this person.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.address_appendix_3.description",
"alternate_name": "address_appendix_3",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"country": {
"type":"ListField",
"widget": {
"id": "country",
"title": "Country",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.country.title",
"description": "The country the person lives in.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.country.description",
"alternate_name": "country",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getCountries",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"postcode": {
"type":"StringField",
"widget": {
"id": "postcode",
"title": "Postcode",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.postcode.title",
"description": "The postcode of the city the person lives in.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.postcode.description",
"alternate_name": "postcode",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"city": {
"type":"StringField",
"widget": {
"id": "city",
"title": "City",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.city.title",
"description": "The city this person lives in.",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.city.description",
"alternate_name": "city",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"preserve_whitespace": null,
"unicode": null,
"maximum_length": null,
"truncate": null
},
"message": {
"external_validator_failed": {
"message": "Password and confirm don't match.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_long": {
"message": "Too much input give.",
"i18n": "validation_dict.too_much_input"
}
}
},
"delivery_method": {
"type":"RadioField",
"widget": {
"id": "delivery_method",
"title": "Delivery method",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.delivery_method.title",
"description": "The delivery method for this sales order",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.delivery_method.description",
"alternate_name": "delivery_method",
"css_class": null,
"hidden": null,
"items": "getDeliveryMethods",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"delivery_address": {
"type":"RadioField",
"widget": {
"id": "delivery_address",
"title": "Select your delivery address",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.delivery_address.title",
"description": "The selected delivery address for this sales order",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.delivery_address.description",
"alternate_name": "delivery_address",
"css_class": null,
"hidden": null,
"items": "getDeliveryAddresses",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
},
"notification_language": {
"type":"ListField",
"widget": {
"id": "notification_language",
"title": "Select a language for notification messages",
"title_i18n": "portal_type_dict.sales_order_dict.field_dict.notification_language.title",
"description": "The selected language for all notifications",
"description_i18n": "portal_type_dict.sales_order_dict.field_dict.notification_language.description",
"alternate_name": "notification_language",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getLanguages",
"size": null,
"extra": null,
"extra_per_item": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"unicode": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required"
},
"unknown_selection": {
"message":"You selected on option not on the menu",
"i18n": "validation_dict.option_not_available"
}
}
}
}
\ No newline at end of file
{
"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