Commit de753b0b authored by Sven Franck's avatar Sven Franck

data: change layout of form, add info field inside form

parent 7eb544f0
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
{"field": "first_name"}, {"field": "first_name"},
{"custom": true, "wrap": true, "type": "input", "direct": {"id": "dob", "name": "dob", "className": "translate required"}, "attributes": {"type": "text"}, "logic":{"clear": true, "title_i18n": "", "label_i18n":"portal_type_dict.sales_order_dict.text_dict.dob", "label": "Date de naissance (JJ/MM/AAAA)"}}, {"custom": true, "wrap": true, "type": "input", "direct": {"id": "dob", "name": "dob", "className": "translate required"}, "attributes": {"type": "text"}, "logic":{"clear": true, "title_i18n": "", "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_text"},
{"field": "default_email_confirm"}, {"field": "default_email_confirm"}
{"field": "delivery_method"},
{"field": "delivery_address"},
{"field": "notification_language"}
] ]
}, { }, {
"position": "right", "position": "right",
...@@ -37,6 +34,13 @@ ...@@ -37,6 +34,13 @@
{"field": "postcode"}, {"field": "postcode"},
{"field": "city"} {"field": "city"}
] ]
}, {
"position": "left",
"field_list": [
{"field": "delivery_method"},
{"field": "delivery_address"},
{"field": "notification_language"}
]
} }
], ],
"children": [{ "children": [{
...@@ -77,23 +81,9 @@ ...@@ -77,23 +81,9 @@
"secret_hash": "foo", "secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA" "public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
}, },
"children": [ "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-carat-l"}, "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.retour"}},
{"type": "input", "direct": {"className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-iconpos": "right", "data-theme": "active", "data-icon":"carat-r", "data-i18n":"[value]global_dict.proceed"}}
]
}
]
},{
"type": "div", "type": "div",
"direct": {"className": "ui-content-element"}, "direct": {"className": "span_2 custom_advantage ui-content-element"},
"children": [{ "children": [{
"type": "h3", "type": "h3",
"direct": {"className": "translate"}, "direct": {"className": "translate"},
...@@ -123,6 +113,19 @@ ...@@ -123,6 +113,19 @@
"direct": {"href":"#", "className": "translate ui-btn ui-icon-medkit ui-corner-all ui-btn-icon-right"}, "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"} "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.help"}
}] }]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"class_list": "center",
"direction": "horizontal"
},
"children": [
{"type": "a", "direct": {"href": "#subscription", "className": "translate ui-btn ui-btn-icon-left ui-icon-carat-l"}, "attributes": {"data-i18n": "portal_type_dict.sales_order_dict.text_dict.retour"}},
{"type": "input", "direct": {"className": "action translate"}, "attributes": {"type": "submit", "data-action":"update", "data-iconpos": "right", "data-theme": "active", "data-icon":"carat-r", "data-i18n":"[value]global_dict.proceed"}, "logic": {"wrapper_class_list": " ui-last-child "}}
]
}
]
} }
] ]
} }
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