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 },
......
This diff is collapsed.
{
"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