Commit 7510c06e authored by Sven Franck's avatar Sven Franck

add pagination back, hide breadcrumbs on small screens

parent 4d728fd3
...@@ -338,8 +338,10 @@ html body form input.secure_form { ...@@ -338,8 +338,10 @@ html body form input.secure_form {
margin-top: -6px; margin-top: -6px;
font-size: 1.2em; font-size: 1.2em;
} }
.crumbs { @media (max-width: 40em) {
display: none; .crumbs {
display: none;
}
} }
/* ============================== status loader ============================== */ /* ============================== status loader ============================== */
/* fadeout "heartbeat" transition with 1sec delay */ /* fadeout "heartbeat" transition with 1sec delay */
......
...@@ -20,6 +20,15 @@ ...@@ -20,6 +20,15 @@
"slot": 1, "slot": 1,
"text": "Created Servers", "text": "Created Servers",
"text_i18n": "portal_type_dict.computer_dict.text_dict.created_servers" "text_i18n": "portal_type_dict.computer_dict.text_dict.created_servers"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.computer_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.computer_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.computer_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.computer_dict.text_dict.64"}
]
} }
}, },
"scheme": [ "scheme": [
...@@ -43,6 +52,14 @@ ...@@ -43,6 +52,14 @@
} }
], ],
"children": [{ "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": "#servers/new"},
"attributes": {
"data-i18n": "portal_type_dict.computer_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New Server"}
}, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
...@@ -54,14 +71,6 @@ ...@@ -54,14 +71,6 @@
"bottom_grid": 1 "bottom_grid": 1
}, },
"children": [] "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": "#servers/new"},
"attributes": {
"data-i18n": "portal_type_dict.computer_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New Server"}
}] }]
} }
...@@ -45,8 +45,7 @@ ...@@ -45,8 +45,7 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type": "input", "direct": {"value": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.cancel"}}, {"type": "input", "direct": {"value": "Update the allocation scope", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update_scope", "data-icon":"check", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.update_scope", "data-theme": "slapos-black"}}
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update_scope", "data-icon":"save", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.submit", "data-theme": "slapos-black"}}
] ]
}] }]
} }
......
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
"direction": "horizontal" "direction": "horizontal"
}, },
"children": [ "children": [
{"type": "input", "direct": {"value": "Reset", "className": "translate"}, "attributes": {"type": "reset", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.cancel"}}, {"type": "input", "direct": {"value": "Update", "className": "action translate"}, "attributes": {"type": "submit", "data-icon":"check", "data-action":"update_configuration", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.update", "data-theme": "slapos-black"}}
{"type": "input", "direct": {"value": "Submit", "className": "action translate"}, "attributes": {"type": "submit", "data-action":"update_configuration", "data-i18n":"[value]portal_type_dict.computer_dict.text_dict.submit", "data-theme": "slapos-black"}}
] ]
}] }]
} }
......
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
"slot": 1, "slot": 1,
"text": "Invoice Overview", "text": "Invoice Overview",
"text_i18n": "portal_type_dict.invoice_dict.text_dict.overview" "text_i18n": "portal_type_dict.invoice_dict.text_dict.overview"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.invoice_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.invoice_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.invoice_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.invoice_dict.text_dict.64"}
]
} }
}, },
"scheme": [ "scheme": [
......
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
"slot": 1, "slot": 1,
"text": "Available Releases", "text": "Available Releases",
"text_i18n": "portal_type_dict.release_dict.text_dict.available_releases" "text_i18n": "portal_type_dict.release_dict.text_dict.available_releases"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.release_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.release_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.release_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.release_dict.text_dict.64"}
]
} }
}, },
"scheme": [ "scheme": [
......
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
"slot": 1, "slot": 1,
"text": "Installed Services", "text": "Installed Services",
"text_i18n": "portal_type_dict.service_dict.text_dict.installed_services" "text_i18n": "portal_type_dict.service_dict.text_dict.installed_services"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.service_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.service_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.service_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.service_dict.text_dict.64"}
]
} }
}, },
"scheme": [ "scheme": [
...@@ -39,6 +48,14 @@ ...@@ -39,6 +48,14 @@
} }
], ],
"children": [{ "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": "#services/add"},
"attributes": {
"data-i18n": "portal_type_dict.service_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New service"}
}, {
"generate": "widget", "generate": "widget",
"type": "table", "type": "table",
"class_list": "table-stroke ui-responsive", "class_list": "table-stroke ui-responsive",
...@@ -50,14 +67,6 @@ ...@@ -50,14 +67,6 @@
"bottom_grid": 1 "bottom_grid": 1
}, },
"children": [] "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": "#services/add"},
"attributes": {
"data-i18n": "portal_type_dict.service_dict.text_dict.add",
"data-icon": "edit"
},
"logic": {"text":"New service"}
}] }]
} }
...@@ -14,7 +14,16 @@ ...@@ -14,7 +14,16 @@
"caption": { "caption": {
"slot": 1, "slot": 1,
"text": "Installed Services", "text": "Installed Services",
"text_i18n":"portal_type_dict.software_dict.text_dict.no_software" "text_i18n":"portal_type_dict.software_dict.text_dict.installed_services"
},
"pagination": {
"slot": 2,
"option_list": [
{"value": "8", "text": "8", "text_i18n":"portal_type_dict.invoice_dict.text_dict.8"},
{"value": "16", "text": "16", "text_i18n":"portal_type_dict.invoice_dict.text_dict.16"},
{"value": "32", "text": "32", "text_i18n":"portal_type_dict.invoice_dict.text_dict.32"},
{"value": "64", "text": "64", "text_i18n":"portal_type_dict.invoice_dict.text_dict.64"}
]
}, },
"no_items": { "no_items": {
"message":"No Software installed.", "message":"No Software installed.",
......
...@@ -2652,6 +2652,7 @@ ...@@ -2652,6 +2652,7 @@
if (update) { if (update) {
content.appendChild(no_content(props.no_items)); content.appendChild(no_content(props.no_items));
} else { } else {
console.log(content)
content.querySelector("tbody").appendChild(no_content(props.no_items)); content.querySelector("tbody").appendChild(no_content(props.no_items));
} }
} }
...@@ -3767,7 +3768,7 @@ ...@@ -3767,7 +3768,7 @@
} }
} else { } else {
if (input_config.logic.setFlux) { if (input_config.logic.setFlux) {
input_config.direct.value = flux.cert[setter] || "Certificate is still active, please revoke existing one."; input_config.direct.value = (flux & flux.cert) ? flux.cert[setter] : "Certificate is still active, please revoke existing one.";
} else { } else {
input_config.direct.value = spec.data[setter] || input_config.direct.value = spec.data[setter] ||
(setter + util.uuid()); (setter + util.uuid());
......
...@@ -232,9 +232,11 @@ ...@@ -232,9 +232,11 @@
"text_dict": { "text_dict": {
"crt": "computer.crt", "crt": "computer.crt",
"key": "computer.key", "key": "computer.key",
"request_ssl": "Request SSL", "request_ssl": "Request SSL Certificate",
"ssl_request_info": "Here you can request a new SSL certificate for computer.\nAfter presenting it please copy key and certificate and store in secure place.\nIn case of certificate compromise or lost please request it again.\nCertificate is not stored on Vifib.net servers", "ssl_request_info": "Here you can request a new SSL certificate for computer.\nAfter presenting it please copy key and certificate and store in secure place.\nIn case of certificate compromise or lost please request it again.\nCertificate is not stored on Vifib.net servers",
"submit": "Submit", "submit": "Submit",
"update": "Update",
"update_scope": "Update the allocation scope",
"cancel": "Cancel", "cancel": "Cancel",
"status": "Status", "status": "Status",
"search": "Search available servers", "search": "Search available servers",
...@@ -785,7 +787,7 @@ ...@@ -785,7 +787,7 @@
"text_dict": { "text_dict": {
"software": "Software", "software": "Software",
"release": "Release", "release": "Release",
"no_software": "No software installed", "installed_services": "Installed Services",
"add_software": "Install software", "add_software": "Install software",
"status": "Status", "status": "Status",
"search": "Search available software", "search": "Search available software",
......
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