Commit 8467afee authored by Sven Franck's avatar Sven Franck

data: add/update CV portal type fields and layout

parent 5a35a491
{ {
"portal_type_source": "CV", "portal_type_source": "CV",
"portal_type_title": "cv", "portal_type_title": "cv",
"initial_query": {"include_docs": true, "limit":[0,8]}, "initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": { "property_dict": {
"initial_query_url_identifier": "_id", "initial_query_url_identifier": "_id",
"allow_new": true, "allow_new": true,
"skip_total_records": true "skip_total_records": true,
"submit_to": "#cv_module/career&query:career_subordinate_id=__id__"
}, },
"scheme": [{ "scheme": [{
"position": "left", "position": "left",
...@@ -14,13 +15,13 @@ ...@@ -14,13 +15,13 @@
{"field": "last_name"}, {"field": "last_name"},
{"field": "phone_number"}, {"field": "phone_number"},
{"field": "email"}, {"field": "email"},
{"type": "hr", "direct": {"className": "ui-bar-active"}}, {"type": "hr", "direct": {"className": "ui-hr ui-hr-active"}},
{"field": "street_address"}, {"field": "street_address"},
{"field": "postal_code", "overrides": {"widget":{"css_class": "left", "title": "Zip/City", "title_i18n":null}}}, {"field": "postal_code", "overrides": {"widget":{"css_class": "left", "title": "Zip/City", "title_i18n":null}}},
{"field": "city", "overrides": {"widgt": {"css_class": "right"}, "label": false}}, {"field": "city", "overrides": {"widgt": {"css_class": "right"}, "label": false}},
{"field": "state"}, {"field": "state"},
{"field": "country"}, {"field": "country"},
{"type": "hr", "direct": {"className": "ui-bar-active"}}, {"type": "hr", "direct": {"className": "ui-hr ui-hr-active"}},
{"field": "nationality"}, {"field": "nationality"},
{"field": "date_of_birth"} {"field": "date_of_birth"}
] ]
...@@ -29,11 +30,7 @@ ...@@ -29,11 +30,7 @@
"field_list": [ "field_list": [
{"field": "cv_title"}, {"field": "cv_title"},
{"field": "cv_created", "overrides":{"widget": {"hidden": true}}}, {"field": "cv_created", "overrides":{"widget": {"hidden": true}}},
{"field": "cv_photo_url", "type": "image"} {"field": "cv_photo_url", "type": "image"},
]
}, {
"position": "center",
"field_list": [
{"field": "cv_personal_statement"}, {"field": "cv_personal_statement"},
{"field": "cv_taglist"}, {"field": "cv_taglist"},
{"field": "cv_techlist"} {"field": "cv_techlist"}
...@@ -60,9 +57,13 @@ ...@@ -60,9 +57,13 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [{ "children": [{
"type": "a",
"direct": {"href": "#", "className": "translate ui-disabled ui-btn ui-btn-icon-left ui-icon-carat-l"},
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.back"}
}, {
"type": "input", "type": "input",
"direct": {"value": "Submit", "className": "action translate"}, "direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-action":"update", "data-icon":"save", "data-i18n":"[value]portal_type_dict.cv_dict.text_dict.save"} "attributes": {"type": "submit", "data-action":"update", "data-icon":"carat-r", "data-theme": "active", "data-i18n":"[value]portal_type_dict.cv_dict.text_dict.proceed_career"}
}] }]
}] }]
}] }]
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
"type":"DateTimeField", "type":"DateTimeField",
"widget": { "widget": {
"id": "cv_created", "id": "cv_created",
"title": "Date of birth (dd/mm/yyyy)", "title": "Created",
"title_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.title", "title_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.title",
"description": "The date this CV was created", "description": "The date this CV was created",
"description_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.description", "description_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.description",
......
...@@ -12,13 +12,16 @@ ...@@ -12,13 +12,16 @@
"view_dict": { "view_dict": {
"default": [{ "default": [{
"type": "div", "type": "div",
"direct": {"className": "ui-content-element span_2"}, "direct": {"className": "span_2"},
"children": [ "children": [{
{ "type": "div",
"type": "p", "direct": {"className": "ui-content-element"},
"direct": {"className": "translate"}, "children": [{
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.info"}, "type": "p",
"logic": {"text": "This is the area to manage your CVs. You can upload, edit and delete multiple CVs. To apply for a job, please click on the 'Apply' button on the respective job offer."} "direct": {"className": "translate"},
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.info"},
"logic": {"text": "This is the area to manage your CVs. You can upload, edit and delete multiple CVs. To apply for a job, please click on the 'Apply' button on the respective job offer."}
}]
} }
] ]
}, { }, {
...@@ -39,6 +42,11 @@ ...@@ -39,6 +42,11 @@
}], }],
"new": [{ "new": [{
"href": "cv_creation" "href": "cv_creation"
}],
"career": [{
"href": "cv_career"
}, {
"href": "cv_step_overview"
}] }]
} }
} }
......
[ [
{ {
"_id": "FOO", "_id": "FOO",
"cv_title": "Hello", "cv_title": "Sample CV",
"cv_created": "2014/12/04" "cv_created": "2014/12/04",
"first_name": "John",
"last_name": "Doe",
"date_of_birth": "1972/10/12",
"phone_number": "+33 6 12 34 56",
"email": "john.doe@some.where",
"street_address": "\n86, Avenue de Test\nAppt.33",
"city": "Lille",
"state": null,
"postal_code": "12345",
"country": "f",
"nationality": "f",
"cv_photo_url": null,
"cv_taglist": "javascript, jquery, jquerymobile",
"cv_personal_statement": "Programming anything that starts with a 'j'...",
"cv_techlist": "java, javascript"
} }
] ]
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
"position": "header", "position": "header",
"field_list": [ "field_list": [
{"field": "cv_title", "show": true, "persist": true}, {"field": "cv_title", "show": true, "persist": true},
{"field": "cv_created", "show": true, "priority": 2, "overrides": {"widget": {"title": "Goo", "title_i18n": "portal_type_dict.cv_dict.text_dict.date_set"}}} {"field": "cv_created", "show": true, "priority": 2, "overrides": {"widget": {"title_i18n": "portal_type_dict.cv_dict.text_dict.date_set"}}}
] ]
},{ },{
"position": "body", "position": "body",
......
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