Commit 68410e5d authored by Sven Franck's avatar Sven Franck

data: added cv layout and missing fields

parent 1061ff38
......@@ -36,6 +36,94 @@
}
}
},
"cv_title": {
"type":"StringField",
"widget": {
"id": "cv_title",
"title": "ID",
"title_i18n": "portal_type_dict.cv_dict.field_dict.cv_title.title",
"description": "The title of this CV.",
"description_i18n": "portal_type_dict.cv_dict.field_dict.cv_title.description",
"alternate_name": "cv_title",
"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"
}
}
},
"cv_created": {
"type":"DateTimeField",
"widget": {
"id": "cv_created",
"title": "Date of birth (dd/mm/yyyy)",
"title_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.title",
"description": "The date this CV was created",
"description_i18n": "portal_type_dict.cv_dict.field_dict.cv_created.description",
"alternate_name": "cv_created",
"default_value": null,
"css_class": null,
"hidden": null,
"default_to_know": null,
"data_separator": null,
"time_separator": null,
"input_style": null,
"input_order": null,
"display_date_only": true,
"am_pm time style": null,
"display_timezone": null,
"hide_day": null,
"hidden_day_is_last_day_of_the_month": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"start_datetime": null,
"end_datetime": null,
"allow_empty_datetime": 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"
},
"not_datetime": {
"message": "You did not enter a valid date and time.",
"i18n": "validation_dict.not_valid_datetime"
},
"datetime_out_of_range": {
"message": "The date and time you entered were out of range.",
"i18n": "validation_dict.out_of_range_datetime"
}
}
},
"first_name": {
"type":"StringField",
"widget": {
......
......@@ -11,9 +11,31 @@
},
"view_dict": {
"default": [{
"type": "div",
"direct": {"className": "ui-content-element span_2"},
"children": [
{
"type": "p",
"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."}
}
]
}, {
"href": "cv_upload"
}]
}
}, {
"generate": "widget",
"type": "page",
"property_dict": {
"title": "Create CV",
"title_i18n": "portal_type_dict.cv_dict.text_dict.new_cv",
"theme": "slapos-white"
},
"view_dict": {
"default": []
}
}
]
}
\ No newline at end of file
[]
\ No newline at end of file
[
{
"_id": "FOO",
"cv_title": "Hello",
"cv_created": "2014/12/04"
}
]
\ No newline at end of file
{
"portal_type_source": "CV",
"portal_type_title": "cv",
"initial_query": {"include_docs": true, "limit": [0,1]},
"initial_query": {"include_docs": true, "limit":[0,8]},
"property_dict": {
"initial_query_url_identifier": "_id"
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
"check": true,
"caption": {
"slot": 2,
"text": "CVs generated",
"text_i18n": "portal_type_dict.cv_dict.text_dict.cv_generated"
},
"search": {
"slot": 1,
"text": "Filter",
"text_i18n": "portal_type_dict.cv_dict.text_dict.filter"
}
},
"children": []
}
\ No newline at end of file
"scheme": [
{
"position": "header",
"field_list": [
{"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"}}}
]
},{
"position": "body",
"field_list": [
{"field": "cv_title", "show": true, "persist": "true"},
{"field": "cv_created", "show": true, "priority": 2}
]
}
],
"children": [{
"generate": "widget",
"type": "table",
"property_dict": {
"dynamic": true,
"class_list": "table-stroke ui-responsive",
"map_children": "tableItem",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": []
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"class_list": "left"
},
"children": [
{
"type": "a",
"direct": {"className": "ui-btn ui-btn-icon-right ui-icon-edit translate ui-btn-active", "href": "#cv_module/"},
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.new_cv"},
"logic": {"text": "Create CV"}
}
]
}, {
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"direction": "horizontal",
"class_list": "right"
},
"children": [
{
"type": "a",
"direct": {"className": "ui-btn ui-btn-icon-right ui-icon-trash-o ui-disabled translate action responsive", "href": "#"},
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.delete_cv", "data-action": "delete"},
"logic": {"text": "Delete"}
},
{
"type": "a",
"direct": {"className": "ui-btn ui-btn-icon-right ui-icon-print ui-disabled translate action responsive", "href": "#"},
"attributes": {"data-i18n": "portal_type_dict.cv_dict.text_dict.print_cv", "data-action": "print"},
"logic": {"text": "Print"}
}
]
}]
}
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