Commit 0d7d64c4 authored by Sven Franck's avatar Sven Franck

updated invoices to match SlapOS

parent 2df7829f
......@@ -46,7 +46,7 @@
"children": [
{"type": "divider", "center": {"text": [{"type": "h1", "text": "Account", "text_i18n": "global_dict.account"}]}},
{"type": "item", "href": "#person", "left": {"icon":"user"}, "center": {"text": [{"type": "h1", "text": "Account Info", "text_i18n": "global_dict.person"}, {"type": "p", "text": "Registration/Invoicing Info", "text_i18n": "global_dict.person_subtitle"}]}},
{"type": "item", "href": "#invoices", "left": {"icon":"file-text-alt"}, "center": {"text": [{"type":"h1", "text": "Invoices", "text_i18n": "global_dict.invoices"}, {"type": "p", "text": "Overview of Invoices", "text_i18n":"global_dict.invoices_subtitle"}]}},
{"type": "item", "href": "#invoices", "left": {"icon":"file-text-alt"}, "center": {"text": [{"type":"h1", "text": "My Invoices", "text_i18n": "global_dict.invoices"}, {"type": "p", "text": "Administration of your invoices", "text_i18n":"global_dict.invoices_subtitle"}]}},
{"type": "item", "href": "#servers", "left": {"icon":"hdd"}, "center": {"text": [{"type":"h1", "text": "Servers", "text_i18n": "global_dict.servers"}, {"type":"p", "text": "Server instances being used", "text_i18n": "global_dict.servers_subtitle"}]}},
{"type": "item", "href": "#services", "left": {"icon":"cogs"}, "center": {"text": [{"type": "h1","text": "Services", "text_i18n":"global_dict.services"},{"type": "p", "text": "Administration of Installed Software", "text_i18n":"global_dict.services_subtitle"}]}},
{"type": "item", "href": "#networks", "left": {"icon":"sitemap"}, "center": {"text":[{"type": "h1", "text": "Networks", "text_i18n": "global_dict.networks"},{"type": "p", "text":"Network Administration", "text_i18n":"global_dict.networks_subtitle"}]}},
......@@ -74,7 +74,7 @@
]
}, {
"type": "a",
"direct": {"className": "unenhanced", "href":"http://nexedi.com", "external": true },
"direct": {"className": "unenhanced ui-btn", "href":"http://nexedi.com", "external": true },
"attributes": {"data-i18n": "global_dict.nexedi"},
"logic": {"text": "Nexedi 2013"}
}]
......
......@@ -5,7 +5,7 @@
"portal_type_mapper": "invoices",
"initial_query": {"include_docs": true, "limit":[0,8]},
"form": true,
"view": "FOO",
"view": "web_view",
"property_dict": {
"no_items": {
"message":"No invoices found",
......@@ -21,20 +21,6 @@
"slot": 1,
"text": "Invoice 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"}
]
},
"search": {
"text": "Search invoices",
"text_i18n": "portal_type_dict.invoice_dict.text_dict.search",
"info_list": ["records", "filter", "sorted"]
}
},
"scheme": [
......@@ -55,7 +41,7 @@
{"field": "total_price", "show": true, "persist": true, "sort":false},
{"field": "price_currency", "show": "true", "priority": 4, "merge": "total_price"},
{"field": "translated_simulation_state_title", "show":"true", "priority": 5},
{"custom": true, "show": true, "persist": true, "action_list": [{"action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"page_dict.invoices.download"}], "sort": false}
{"custom": true, "show": true, "persist": true, "sort": false, "action_list": [{"setters": ["data-method", "href"], "setValues":[["_actions", "destroy", "method"], ["_actions", "destroy", "href"]], "class_list": "action translate", "action": "download", "icon":"file-alt", "text": "Download", "text_i18n":"portable_type_dict.invoice_dict.download"}]}
]
}
],
......
......@@ -6,7 +6,7 @@
{
"generate": "widget",
"type": "page",
"title": "Invoices",
"title": "My Invoices",
"title_i18n": "portal_type_dict.invoice_dict.text_dict.title",
"theme": "slapos-white",
"view_dict": {
......
......@@ -7,8 +7,8 @@
"english": "English",
"search": "Search",
"account": "Account",
"invoices": "Invoices",
"invoices_subtitle": "Overview of Invoices",
"invoices": "My Invoices",
"invoices_subtitle": "Administration of your invoices",
"servers": "Servers",
"servers_subtitle":"Server instances being used",
"services": "Services",
......@@ -333,9 +333,9 @@
"title": "Description",
"description": "The description for this computer."
},
"status": {
"title": "Status",
"description": "The current status of this computer."
"state": {
"title": "State",
"description": "The current state of this computer."
},
"netmask": {
"title": "Network Address",
......@@ -478,7 +478,7 @@
"invoice_dict": {
"text_dict": {
"download": "Download",
"title": "Invoices",
"title": "My Invoices",
"nodata": "No invoices found",
"overview": "Invoice Overview",
"8":"8",
......
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