Commit e8c3654e authored by Sven Franck's avatar Sven Franck

data: updated bug posting (added fields)

parent 216de49b
{
"portal_type_source": "Bug Posting",
"portal_type_title": "bug_posting",
"initial_query": {"include_docs": true },
"property_dict": {
"no_content": true
},
"scheme": [],
"children": []
}
......@@ -3,9 +3,7 @@
"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,
......@@ -40,9 +38,7 @@
"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,
......@@ -77,9 +73,7 @@
"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,
......@@ -128,9 +122,7 @@
"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,
......@@ -177,9 +169,7 @@
"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,
......@@ -214,9 +204,7 @@
"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,
......@@ -251,9 +239,7 @@
"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,
......@@ -285,6 +271,79 @@
"i18n": "validation_dict.option_not_available"
}
}
},
"ticket_status": {
"type":"RadioField",
"widget": {
"id": "ticket_status",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.ticket_status.title",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.ticket_status.description",
"alternate_name": "ticket_status",
"css_class": null,
"default_value": null,
"hidden": null,
"items": "getStatus",
"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"
}
}
},
"bug_icon": {
"type":"StringField",
"widget": {
"id": "bug_icon",
"title_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_icon.title",
"description_i18n": "portal_type_dict.bug_posting_dict.field_dict.bug_icon.description",
"alternate_name": "bug_icon",
"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"
}
}
}
}
......@@ -4,7 +4,7 @@
"initial_query": {"include_docs": true, "limit":[0,1]},
"property_dict": {
"initial_query_url_identifier": "_id",
"allow_new": true,
"force_new": true,
"skip_total_records": true,
"submit_to": "#bug_report_module",
"wrap_gadget": 1
......@@ -16,7 +16,9 @@
{"field": "bug_priority"},
{"type": "hr", "direct": {"className": "ui-hr ui-hr-active"}},
{"field": "bug_filed_by_name"},
{"field": "bug_filed_by_email"}
{"field": "bug_filed_by_email"},
{"field": "bug_icon", "overrides": {"widget": {"hidden": true, "default_value": "bug"}}},
{"field": "ticket_status", "overrides": {"widget": {"hidden": true, "default_value": "open"}}}
]
}, {
"position": "right",
......
[]
\ No newline at end of file
[
{
"_id": "ticket001",
"bug_title": "Site does not load",
"bug_description": "When I open www.foo.bar, I don't see anything. \n How can this be?",
"bug_filed_by_name": "John Doe",
"bug_filed_by_email": "john@doe.com",
"bug_priority": "4",
"bug_created": "2014/04/10",
"bug_icon": "bug",
"ticket_status": "Open"
}
]
\ 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