Commit 1fa6c450 authored by Sven Franck's avatar Sven Franck

added search field and pagination to all tables

parent bdd78bc7
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
"type": "controlbar", "type": "controlbar",
"class_list": "responsive", "class_list": "responsive",
"children": [ "children": [
{"type": "input", "direct": {"id":"#search_server_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.release.search","placeholder":"Search available releases", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}}, {"type": "input", "direct": {"id":"search_server_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.servers.search","placeholder":"Search available servers", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}}, {"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}}, {"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}} {"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
"portal_type_source": "Sale Invoice Transaction", "portal_type_source": "Sale Invoice Transaction",
"portal_type_title": "invoice", "portal_type_title": "invoice",
"portal_type_fields": "invoice_fieldlist", "portal_type_fields": "invoice_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]}, "initial_query": {"include_docs": true, "limit":[0,8]},
"form": true, "form": true,
"id": "invoice_overview", "id": "invoice_overview",
"property_dict": { "property_dict": {
"dynamic_children": [0], "dynamic_children": [3],
"requires_authentication": true, "requires_authentication": true,
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "layout": {
...@@ -33,13 +33,48 @@ ...@@ -33,13 +33,48 @@
"action_menu": true "action_menu": true
} }
}, },
"children": [{ "children": [
{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 1},
"children": [{"type": "p", "direct": {"className": "ui-table-caption translate"},"attributes": {"data-i18n":"page_dict.invoices.overview"},"logic": {"text":"Invoice Overview"}}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [
{
"generate":"widget",
"type": "controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_invoice_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "8", "text": "8", "text_i18n":"global_dict.pagination_dict.8"},{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"}, {"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}
]
},
{
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_invoice_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.invoices.search","placeholder":"Search invoices", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
"property_dict": { "property_dict": {
"filter": "true", "filter": "true",
"input": "#search_release_list", "input": "#search_invoice_list",
"mode": "columntoggle", "mode": "columntoggle",
"toggle_popup": false, "toggle_popup": false,
"wrap": "both", "wrap": "both",
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
"portal_type_source": "Network", "portal_type_source": "Network",
"portal_type_title": "network", "portal_type_title": "network",
"portal_type_fields": "network_fieldlist", "portal_type_fields": "network_fieldlist",
"initial_query": {"include_docs": true, "limit":[]}, "initial_query": {"include_docs": true, "limit":[0,8]},
"form": true, "form": true,
"id": "network_overview", "id": "network_overview",
"property_dict": { "property_dict": {
"dynamic_children": [2], "dynamic_children": [4],
"requires_authentication": true, "requires_authentication": true,
"depends_on": "login_state", "depends_on": "login_state",
"wrap_gadget": 2, "wrap_gadget": 2,
...@@ -41,11 +41,41 @@ ...@@ -41,11 +41,41 @@
"type": "controlbar", "type": "controlbar",
"property_dict": {"slot": 1}, "property_dict": {"slot": 1},
"children": [{"type": "p", "direct": {"className": "ui-table-caption translate"},"attributes": {"data-i18n":"page_dict.networks.networks"},"logic": {"text":"Created Networks"}}] "children": [{"type": "p", "direct": {"className": "ui-table-caption translate"},"attributes": {"data-i18n":"page_dict.networks.networks"},"logic": {"text":"Created Networks"}}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [
{
"generate":"widget",
"type": "controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_network_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "8", "text": "8", "text_i18n":"global_dict.pagination_dict.8"},{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"}, {"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_network_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.networks.search","placeholder":"Search available networks", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, { }, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
"property_dict": { "property_dict": {
"filter": "true",
"input": "#search_network_list",
"mode": "columntoggle", "mode": "columntoggle",
"toggle_popup": false, "toggle_popup": false,
"wrap": "both", "wrap": "both",
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
"portal_type_source": "Software Release", "portal_type_source": "Software Release",
"portal_type_title": "release", "portal_type_title": "release",
"portal_type_fields": "release_fieldlist", "portal_type_fields": "release_fieldlist",
"initial_query": {"include_docs": true, "limit":[0,16]}, "initial_query": {"include_docs": true, "limit":[0,8]},
"form": true, "form": true,
"id": "release_overview", "id": "release_overview",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "reference_id", "initial_query_url_identifier": "reference_id",
"dynamic_children": [0], "dynamic_children": [2],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "layout": {
"header": [ "header": [
...@@ -29,11 +29,42 @@ ...@@ -29,11 +29,42 @@
"link_identifier": null "link_identifier": null
} }
}, },
"children": [{ "children": [
{
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [
{
"generate":"widget",
"type": "controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_release_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "8", "text": "8", "text_i18n":"global_dict.pagination_dict.8"},{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"}, {"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_release_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.networks.search","placeholder":"Search available networks", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
"property_dict": { "property_dict": {
"filter": "true",
"input": "#search_release_list",
"mode": "columntoggle", "mode": "columntoggle",
"toggle_popup": false, "toggle_popup": false,
"wrap": "both", "wrap": "both",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"id": "service_overview", "id": "service_overview",
"property_dict": { "property_dict": {
"initial_query_url_identifier": "reference_computer", "initial_query_url_identifier": "reference_computer",
"dynamic_children": [2], "dynamic_children": [4],
"wrap_gadget": 2, "wrap_gadget": 2,
"layout": { "layout": {
"header": [ "header": [
...@@ -44,11 +44,41 @@ ...@@ -44,11 +44,41 @@
"type": "controlbar", "type": "controlbar",
"property_dict": {"slot": 1}, "property_dict": {"slot": 1},
"children": [{"type": "p", "direct": {"className": "ui-table-caption translate"},"attributes": {"data-i18n":"page_dict.services.services"},"logic": {"text":"Installed Services"}}] "children": [{"type": "p", "direct": {"className": "ui-table-caption translate"},"attributes": {"data-i18n":"page_dict.services.services"},"logic": {"text":"Installed Services"}}]
}, {
"generate": "widget",
"type": "controlbar",
"property_dict": {"slot": 2},
"children": [
{
"generate":"widget",
"type": "controlgroup",
"property_dict": {"direction":"horizontal"},
"children":[
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.first", "data-action":"first", "data-icon":"step-backward", "data-iconpos":"notext"}, "logic": {"text":"First"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.previous", "data-action":"prev", "data-icon":"backward", "data-iconpos":"notext"}, "logic": {"text":"Step Backward"}},
{"type":"select", "direct":{"id":"paginate_services_list", "className":"action"},"attributes": {"data-icon":"reorder", "data-action":"limit", "data-iconpos":"notext"},"logic": {"options":[{"value": "8", "text": "8", "text_i18n":"global_dict.pagination_dict.8"},{"value": "16", "text": "16", "text_i18n":"global_dict.pagination_dict.16"},{"value": "32", "text": "32", "text_i18n":"global_dict.pagination_dict.32"}, {"value": "64", "text": "64", "text_i18n":"global_dict.pagination_dict.64"}]}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.next", "data-action":"next", "data-icon":"forward", "data-iconpos":"notext"}, "logic": {"text":"Step Forward"}},
{"type": "a", "direct":{"className":"action", "href":""}, "attributes":{"data-i18n":"global_dict.pagination_dict.last", "data-action":"last", "data-icon":"step-forward", "data-iconpos":"notext"}, "logic": {"text": "Last"}}
]
}
]
}, {
"generate": "widget",
"type": "controlbar",
"class_list": "responsive",
"children": [
{"type": "input", "direct": {"id":"search_services_list", "className": "translate"}, "attributes": {"data-action":"search", "data-enhanced":"true", "data-i18n": "[placeholder]page_dict.services.search","placeholder":"Search available services", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"}, "logic":{"clear":"true", "action":"search"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"records"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"filter"}},
{"type": "div", "direct": {"className":"info"}, "attributes": {"data-info":"sorted"}}
]
}, { }, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
"property_dict": { "property_dict": {
"filter": "true",
"input": "#search_services_list",
"mode": "columntoggle", "mode": "columntoggle",
"toggle_popup": false, "toggle_popup": false,
"wrap": "both", "wrap": "both",
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
"last": "Last", "last": "Last",
"back": "Back", "back": "Back",
"sort": "Sortieren", "sort": "Sortieren",
"8":"8",
"16":"16", "16":"16",
"32":"32", "32":"32",
"64":"64", "64":"64",
...@@ -90,7 +91,9 @@ ...@@ -90,7 +91,9 @@
"title": "Invoices", "title": "Invoices",
"subtitle": "Overview of Invoices", "subtitle": "Overview of Invoices",
"download": "Download", "download": "Download",
"add": "Create new invoice" "add": "Create new invoice",
"overview": "Invoice Overview",
"search": "Search Invoices"
}, },
"servers": { "servers": {
"no_software": "No software installed.", "no_software": "No software installed.",
...@@ -104,7 +107,7 @@ ...@@ -104,7 +107,7 @@
"add": "Add server", "add": "Add server",
"create": "Create new server", "create": "Create new server",
"instance": "Server Instance", "instance": "Server Instance",
"search": "Search your created servers", "search": "Search available servers",
"subtitle": "Server instances being used", "subtitle": "Server instances being used",
"servers": "Created Servers" "servers": "Created Servers"
}, },
...@@ -125,13 +128,15 @@ ...@@ -125,13 +128,15 @@
"software_type": "Software Type", "software_type": "Software Type",
"recipe": "Instance XML Recipe", "recipe": "Instance XML Recipe",
"installations": "Installations", "installations": "Installations",
"services": "Installed Services" "services": "Installed Services",
"search": "Search available services"
}, },
"networks": { "networks": {
"no_servers": "No servers associated with this network.", "no_servers": "No servers associated with this network.",
"title": "Networks", "title": "Networks",
"subtitle": "Network Administration", "subtitle": "Network Administration",
"networks": "Created Networks" "networks": "Created Networks",
"search":" Search available networks"
}, },
"monitoring": { "monitoring": {
"title": "Monitoring", "title": "Monitoring",
......
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