Commit 5a35a491 authored by Sven Franck's avatar Sven Franck

data: add career step portal type and data

parent dbc86295
......@@ -111,30 +111,30 @@
}
},
"career_type": {
"type":"ListField",
"type":"RadioField",
"widget": {
"id": "career_type",
"title": "Career Step Type",
"title_i18n": "portal_type_dict.cv_dict.field_dict.career_type.title",
"title_i18n": "portal_type_dict.career_step_dict.field_dict.career_type.title",
"description": "The type of this career step.",
"description_i18n": "portal_type_dict.cv_dict.field_dict.career_type.description",
"description_i18n": "portal_type_dict.career_step_dict.field_dict.career_type.description",
"alternate_name": "career_type",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getStateOfTestPage",
"size": null,
"extra": null,
"extra_per_item": null
"items": "getCareerType",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"message": {
"messages": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
......@@ -213,7 +213,7 @@
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"required": true,
"start_datetime": null,
"end_datetime": null,
"allow_empty_datetime": null
......@@ -264,7 +264,7 @@
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"required": true,
"start_datetime": null,
"end_datetime": null,
"allow_empty_datetime": null
......@@ -289,7 +289,7 @@
}
},
"ongoing": {
"type":"RadioField",
"type":"CheckboxField",
"widget": {
"id": "ongoing",
"title": "Ongoing",
......@@ -299,7 +299,7 @@
"alternate_name": "ongoing",
"css_class": null,
"hidden": null,
"items": "getContentFormat",
"items": null,
"select_first_item": true,
"extra_per_item": null,
"extra": null
......@@ -332,9 +332,9 @@
"widget": {
"id": "career_description",
"title": "Description",
"title_i18n": "portal_type_dict.cv_dict.field_dict.career_description.title",
"title_i18n": "portal_type_dict.career_step_dict.field_dict.career_description.title",
"description": "The description of this career step.",
"description_i18n": "portal_type_dict.cv_dict.field_dict.career_description.description",
"description_i18n": "portal_type_dict.career_step_dict.field_dict.career_description.description",
"alternate_name": "career_description",
"css_class": null,
"hidden": null,
......@@ -346,7 +346,7 @@
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_lines": null,
......@@ -381,9 +381,9 @@
"widget": {
"id": "career_tags",
"title": "Tags",
"title_i18n": "portal_type_dict.cv_dict.field_dict.career_tags.title",
"title_i18n": "portal_type_dict.career_step_dict.field_dict.career_tags.title",
"description": "The tags associated with this career step.",
"description_i18n": "portal_type_dict.cv_dict.field_dict.career_tags.description",
"description_i18n": "portal_type_dict.career_step_dict.field_dict.career_tags.description",
"alternate_name": "career_tags",
"default_value": null,
"css_class": null,
......@@ -418,9 +418,9 @@
"widget": {
"id": "career_subordinate_id",
"title": "Related CV ID",
"title_i18n": "portal_type_dict.cv_dict.field_dict.career_subordinate_id.title",
"title_i18n": "portal_type_dict.career_step_dict.field_dict.career_subordinate_id.title",
"description": "The id of the CV this career step is associated to.",
"description_i18n": "portal_type_dict.cv_dict.field_dict.career_subordinate_id.description",
"description_i18n": "portal_type_dict.career_step_dict.field_dict.career_subordinate_id.description",
"alternate_name": "career_subordinate_id",
"default_value": null,
"css_class": null,
......
[
{
"_id": "step001",
"career_title": "Student",
"career_location": "Regensburg, Germany",
"career_company": "Elementary School Regensburg East",
"career_type": "education",
"date_started": "1984/09/15",
"date_ended": "1988/07/31",
"ongoing": null,
"career_description": "\nEveryone's gotta start somewhere.",
"career_tags": "Reading, Writing, Math",
"career_subordinate_id": "FOO"
}
]
\ No newline at end of file
{
"portal_type_source": "Career Step",
"portal_type_title": "career_step",
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"initial_query_url_identifier": "_id",
"force_new": true,
"wrap_gadget": 2
},
"scheme": [{
"position": "center",
"field_list": [
{"type": "input", "direct": {"name": "career_subordinate_id", "id":"career_subordinate_id", "className": "required"}, "attributes": {"data-enhanced": "true", "type": "hidden"}, "logic": {"setParam": [["value", "career_subordinate_id"]], "skip":false}},
{"field": "career_type"},
{"field": "career_title"},
{"field": "career_company"},
{"field": "career_location"},
{"type": "hr", "direct": {"className": "ui-hr ui-hr-active"}},
{"field": "date_started"},
{"field": "date_ended"},
{"field": "career_description"},
{"field": "career_tags"}
]
}
],
"children": [{
"generate": "widget",
"type": "form",
"property_dict": {
"class_list": "",
"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",
"persist": true
},
"children": [{
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-action":"update_custom", "data-icon":"carat-r", "data-theme": "active", "data-i18n":"[value]portal_type_dict.cv_dict.text_dict.save"}
}]
}]
}]
}
{
"portal_type_source": "Career Step",
"portal_type_title": "career_step",
"initial_query": {"include_docs": true, "limit":[0,8]},
"property_dict": {
"wrap_gadget": 2,
"initial_query_url_identifier": "_id"
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "date_started", "type": "span"},
{"type": "span", "direct": {}, "logic": {"text": "\u00A0-\u00A0" }},
{"field": "date_ended", "type": "span"}
]
},
{
"position": "center",
"field_list": [
{"field": "career_title", "type": "h3"},
{"field": "career_company", "type": "span"},
{"type": "span", "direct": {}, "logic": {"text": "\u00A0-\u00A0" }},
{"field": "career_location", "type": "span"},
{"field": "career_description", "type": "p"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"inset": true,
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
[
{"text": "Work Experience", "text_dict": "portal_type_dict.career_step_dict.text_dict.work", "class":"translate", "value":"work"},
{"text": "Education", "text_dict": "portal_type_dict.career_step_dict.text_dict.education", "class": "translate", "value": "education"}
]
\ 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