Commit 8d40911e authored by Sven Franck's avatar Sven Franck

added test page module

parent 8b62be9d
......@@ -123,6 +123,17 @@
{"type": "item", "href": "#help", "left": {"icon":"question"}, "center": {"text": [{"type": "h1", "text": "Help", "text_i18n": "global_dict.help"},{"type": "p", "text": "Contact Customer Support", "text_i18n": "global_dict.help_subtitle"}]}},
{"type": "item", "href": "#about", "left": {"icon": "book"}, "center": {"text": [{"type": "h1", "text": "About", "text_i18n": "global_dict.about"}, {"type": "p", "text": "Request further information", "text_i18n": "global_dict.about_subtitle"}]}}
]
}, {
"generate": "widget",
"type": "listview",
"class_list": null,
"theme": "slapos-black",
"form": null,
"property_dict": {},
"children": [
{"type": "divider", "center": {"text": [{"type": "h1", "text": "Development", "text_i18n":"global_dict.dev"}]}},
{"type": "item", "href": "#test_page_module", "left": {"icon": "dashboard"}, "center": {"text": [{"type": "h1", "text": "Test", "text_i18n": "global_dict.test"}, {"type": "p", "text": "Test Environment", "text_i18n": "global_dict.test_environment"}]}}
]
}, {
"type": "a",
"direct": {"className": "unenhanced ui-btn", "href":"http://nexedi.com", "external": true },
......
{
"reference": {
"type":"StringField",
"widget": {
"id": "reference",
"title": "Reference",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.reference.title",
"description": "The reference for this test page.",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.reference.description",
"alternate_name": "reference",
"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": null,
"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"
}
}
},
"short_title": {
"type":"StringField",
"widget": {
"id": "short_title",
"title": "Short Title",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.short_title.title",
"description": "The short title of this test page",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.short_title.description",
"alternate_name": "short_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": null,
"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"
}
}
},
"title": {
"type":"StringField",
"widget": {
"id": "title",
"title": "Title",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.title.title",
"description": "The title of this test page",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.title.description",
"alternate_name": "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": null,
"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"
}
}
},
"description": {
"type":"TextareaField",
"widget": {
"id": "description",
"title": "Description",
"title_i18n": "portal_type_dict.person_dict.field_dict.description.title",
"description": "The description of this test page.",
"description_i18n": "portal_type_dict.person_dict.field_dict.description.description",
"alternate_name": "description",
"css_class": null,
"hidden": null,
"width":null,
"height":null,
"extra":null
},
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
"required": null,
"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"
}
}
},
"version": {
"type":"StringField",
"widget": {
"id": "version",
"title": "Version",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.version.title",
"description": "The version of this test page",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.version.description",
"alternate_name": "version",
"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": null,
"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"
}
}
},
"language": {
"type":"StringField",
"widget": {
"id": "language",
"title": "Language",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.language.title",
"description": "The language of this test page",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.language.description",
"alternate_name": "language",
"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": null,
"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"
}
}
},
"_id": {
"type":"StringField",
"widget": {
"id": "_id",
"title": "ID",
"title_i18n": "portal_type_dict.test_page_dict.field_dict._id.title",
"description": "The _id of this test page",
"description_i18n": "portal_type_dict.test_page_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": null,
"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"
}
}
},
"sort": {
"type":"StringField",
"widget": {
"id": "sort",
"title": "ID",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.sort.title",
"description": "The sorting criteria? of this test page",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.sort.description",
"alternate_name": "sort",
"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": null,
"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"
}
}
},
"index": {
"type":"IntegerField",
"widget": {
"id": "index",
"title": "Index",
"title_i18n": "portal_type_dict.test_page_dict.field_dict.index.title",
"description": "The index of this test page.",
"description_i18n": "portal_type_dict.test_page_dict.field_dict.index.description",
"alternate_name": "index",
"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,
"start": null,
"end": 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"
},
"not_integer": {
"message": "You did not enter an integer",
"i18n": "validation_dict.no_integer"
},
"integer_out_of_range": {
"message": "The integer you entered is out of range.",
"i18n": "validation_dict.out_of_range"
}
}
},
"state": {
"type":"ListField",
"widget": {
"id": "state",
"title": "State",
"title_i18n": "portal_type_dict.person_dict.field_dict.state.title",
"description": "The state of this test page.",
"description_i18n": "portal_type_dict.person_dict.field_dict.state.description",
"alternate_name": "state",
"default_value": null,
"css_class": null,
"hidden": null,
"items": null,
"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"
}
}
}
}
\ No newline at end of file
{
"generate": "gadget",
"type": "pageIndex",
"property_dict": {},
"children": [
{
"generate": "widget",
"type": "page",
"title": "Test Page Module",
"title_i18n": "portal_type_dict.test_page_dict.text_dict.title",
"theme": "slapos-white",
"view_dict": {
"default": [{
"generate": "gadget",
"type": "listbox",
"href": "test_page_overview"
}
]
}
}
]
}
{
"portal_type_source": "Test Page",
"portal_type_title": "test",
"portal_type_fields": "test_page_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "web_view",
"property_dict": {
"dynamic_children": [1],
"requires_authentication": true,
"depends_on": "login_state",
"wrap_gadget": 2,
"link": true,
"link_identifier": "_id",
"caption": {
"slot": 1,
"text": "Test Page Overview",
"text_i18n": "portal_type_dict.test_page_dict.text_dict.overview"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.test_page_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.test_page_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.test_page_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.test_page_dict.text_dict.64"}
]
},
"no_items": {
"message": "No person found.",
"message_i18n": "portal_type_dict.test_page_dict.text_dict.empty"
},
"search": {
"text": "Search Test Pages",
"text_i18n": "portal_type_dict.test_page_dict.text_dict.search",
"info_list": ["records", "filter", "selected"]
},
"allow_new": true
},
"scheme": [
{
"position": "header",
"fieldlist": [
{"field": "_id", "show": true, "priority": 7},
{"field": "reference", "show": true, "priority": 6},
{"field": "short_title", "show": true, "priority": 6},
{"field": "title", "custom": true, "show": true, "persist": true, "text": "Long Title", "text_i18n":"portal_type_dict.test_page_dict.text_dict.long_title" },
{"field": "description", "show": true, "priority": 3},
{"field": "version", "show": true, "priority": 2},
{"field": "language", "show": true, "priority": 6},
{"field": "index", "show": true, "priority": 2},
{"field": "sort", "show": true, "priority": 6}
]
},{
"position": "body",
"fieldlist": [
{"field": "_id", "show": true, "priority": 7},
{"field": "reference", "show": true, "priority": 6},
{"field": "short_title", "show": true, "priority": 6},
{"field": "title", "show": true, "persist": true},
{"field": "description", "show": true, "priority": 3},
{"field": "version", "show": true, "priority": 2},
{"field": "language", "show": true, "priority": 6},
{"field": "index", "show": true, "priority": 2},
{"field": "sort", "show": true, "priority": 6}
]
}
],
"children": [{
"type": "a",
"direct": {"className":"translate ui-btn ui-icon-edit ui-btn-icon-left ui-corner-all ui-btn-inline ui-btn-slapos-black ui-link", "href": "#test_page/new"},
"attributes": {
"data-i18n": "[value]portal_type_dict.test_page_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"Add a test page"}
}, {
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": []
}]
}
{
"global_dict": {
"dev": "Developemnt",
"test": "Test",
"test_environment": "UI test environment",
"classic_login": "Or use the default login form",
"classic_slapos": "Login/Password",
"connection_status": "Connection",
......@@ -421,6 +424,62 @@
}
}
},
"test_page_dict": {
"text_dict": {
"title": "Test Page Module",
"8":"8",
"16": "16",
"32": "32",
"64": "64",
"overview": "Test Page Overview",
"empty": "No test pages found",
"search": "(I don't work but I should...) Search Test Pages.",
"long_title": "Long Title",
"add": "Add a new test page"
},
"field_dict": {
"reference": {
"title": "Reference",
"description": "The reference for this test page."
},
"title": {
"title": "Title",
"description": "The title of this test page."
},
"short_title": {
"title": "Short Title",
"description": "The short title of this test page."
},
"description": {
"title": "Description",
"description": "The description of this test page."
},
"version": {
"title": "Version",
"description": "The version of this test page."
},
"sort": {
"title": "Sort",
"description": "The sorting criteria? of this test page."
},
"language": {
"title": "Language",
"description": "The language of this test page."
},
"index": {
"title": "Index",
"description": "The index of this test page."
},
"state": {
"title": "State",
"description": "The state of this test page."
},
"_id": {
"title": "ID",
"description": "The id of this test page."
}
}
},
"person_dict": {
"text_dict": {
"noperson": "No person found",
......
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