Commit cb105ea3 authored by Roque Porchetto's avatar Roque Porchetto

erp5_wendelin_telecom_UI: changes on UI

- new about us gadget (empty for now)
- new title
- command description more clear
- bug fixing of missing parameter when rendering form gadget
parent a0a9f0ba
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>ERP5 PT Loginpage</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="jiodev.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_page_about.js" type="text/javascript"></script>
</head>
<body>
<article class="ui-content ui-body-c">
<section class="ui-body-c ui-content-section">
<form>
About us page coming soon
</form>
</section>
</article>
</body>
</html>
\ No newline at end of file
/*global window, rJS, UriTemplate */
/*jslint indent: 2, maxerr: 3, nomen: true */
(function (window, rJS, UriTemplate) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// handle acquisition
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("translateHtml", "translateHtml")
.declareAcquiredMethod("updateHeader", "updateHeader")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function () {
var gadget = this;
return gadget.updateHeader({page_title: 'About us'})
.push(function () {
return gadget.translateHtml(gadget.element.innerHTML);
})
.push(function (my_translated_html) {
gadget.element.innerHTML = my_translated_html;
});
})
}(window, rJS, UriTemplate));
\ No newline at end of file
......@@ -15,8 +15,8 @@
</head>
<body>
<form name='download'>
<input type="submit" value="Download" />
<span style="margin-left:30px" > RUN COMMAND: <b style="margin-left:10px" > dataset-tool <span id="dataset_reference"/>push <i>my-data-set</i></b> </span>
<input style="margin-top:10px" type="submit" value="Download" />
<span style="margin-left:10px" > and run command: <b style="margin-left:10px" > source dataset-tool <span id="dataset_reference"/>push <i>my-data-set</i></b> </span>
</form>
</body>
</html>
\ No newline at end of file
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.23981.58926.53162</string> </value>
<value> <string>968.21275.8106.34884</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1498722326.47</float>
<float>1529412536.85</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -37,7 +37,7 @@
<!-- custom script -->
<script src="fif_gadget_erp5_header.js" type="text/javascript"></script>
<script id="header-title-link-template" type="text/x-handlebars-template"><a data-i18n="{{title}}" class="ui-btn ui-btn-icon-left ui-icon-{{icon}}" href="{{url}}" accesskey="u">{{title}}</a></script>
<script id="header-title-link-template" type="text/x-handlebars-template"><a data-i18n="{{title}}" class="ui-btn ui-btn-icon-left ui-icon-{{icon}}" href="{{url}}">{{title}}</a></script>
<script id="header-title-template" type="text/x-handlebars-template"><span data-i18n="{{title}}">{{title}}</span></script>
<script id="header-link-template" type="text/x-handlebars-template">
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>959.7948.48395.27716</string> </value>
<value> <string>963.3732.6129.17322</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1508506834.12</float>
<float>1509465615.33</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -18,7 +18,8 @@
data-gadget-scope="form_view"
data-gadget-sandbox="public">
</div>
<div style="margin-top:20px" data-gadget-url="gadget_erp5_download_access.html"
<div style="margin-top:30px">Do you want to download this dataset? Download our tool!</div>
<div style="margin-top:10px" data-gadget-url="gadget_erp5_download_access.html"
data-gadget-scope="download_access"
data-gadget-sandbox="public">
</div>
......
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>959.60819.41393.49800</string> </value>
<value> <string>968.21271.10542.41779</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>1497000228.22</float>
<float>1529412099.58</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -138,18 +138,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>processing_status_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
......@@ -193,7 +181,7 @@
</tuple>
<state>
<tuple>
<float>1491483412.28</float>
<float>1509465501.36</float>
<string>UTC</string>
</tuple>
</state>
......@@ -209,122 +197,4 @@
</tuple>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.9195.7470.22033</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1509464848.55</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_processing_state</string> </key>
<value> <string>empty</string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1491483309.13</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
......@@ -138,18 +138,6 @@
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>edit_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>processing_status_workflow</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
......@@ -193,7 +181,7 @@
</tuple>
<state>
<tuple>
<float>1491484063.16</float>
<float>1509465494.1</float>
<string>UTC</string>
</tuple>
</state>
......@@ -209,122 +197,4 @@
</tuple>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.9298.1307.7424</string> </value>
</item>
<item>
<key> <string>state</string> </key>
<value> <string>current</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1509464923.61</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>error_message</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_processing_state</string> </key>
<value> <string>empty</string> </value>
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>0.0.0.0</string> </value>
</item>
<item>
<key> <string>time</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1491483536.31</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
......@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>TELECOM WENDELIN PROJECT</title>
<title>TELECOM NEXEDI WENDELIN IA PROJECT</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.62894.19831.57719</string> </value>
<value> <string>963.3732.6129.17322</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1508748673.85</float>
<float>1529065030.08</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -25,7 +25,7 @@
})
.push(function () {
return gadget.updateHeader({
page_title: 'TELECOM WENDELIN PROJECT'
page_title: 'TELECOM NEXEDI WENDELIN IA PROJECT'
});
})
.push(undefined, function (error) {
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.62918.5842.5666</string> </value>
<value> <string>963.3732.6129.17322</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1508749838.17</float>
<float>1529065061.12</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -28,6 +28,8 @@
<div class="ui-content">
<ul data-role="listview" class="ui-listview" data-enhanced="true">
<li class="ui-first-child"><a href="#" class="ui-btn ui-btn-icon-left ui-icon-home" data-i18n="Home">Home</a></li>
<li><a href="{{preference_href}}" class="ui-btn ui-btn-icon-left ui-icon-gear" data-i18n="Preferences">Preferences</a></li>
<li><a href="{{about_info_href}}" class="ui-btn ui-btn-icon-left ui-icon-user" data-i18n="About us">About us</a></li>
<li class="ui-last-child"><a href="{{logout_href}}" class="ui-btn ui-btn-icon-left ui-icon-power-off" data-i18n="Logout">Logout</a></li>
</ul>
</div>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>959.6036.49085.44697</string> </value>
<value> <string>968.15507.37024.58521</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1509011775.07</float>
<float>1529066187.06</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -44,14 +44,21 @@
var g = this;
return new RSVP.Queue()
.push(function () {
return g.getUrlFor({command: 'display', options: {page: "logout"}});
//return g.getUrlFor({command: 'display', options: {page: "logout"}});
return RSVP.all([
g.getUrlFor({command: 'display', options: {page: "preference"}}),
g.getUrlFor({command: 'display', options: {page: "about"}}),
g.getUrlFor({command: 'display', options: {page: "logout"}})
]);
})
.push(function (result) {
.push(function (all_result) {
// XXX: Customize panel header!
return g.translateHtml(
panel_template_header() +
panel_template_body({
"logout_href": result
"preference_href": all_result[0],
"about_info_href": all_result[1],
"logout_href": all_result[2]
})
);
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>958.44282.36655.42257</string> </value>
<value> <string>968.15518.32472.22766</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1492162238.99</float>
<float>1529067619.87</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -18,7 +18,8 @@
</head>
<body>
<div style="margin-top:20px" data-gadget-url="gadget_erp5_download_access.html"
<div style="margin-top:20px">Do you want to contribute? Download our tool!</div>
<div style="margin-top:10px" data-gadget-url="gadget_erp5_download_access.html"
data-gadget-scope="download_access"
data-gadget-sandbox="public">
</div>
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.12819.7431.26658</string> </value>
<value> <string>968.21277.10080.52992</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1498722011.66</float>
<float>1529412313.46</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -55,6 +55,7 @@
"portal_type": [],
"search_column_list": column_list,
"sort_column_list": column_list,
"sort": [['modification_date', 'descending']],
"title": "Data Sets",
"type": "ListBox"
}
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.610.2969.24712</string> </value>
<value> <string>968.23886.41625.38894</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1508943533.69</float>
<float>1529569007.15</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -75,6 +75,7 @@
"search_column_list": column_list,
"sort_column_list": column_list,
"title": "Files",
"sort": [['modification_date', 'descending']],
"type": "ListBox"
}
}},
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>963.1992.18236.9693</string> </value>
<value> <string>963.3732.6129.17322</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1509028656.27</float>
<float>1529568873.15</float>
<string>UTC</string>
</tuple>
</state>
......
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