Commit a77ec3c8 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

WIP slapos_jio: translate hostingjs site in Chinese

parent b4eac683
......@@ -117,6 +117,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -246,6 +246,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -305,6 +306,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -231,6 +231,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -227,6 +227,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -194,6 +194,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -253,6 +254,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -194,6 +194,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -253,6 +254,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -190,6 +190,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -249,6 +250,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -206,6 +206,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -265,6 +266,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -324,6 +326,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -231,6 +231,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -227,6 +227,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -252,6 +252,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -311,6 +312,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -368,6 +370,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -252,6 +252,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -311,6 +312,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -368,6 +370,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -243,6 +243,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -302,6 +303,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -359,6 +361,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -239,6 +239,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -298,6 +299,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -355,6 +357,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
data-i18n=Title
data-i18n=Reference
data-i18n=Allocation Scope
data-i18n=Status
data-i18n=Servers
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -234,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.57354.18371.5888</string> </value>
<value> <string>980.36988.11538.20002</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1508415987.5</float>
<float>1581615033.79</float>
<string>UTC</string>
</tuple>
</state>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -13,6 +13,7 @@
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("jio_get", "jio_get")
.declareAcquiredMethod("translate", "translate")
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
......@@ -57,30 +58,36 @@
return gadget.triggerSubmit.apply(gadget, argument_list);
});
})
.declareMethod("render", function (options) {
.declareMethod("render", function () {
var gadget = this,
default_strict_allocation_scope_uid,
lines_limit;
lines_limit,
servers_translation;
return new RSVP.Queue()
.push(function () {
return RSVP.all([
gadget.getDeclaredGadget('form_list'),
gadget.getSetting("listbox_lines_limit", 20),
gadget.jio_get("portal_categories/allocation_scope/close/forever")
gadget.jio_get("portal_categories/allocation_scope/close/forever"),
gadget.translate("Title"),
gadget.translate("Reference"),
gadget.translate("Allocation Scope"),
gadget.translate("Status"),
gadget.translate("Servers")
]);
})
.push(function (result) {
lines_limit = result[0];
default_strict_allocation_scope_uid = result[1].uid;
return gadget.getDeclaredGadget('form_list');
})
.push(function (form_list) {
var column_list = [
['title', 'Title'],
['reference', 'Reference'],
['allocation_scope_title', 'Allocation Scope'],
['Computer_getNewsDict', 'Status']
];
['title', result[3]],
['reference', result[4]],
['allocation_scope_title', result[5]],
['Computer_getNewsDict', result[6]]
],
form_list = result[0];
lines_limit = result[1];
default_strict_allocation_scope_uid = result[2].uid;
servers_translation = result[7];
return form_list.render({
erp5_document: {
"_embedded": {"_view": {
......@@ -99,7 +106,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["title", "ascending"]],
"title": "Servers",
"title": servers_translation,
"type": "ListBox"
}
}},
......@@ -123,7 +130,7 @@
jio_key: "computer_module"
});
})
.push(function (result) {
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: "change", options: {"page": "slap_add_computer"}}),
gadget.getUrlFor({command: "change", options: {page: "slap_computer_get_token"}}),
......@@ -133,7 +140,7 @@
})
.push(function (result) {
return gadget.updateHeader({
page_title: "Servers",
page_title: servers_translation,
token_url: result[1],
selection_url: result[2],
filter_action: true,
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -230,7 +231,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.61498.11899.44253</string> </value>
<value> <string>980.3967.45207.31880</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>1554901061.9</float>
<float>1581614996.59</float>
<string>UTC</string>
</tuple>
</state>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -225,6 +225,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -284,6 +285,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -341,6 +343,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -252,6 +252,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -311,6 +312,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -368,6 +370,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -209,6 +209,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -268,6 +269,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -325,6 +327,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -209,6 +209,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -268,6 +269,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -325,6 +327,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -209,6 +209,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -268,6 +269,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -325,6 +327,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
data-i18n=Date
data-i18n=Price
data-i18n=Currency
data-i18n=Payment
data-i18n=Download
data-i18n=Invoices
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -234,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.57216.18037.29013</string> </value>
<value> <string>980.36988.11538.20002</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1508407708.9</float>
<float>1581614039.46</float>
<string>UTC</string>
</tuple>
</state>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -12,6 +12,7 @@
.declareAcquiredMethod("setSetting", "setSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("translate", "translate")
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
......@@ -92,26 +93,35 @@
return gadget.triggerSubmit.apply(gadget, argument_list);
});
})
.declareMethod("render", function (options) {
.declareMethod("render", function () {
var gadget = this,
lines_limit;
lines_limit,
invoices_translation;
return new RSVP.Queue()
.push(function () {
return gadget.getSetting("listbox_lines_limit", 20);
})
.push(function (listbox_lines_limit) {
lines_limit = listbox_lines_limit;
return gadget.getDeclaredGadget('form_list');
return RSVP.all([
gadget.getDeclaredGadget('form_list'),
gadget.getSetting("listbox_lines_limit", 20),
gadget.translate("Date"),
gadget.translate("Price"),
gadget.translate("Currency"),
gadget.translate("Payment"),
gadget.translate("Download"),
gadget.translate("Invoices")
]);
})
.push(function (form_list) {
.push(function (result) {
var column_list = [
['start_date', 'Date'],
['total_price', 'Price'],
['resource_reference', 'Currency'],
['translated_simulation_state_title', 'Payment'],
['download', 'Download']
];
['start_date', result[2]],
['total_price', result[3]],
['resource_reference', result[4]],
['translated_simulation_state_title', result[5]],
['download', result[6]]
],
form_list = result[0];
lines_limit = result[1];
invoices_translation = result[7];
return form_list.render({
erp5_document: {
"_embedded": {"_view": {
......@@ -130,7 +140,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["creation_date", "descending"]],
"title": "Invoices",
"title": invoices_translation,
"type": "ListBox"
}
}},
......@@ -154,14 +164,14 @@
jio_key: "accounting_module"
});
})
.push(function (result) {
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: "change", options: {"page": "slapos"}})
]);
})
.push(function (result) {
return gadget.updateHeader({
page_title: "Invoices",
page_title: invoices_translation,
selection_url: result[0],
filter_action: true
});
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -230,7 +231,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.61498.36227.27835</string> </value>
<value> <string>981.53734.45184.6621</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>1554901051.44</float>
<float>1581613848.42</float>
<string>UTC</string>
</tuple>
</state>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -200,6 +200,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -259,6 +260,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -316,6 +318,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
data-i18n=Title
data-i18n=Reference
data-i18n=Status
data-i18n=Networks
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -234,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.57355.44771.45687</string> </value>
<value> <string>980.36988.11538.20002</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1508416076.67</float>
<float>1581615268.76</float>
<string>UTC</string>
</tuple>
</state>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -12,6 +12,7 @@
.declareAcquiredMethod("setSetting", "setSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("translate", "translate")
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
......@@ -55,24 +56,31 @@
return gadget.triggerSubmit.apply(gadget, argument_list);
});
})
.declareMethod("render", function (options) {
.declareMethod("render", function () {
var gadget = this,
lines_limit;
lines_limit,
networks_translation;
return new RSVP.Queue()
.push(function () {
return gadget.getSetting("listbox_lines_limit", 20);
})
.push(function (listbox_lines_limit) {
lines_limit = listbox_lines_limit;
return gadget.getDeclaredGadget('form_list');
return RSVP.all([
gadget.getDeclaredGadget('form_list'),
gadget.getSetting("listbox_lines_limit", 20),
gadget.translate("Title"),
gadget.translate("Reference"),
gadget.translate("Status"),
gadget.translate("Networks")
]);
})
.push(function (form_list) {
.push(function (result) {
var column_list = [
['title', 'Title'],
['reference', 'Reference'],
['ComputerNetwork_getNewsDict', 'Status']
];
['title', result[2]],
['reference', result[3]],
['ComputerNetwork_getNewsDict', result[4]]
],
form_list = result[0];
lines_limit = result[1];
networks_translation = result[5];
return form_list.render({
erp5_document: {
"_embedded": {"_view": {
......@@ -92,7 +100,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["reference", "ascending"]],
"title": "Networks",
"title": networks_translation,
"type": "ListBox"
}
}},
......@@ -116,7 +124,7 @@
jio_key: "computer_network_module"
});
})
.push(function (result) {
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: "change", options: {"page": "slap_add_network"}}),
gadget.getUrlFor({command: "change", options: {"page": "slapos"}})
......@@ -124,7 +132,7 @@
})
.push(function (result) {
return gadget.updateHeader({
page_title: "Networks",
page_title: networks_translation,
filter_action: true,
selection_url: result[1],
add_url: result[0]
......
......@@ -209,6 +209,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -241,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>974.61513.15083.40157</string> </value>
<value> <string>981.53757.50718.33655</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -259,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1554901041.21</float>
<float>1581615233.75</float>
<string>UTC</string>
</tuple>
</state>
......@@ -268,6 +269,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -325,6 +327,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -200,6 +200,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -259,6 +260,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -316,6 +318,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -239,6 +239,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -298,6 +299,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -355,6 +357,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -243,6 +243,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -302,6 +303,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -359,6 +361,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -239,6 +239,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -298,6 +299,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -355,6 +357,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -198,6 +198,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -257,6 +258,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -314,6 +316,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -229,6 +229,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -288,6 +289,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -347,6 +349,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -200,6 +200,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -259,6 +260,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -316,6 +318,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -200,6 +200,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -259,6 +260,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -316,6 +318,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -207,6 +207,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -266,6 +267,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -323,6 +325,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -243,6 +243,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -302,6 +303,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -359,6 +361,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -250,6 +250,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -309,6 +310,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -366,6 +368,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -245,6 +245,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -304,6 +305,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -361,6 +363,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -241,6 +241,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -300,6 +301,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -357,6 +359,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
data-i18n=Your Account
data-i18n=Logins
data-i18n=Reference
data-i18n=Type
data-i18n=Title
data-i18n=Region
data-i18n=Status
data-i18n=First Name
data-i18n=Last Name
data-i18n=Email
data-i18n=Logins
data-i18n=Organisations
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......
......@@ -235,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>980.6873.14525.36027</string> </value>
<value> <string>981.53572.16676.62344</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1574960455.23</float>
<float>1581611639.72</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -19,6 +19,7 @@
.declareAcquiredMethod("jio_put", "jio_put")
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")
.declareAcquiredMethod("notifySubmitted", 'notifySubmitted')
.declareAcquiredMethod("translate", "translate")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
......@@ -69,18 +70,25 @@
return gadget.getDeclaredGadget('form_view');
})
.push(function (form_gadget) {
return form_gadget.getContent();
return RSVP.all([
form_gadget.getContent(),
gadget.translate("Your Account")
]);
})
.push(function (content) {
.push(function (result) {
var content = result[0];
return gadget.updateDocument(content)
.push(function () {
return gadget.updateHeader({
page_title: "Your Account : " + content.first_name + " " + content.last_name
page_title: result[1] + " : " + content.first_name + " " + content.last_name
});
});
})
.push(function () {
return gadget.notifySubmitted({message: 'Data updated.', status: 'success'});
return gadget.translate("Data updated");
})
.push(function (result) {
return gadget.notifySubmitted({message: result, status: 'success'});
});
})
......@@ -89,24 +97,39 @@
})
.onStateChange(function () {
var gadget = this,
i, destination_list,
column_list = [
['reference', 'Reference'],
['portal_type', 'Type']
],
organisation_column_list = [
['title', 'Title'],
['reference', 'Reference'],
['default_address_region_title', 'Region'],
['Organisation_getNewsDict', 'Status']
],
data;
var gadget = this;
return new RSVP.Queue()
.push(function () {
return gadget.getDeclaredGadget('form_view');
return RSVP.all([
gadget.getDeclaredGadget('form_view'),
// XXXX use getTranslationList when ERP5 will be upgraded
gadget.translate("Reference"),
gadget.translate("Type"),
gadget.translate("Title"),
gadget.translate("Region"),
gadget.translate("Status"),
gadget.translate("First Name"),
gadget.translate("Last Name"),
gadget.translate("Email"),
gadget.translate("Logins"),
gadget.translate("Organisations")
]);
})
.push(function (form_gadget) {
.push(function (result) {
var form_gadget = result[0],
i,
destination_list,
column_list = [
['reference', result[1]],
['portal_type', result[2]]
],
organisation_column_list = [
['title', result[3]],
['reference', result[1]],
['default_address_region_title', result[4]],
['Organisation_getNewsDict', result[5]]
],
data;
destination_list = "%22NULL%22%2C";
for (i in gadget.state.doc.assignment_destination_list) {
destination_list += "%22" + gadget.state.doc.assignment_destination_list[i] + "%22%2C";
......@@ -116,7 +139,7 @@
"_embedded": {"_view": {
"my_first_name": {
"description": "",
"title": "First Name",
"title": result[6],
"default": gadget.state.doc.first_name,
"css_class": "",
"required": 1,
......@@ -127,7 +150,7 @@
},
"my_last_name": {
"description": "",
"title": "Last Name",
"title": result[7],
"default": gadget.state.doc.last_name,
"css_class": "",
"required": 1,
......@@ -138,7 +161,7 @@
},
"my_default_email_text": {
"description": "",
"title": "Email",
"title": result[8],
"default": gadget.state.doc.default_email_text,
"css_class": "",
"required": 1,
......@@ -165,7 +188,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["reference", "ascending"]],
"title": "Logins",
"title": result[9],
"type": "ListBox"
},
"organisation_listbox": {
......@@ -184,7 +207,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["reference", "ascending"]],
"title": "Organisations",
"title": result[10],
"type": "ListBox"
}
}},
......@@ -217,22 +240,23 @@
gadget.getUrlFor({command: "change", options: {jio_key: me, page: "slap_person_get_token"}}),
gadget.getUrlFor({command: "change", options: {jio_key: me, page: "slap_person_add_erp5_login"}}),
gadget.getUrlFor({command: "change", options: {jio_key: me, page: "slap_person_add_organisation"}}),
gadget.getUrlFor({command: "change", options: {page: "slapos"}})
gadget.getUrlFor({command: "change", options: {page: "slapos"}}),
gadget.translate("Your Account")
]);
})
.push(function (url_list) {
.push(function (result) {
var header_dict = {
page_title: "Your Account : " + gadget.state.doc.first_name + " " + gadget.state.doc.last_name,
page_title: result[7] + " : " + gadget.state.doc.first_name + " " + gadget.state.doc.last_name,
save_action: true,
request_certificate_url: url_list[2],
revoke_certificate_url: url_list[1],
token_url: url_list[3],
add_login_url: url_list[4],
add_organisation_url: url_list[5],
selection_url: url_list[6]
request_certificate_url: result[2],
revoke_certificate_url: result[1],
token_url: result[3],
add_login_url: result[4],
add_organisation_url: result[5],
selection_url: result[6]
};
if (!gadget.state.editable) {
header_dict.edit_content = url_list[0];
header_dict.edit_content = result[0];
}
return gadget.updateHeader(header_dict);
});
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>980.7943.45013.43144</string> </value>
<value> <string>981.53696.63191.47069</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1575023357.88</float>
<float>1581611751.8</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -243,6 +243,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -302,6 +303,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -359,6 +361,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -239,6 +239,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -298,6 +299,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -355,6 +357,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
<!DOCTYPE html>
<html>
<!--
data-i18n=Slapos
data-i18n=Title
data-i18n=Reference
data-i18n=Status
data-i18n=Projects
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
......
......@@ -235,7 +235,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>980.25270.11198.51746</string> </value>
<value> <string>980.36988.11538.20002</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>1575973846.43</float>
<float>1581613388.39</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -13,6 +13,7 @@
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("translate", "translate")
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
......@@ -55,9 +56,10 @@
return gadget.triggerSubmit.apply(gadget, argument_list);
});
})
.declareMethod("render", function (options) {
.declareMethod("render", function () {
var gadget = this,
lines_limit, destination_project_list;
lines_limit,
projects_translation;
return new RSVP.Queue()
.push(function () {
......@@ -70,19 +72,26 @@
lines_limit = settings[0];
return RSVP.all([
gadget.getDeclaredGadget('form_list'),
gadget.jio_get(settings[1])
gadget.jio_get(settings[1]),
gadget.translate("Title"),
gadget.translate("Reference"),
gadget.translate("Status"),
gadget.translate("Projects")
]);
})
.push(function (result) {
var destination_project_list, i,
column_list = [
['title', 'Title'],
['reference', 'Reference'],
['Project_getNewsDict', 'Status']
];
column_list = [
['title', result[2]],
['reference', result[3]],
['Project_getNewsDict', result[4]]
];
projects_translation = result[5];
destination_project_list = "%22NULL%22%2C";
for (i in result[1].assignment_destination_project_list) {
destination_project_list += "%22" + result[1].assignment_destination_project_list[i] + "%22%2C";
if (result[1].assignment_destination_project_list.hasOwnProperty(i)) {
destination_project_list += "%22" + result[1].assignment_destination_project_list[i] + "%22%2C";
}
}
return result[0].render({
erp5_document: {
......@@ -104,7 +113,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [["title", "ascending"]],
"title": "Projects",
"title": projects_translation,
"type": "ListBox"
}
}},
......@@ -128,7 +137,7 @@
jio_key: "project_module"
});
})
.push(function (result) {
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: "change", options: {"page": "slap_add_project"}}),
gadget.getUrlFor({command: "change", options: {"page": "slapos"}})
......@@ -136,7 +145,7 @@
})
.push(function (result) {
return gadget.updateHeader({
page_title: "Projects",
page_title: projects_translation,
filter_action: true,
selection_url: result[1],
add_url: result[0]
......
......@@ -231,7 +231,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>980.7946.28171.30583</string> </value>
<value> <string>981.53726.24431.13277</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -249,7 +249,7 @@
</tuple>
<state>
<tuple>
<float>1575020906.65</float>
<float>1581613354.95</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -202,6 +202,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -261,6 +262,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -318,6 +320,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
......@@ -209,6 +209,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -268,6 +269,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......@@ -325,6 +327,7 @@
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
......
This diff is collapsed.
This diff is collapsed.
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