Commit 519a23cb authored by Sven Franck's avatar Sven Franck

data: added application portal type and lookup options

parent d833cdac
{
"_id": {
"type":"StringField",
"widget": {
"id": "_id",
"title": "ID",
"title_i18n": "portal_type_dict.application_dict.field_dict._id.title",
"description": "The id of this application",
"description_i18n": "portal_type_dict.application_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"
}
}
},
"job_subordinate_id": {
"type":"StringField",
"widget": {
"id": "job_subordinate_id",
"title": "Job applied for",
"title_i18n": "portal_type_dict.application_dict.field_dict.job_subordinate_id.title",
"description": "The job this application belongs to.",
"description_i18n": "portal_type_dict.application_dict.field_dict.job_subordinate_id.description",
"alternate_name": "job_subordinate_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"
}
}
},
"job_subordinate_id": {
"type":"RelationStringField",
"widget": {
"id": "job_subordinate_id",
"title": "About",
"title_i18n": "portal_type_dict.application_dict.field_dict.job_subordinate_id.title",
"description": "The job this application is for.",
"description_i18n": "portal_type_dict.application_dict.field_dict.job_subordinate_id.description",
"alternate_name": "job_subordinate_id",
"default_value": null,
"css_class": null,
"hidden": null,
"display_width": null,
"display_maxwidth": null,
"maximum_input": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"maximum_length": null,
"first_item": null,
"extra_item": null,
"external_validator": null,
"items": null,
"list_method": null,
"jump_method": null,
"max_length": null,
"max_linelength": null,
"max_lines": null,
"parameter_list": null,
"portal_type": null,
"catalog_index": null,
"base_category": null,
"allow_jump": null,
"allow_creation": null,
"columns": null,
"container_getter_id": null,
"relation_setter_id": null,
"required": true,
"size": 1,
"sort": null,
"truncate": null,
"unicode": null,
"preserve_whitespace": 0,
"update_method": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external_validator_failed"
},
"line_too_long": {
"message": "A line was too long.",
"i18n": "validation_dict.line_too_long"
},
"relation_result_ambiguous": {
"message": "Relation_result_ambiguous.",
"i18n": "validation_dict.relation_result_ambiguous"
},
"relation_result_ambiguous": {
"message": "Select appropriate document in the list.",
"i18n": "validation_dict.relation_result_ambiguous"
},
"relation_result_empty": {
"message": "No such document was found.",
"i18n": "validation_dict.relation_result_empty"
},
"relation_result_too_long": {
"message": "Too many documents were found.",
"i18n": "validation_dict.relation_result_too_long"
},
"required_not_found": {
"message": "Input is required but no input given.",
"i18n": "validation_dict.required_not_found"
},
"too_long": {
"message": "You entered too many characters.",
"i18n": "validation_dict.too_long"
},
"too_many_lines": {
"message": "You entered too many lines.",
"i18n": "validation_dict.too_many_lines"
}
}
},
"cv_subordinate_id": {
"type":"ListField",
"widget": {
"id": "cv_subordinate_id",
"title": "CV",
"title_i18n": "portal_type_dict.application_dict.field_dict.cv_subordinate_id.title",
"description": "The CV that was sent for this application.",
"description_i18n": "portal_type_dict.application_dict.field_dict.cv_subordinate_id.description",
"alternate_name": "cv_subordinate_id",
"default_value": null,
"css_class": null,
"hidden": null,
"items": "getCV",
"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"
}
}
}
}
{
"portal_type_source": "Application",
"portal_type_title": "application",
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"force_new": true,
"submit_to": "#home",
"wrap_gadget": 1
},
"scheme": [{
"position": "center",
"field_list": [
{"type": "input", "direct": {"className": "ui-disabled", "name": "job_subordinate_id", "id":"job_subordinate_id", "className": "required"}, "attributes": {"type": "text", "data-enhanced": "true"}, "logic": {"label": "Application Job ID", "label_i18n": "portal_type_dict.application_dict.text_dict.apply_for", "setParam": [["value", "job_subordinate_id"]], "skip":false, "wrap": true}},
{"field": "cv_subordinate_id", "overrides": {"properties": {"required": true}}}
]
}
],
"children": [{
"type": "div",
"direct": {"className": "span_1"},
"children":[{
"type": "p",
"direct": {"className":"ui-content-element translate"},
"attributes": {"data-i18n": "portal_type_dict.application_dict.text_dict.instruction"}
}]
}, {
"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": "a",
"direct": {"href": "#home", "className": "translate ui-btn ui-btn-icon-left ui-icon-ban"},
"attributes": {"data-i18n": "portal_type_dict.application_dict.text_dict.cancel"}
}, {
"type": "a",
"direct": {"href": "#cv_module/new", "className": "translate ui-btn ui-btn-icon-left ui-icon-clipboard"},
"attributes": {"data-i18n": "portal_type_dict.application_dict.text_dict.new"}
}, {
"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.application_dict.text_dict.apply"}
}]
}]
}]
}
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"title": "Apply for a Job",
"title_i18n": "portal_type_dict.application_dict.text_dict.apply",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "application_manager"}
]
}
}
]
}
[
{
"_id": "Application_001",
"job_subordinate_id": "job001",
"cv_subordinate_id": "FOO"
}
]
\ No newline at end of file
[
{"text": "", "text_dict": null, "value": "", "disabled": "disabled", "selected": "selected"},
{"text": "Hello", "text_i18n": "global_dict.foo", "value":"FOO"}
]
\ 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