Commit 2acfcfb6 authored by Sven Franck's avatar Sven Franck

data: added bug posting module and layout

parent b1dbdbaf
{
"_id": {
"type":"StringField",
"widget": {
"id": "_id",
"title": "ID",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict._id.title",
"description": "The id of this ticket.",
"description_i18n": "portal_type_dict.bug_posting_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"
}
}
},
"bug_title": {
"type":"StringField",
"widget": {
"id": "bug_title",
"title": "Ticket Title",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_title.title",
"description": "The title of this bug.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_title.description",
"alternate_name": "bug_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"
}
}
},
"bug_created": {
"type":"DateTimeField",
"widget": {
"id": "bug_created",
"title": "Created",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_created.title",
"description": "The date this ticket was filed.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_created.description",
"alternate_name": "bug_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"
}
}
},
"bug_description": {
"type":"TextareaField",
"widget": {
"id": "bug_description",
"title": "Ticket Description",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_description.title",
"description": "The description of this bug.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_description.description",
"alternate_name": "bug_description",
"css_class": null,
"hidden": null,
"width":null,
"height":null,
"extra":null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null,
"maximum_lines": null,
"maximum_length_of_line": null,
"maximum_characters": null
},
"message": {
"external_validator_failed": {
"message": "The input failed the external validator.",
"i18n": "validation_dict.external"
},
"required_not_found": {
"message": "Input required but not found.",
"i18n": "validation_dict.required"
},
"too_many_lines": {
"message": "You have entered too many lines.",
"i18n": "validation_dict.too_many_lines"
},
"line_too_long": {
"message": "One or more lines you have entered are too long.",
"i18n": "validation_dict.too_long_lines"
},
"too_long": {
"message": "You have entered too many characters.",
"i18n": "validation_dict.too_many_chars"
}
}
},
"bug_filed_by_name": {
"type":"StringField",
"widget": {
"id": "bug_filed_by_name",
"title": "Filed by",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_filed_by_name.title",
"description": "The person who filed this bug.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_filed_by_name.description",
"alternate_name": "bug_filed_by_name",
"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"
}
}
},
"bug_filed_by_email": {
"type":"StringField",
"widget": {
"id": "bug_filed_by_email",
"title": "Contact Email",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_filed_by_email.title",
"description": "The email address of the person who filed the bug.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_filed_by_email.description",
"alternate_name": "bug_filed_by_email",
"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"
}
}
},
"bug_priority": {
"type":"RadioField",
"widget": {
"id": "bug_priority",
"title": "Priority",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_priority.title",
"description": "The priority of this bug.",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_priority.description",
"alternate_name": "bug_priority",
"css_class": null,
"hidden": null,
"items": "getPriorities",
"select_first_item": true,
"extra_per_item": null,
"extra": null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": true,
"preserve_whitespace": null,
"unicode": null
},
"messages": {
"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": "Bug Posting",
"portal_type_title": "bug_posting",
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"initial_query_url_identifier": "_id",
"allow_new": true,
"skip_total_records": true,
"submit_to": "#bug_report_module",
"wrap_gadget": 1
},
"scheme": [{
"position": "left",
"field_list": [
{"field": "bug_title"},
{"field": "bug_priority"},
{"type": "hr", "direct": {"className": "ui-hr ui-hr-active"}},
{"field": "bug_filed_by_name"},
{"field": "bug_filed_by_email"}
]
}, {
"position": "right",
"field_list": [
{"field": "bug_description"}
]
}
],
"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"
},
"children": [{
"type": "a",
"direct": {"href": "#home", "className": "translate ui-btn ui-btn-icon-left ui-icon-carat-l"},
"attributes": {"data-i18n": "portal_type_dict.bug_posting_dict.text_dict.back"}
}, {
"type": "input",
"direct": {"className": "action translate"},
"attributes": {"type": "submit", "data-action":"update", "data-iconpos": "right", "data-icon":"bell-o", "data-theme": "active", "data-i18n":"[value]portal_type_dict.bug_posting_dict.text_dict.submit"}
}]
}]
}]
}
{
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.bug_posting_dict.text_dict.post_a_bug",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "bug_posting_file"}
]
}
}
]
}
[]
\ No newline at end of file
[
{"text_i18n": "global_dict.urgent", "value":"4"},
{"text_i18n": "global_dict.moderate", "value":"3"},
{"text_i18n": "global_dict.low", "value":"2"},
{"text_i18n": "global_dict.none", "value":"1"}
]
\ 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