Commit df0e3a5b authored by Sven Franck's avatar Sven Franck

fixed i18n bugs in JSON config, added computer/servers JSON

parent cc3a951c
This diff is collapsed.
{
"portal_type_source": "Computer",
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[]},
"placeholder_dict": {
"no_items": {
"text":"No items found.",
"text_i18n":"validation_dict.no_items_found",
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [
{
"type": "a",
"direct": {
"href":"#",
"className": "translate "
},
"attributes": {
"data-icon":"chevron-sign-left",
"data-i18n":"global_dict.pagination_dict.back"
},
"logic": {"Text": "Back"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#servers::new"},
"attributes": {
"data-i18n": "page_dict.servers.create",
"data-icon": "edit"
},
"logic": {"text":"Create instance"}
}]
}]
},
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct":{"className":"translate action", "href":"#global-popup"},
"attributes":{
"data-i18n":"global_dict.common_dict.login",
"data-action":"login",
"data-icon":"lock",
"data-rel": "popup"
},
"logic": {"text":"Login"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "global_dict.common_dict.register",
"data-icon": "edit"
},
"logic": {"text":"Register"}
}
]
}
]
}
},
"form": true,
"id": "computer_overview",
"property_dict": {
"initial_query_url_identifier": "computer_reference",
"dynamic_children": [1],
"wrap_gadget": 2,
"layout": {
"header": [
[
{"column": "computer_status", "show": true, "priority": 5},
{"column": "computer_title", "show": true, "priority": 5},
{"column": "computer_reference", "show": true, "priority": 5},
{"column": "computer_translated_validation_state_title", "show": "true", "priority": 3}
]
],
"body": [
{"column": "computer_status", "show": true, "priority": 5},
{"column": "computer_title", "show": true, "priority": 5},
{"column": "computer_reference", "show": true, "priority": 5},
{"column": "computer_translated_validation_state_title", "show": "true", "priority": 3}],
"footer": []
},
"feature_dict": {
"linkable": true,
"link_identifier": null,
"editable": null
}
},
"children": [{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 1},
"children": [{"type": "input", "direct": {"id":"search_computer_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.servers.search","placeholder":"Search created servers", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}}]
},{
"generate": "widget",
"type": "table",
"class_list": "table-stroke ui-responsive",
"property_dict": {
"filter": "true",
"input": "#search_computer_list",
"mode": "columntoggle",
"toggle_popup": false,
"wrap": "both",
"top_grid": 1,
"bottom_grid": 1
},
"children": []
}]
}
[]
\ No newline at end of file
{
"portal_type_source": "Computer",
"portal_type_title": "computer",
"portal_type_fields": "computer_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,1]},
"form": true,
"id": "computer_sample",
"property_dict": {
"dynamic_children": [0],
"requires_authentication": true
},
"children": [{
"generate": "widget",
"type": "form",
"class_list": "responsive",
"property_dict": {
"editable": true,
"secure": "default",
"secret_hash": "foo",
"public_key": "6Ldpb-oSAAAAAGwriKpk4ol1n4yjN_as6M4xv0zA"
},
"children": [{
"generate": "widget",
"type": "controlgroup",
"class_list": "center",
"property_dict": {
"direction": "horizontal"
},
"children": [
{"type": "input", "direct": {"value": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]global_dict.common_dict.cancel"}},
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"add", "data-i18n":"[value]global_dict.common_dict.submit", "data-theme": "slapos-black"}}
]
}],
"layout": [
{
"position": "left",
"fieldlist": [
{"title": "computer_title"},
{"title": "computer_reference"},
{"title": "computer_region"},
{"title": "computer_group"},
{"title": "computer_translated_validation_state_title"}
]
},{
"position": "right",
"fieldlist": [
{"title": "computer_cpu_core"},
{"title": "computer_cpu_frequency"},
{"title": "computer_cpu_type"},
{"title": "computer_memory_size"},
{"title": "computer_memory_type"}
]
}, {
"position": "left",
"fieldlist": [
{"title": "computer_storage_capacity"},
{"title": "computer_storage_interface"},
{"title": "computer_storage_redundancy"},
{"title": "computer_storage_technology"}
]
},{
"position": "right",
"fieldlist": [
{"title": "computer_wide_area_network_type"},
{"title": "computer_local_area_network_type"},
{"title": "computer_default_network_address_netmask"},
{"title": "computer_default_network_address_ip_address"},
{"title": "computer_default_network_address_host_name"}
]
}, {
"position": "center",
"fieldlist": [
{"title": "computer_description"}
]
}
]
}
],
"placeholder_dict": {
"no_items": {
"text":"No items found.",
"text_i18n":"validation_dict.no_items_found",
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [
{
"type": "a",
"direct": {
"href":"#",
"className": "translate "
},
"attributes": {
"data-icon":"chevron-sign-left",
"data-i18n":"global_dict.pagination_dict.back"
},
"logic": {"Text": "Back"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "page_dict.person.create",
"data-icon": "edit"
},
"logic": {"text":"Create person"}
}]
}]
},
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct":{"className":"translate action", "href":"#global-popup"},
"attributes":{
"data-i18n":"global_dict.common_dict.login",
"data-action":"login",
"data-icon":"lock",
"data-rel": "popup"
},
"logic": {"text":"Login"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "page_dict.person.register",
"data-icon": "edit"
},
"logic": {"text":"Register"}
}
]
}
]
}
}
}
......@@ -68,7 +68,7 @@
"input_style": null,
"precision": null
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......@@ -109,7 +109,7 @@
"extra_per_item": null,
"extra": null
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......@@ -148,7 +148,7 @@
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......@@ -189,7 +189,7 @@
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......@@ -230,7 +230,7 @@
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......@@ -271,7 +271,7 @@
"maximum_input": null,
"extra": {"data-clear-btn":"true"}
},
"validator": {
"properties": {
"enabled": true,
"editable": true,
"external_validator": null,
......
......@@ -17,6 +17,21 @@
"href": "person_view"
}
]
},
{
"generate": "widget",
"type": "page",
"title": "Register",
"title_i18n": "page_dict.person.register",
"theme":"slapos-white",
"children":[
{
"generate": "gadget",
"type": "fieldlist",
"id": "person_view",
"href": "person_view"
}
]
}
]
}
......@@ -73,5 +73,68 @@
}
]
}
],
"placeholder_dict": {
"no_items": {
"text":"No items found.",
"text_i18n":"validation_dict.no_items_found",
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [
{
"type": "a",
"direct": {
"href":"#",
"className": "translate "
},
"attributes": {
"data-icon":"chevron-sign-left",
"data-i18n":"global_dict.pagination_dict.back"
},
"logic": {"Text": "Back"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "page_dict.person.create",
"data-icon": "edit"
},
"logic": {"text":"Create person"}
}]
}]
},
"no_auth": {
"text":"Requires authorization.",
"text_i18n":"validation_dict.requires_auth",
"children": [
{
"generate": "widget",
"type": "controlgroup",
"property_dict": {"direction": "horizontal"},
"children": [{
"type": "a",
"direct":{"className":"translate action", "href":"#global-popup"},
"attributes":{
"data-i18n":"global_dict.common_dict.login",
"data-action":"login",
"data-icon":"lock",
"data-rel": "popup"
},
"logic": {"text":"Login"}
}, {
"type": "a",
"direct": {"className":"translate ui-btn-slapos-black", "href": "#person::new"},
"attributes": {
"data-i18n": "page_dict.person.register",
"data-icon": "edit"
},
"logic": {"text":"Register"}
}
]
}
]
}
}
}
......@@ -9,7 +9,28 @@
"title": "Servers",
"title_i18n": "page_dict.servers.title",
"theme": "slapos-white",
"children": []
"children": [
{
"generate": "gadget",
"type": "listbox",
"id": "computer_overview",
"href": "computer_overview"
}
]
}, {
"generate": "widget",
"type": "page",
"title": "Server Instance",
"title_i18n": "page_dict.servers.instance",
"theme": "slapos-white",
"children": [
{
"generate": "gadget",
"type": "fieldlist",
"id": "computer_view",
"href": "computer_view"
}
]
}
]
}
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