Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
b42a89f5
Commit
b42a89f5
authored
Sep 24, 2015
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Update design and synchronization parameters for ERP5
parent
34707b7a
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
102 additions
and
2249 deletions
+102
-2249
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
.../web_page_module/gadget_officejs_jio_web_page_view_js.xml
+6
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_text_document_js.xml
...page_module/gadget_officejs_page_add_text_document_js.xml
+2
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
..._page_module/gadget_officejs_page_jio_configurator_js.xml
+6
-6
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_login_html.xml
...eItem/web_page_module/gadget_officejs_page_login_html.xml
+25
-17
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_login_js.xml
...ateItem/web_page_module/gadget_officejs_page_login_js.xml
+8
-21
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/WebPage_viewAsJio.xml
...em/portal_skins/erp5_officejs_theme/WebPage_viewAsJio.xml
+1
-1
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/WebPage_viewAsJio/my_modification_date.xml
...officejs_theme/WebPage_viewAsJio/my_modification_date.xml
+54
-2195
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_web_page_view_js.xml
View file @
b42a89f5
...
...
@@ -114,10 +114,9 @@
today = new Date();\n
doc.parent_relative_url = "web_page_module";\n
doc.portal_type = "Web Page";\n
// Supsended until modification_date is handled for synchronization\n
//doc.modification_date = today.getDate()\n
// + \'/\' + (today.getMonth() - 2)\n
// + \'/\' + today.getFullYear();\n
doc.modification_date = today.getDate()\n
+ \'/\' + (today.getMonth() + 1)\n
+ \'/\' + today.getFullYear();\n
for (i = 0; i < submit_event.target.length; i += 1) {\n
// XXX Should check input type instead\n
if (submit_event.target[i].name) {\n
...
...
@@ -202,6 +201,7 @@
.declareMethod("render", function (options) {\n
var gadget = this;\n
gadget.options = options;\n
gadget.options.doc.title = gadget.options.doc.title || "";\n
return new RSVP.Queue()\n
.push(function () {\n
return gadget.translateHtml(template(options.doc));\n
...
...
@@ -413,7 +413,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.6
1376.26272.49152
</string>
</value>
<value>
<string>
945.6
2635.52426.43195
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -431,7 +431,7 @@
</tuple>
<state>
<tuple>
<float>
14430
20943.97
</float>
<float>
14430
95776.25
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_add_text_document_js.xml
View file @
b42a89f5
...
...
@@ -144,7 +144,6 @@
.push(function () {\n
var doc = {\n
// XXX Hardcoded\n
title: "Undefined Title",\n
parent_relative_url: "web_page_module",\n
portal_type: "Web Page"\n
};\n
...
...
@@ -296,7 +295,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.
18327.39274.438
95
</string>
</value>
<value>
<string>
945.
34038.48545.637
95
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -314,7 +313,7 @@
</tuple>
<state>
<tuple>
<float>
144
0437280.54
</float>
<float>
144
3093586.17
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_configurator_js.xml
View file @
b42a89f5
...
...
@@ -113,18 +113,18 @@
type: "replicate",\n
// XXX This drop the signature lists...\n
query: {\n
query: \'portal_type:"Web Page" \'
,
\n
query: \'portal_type:"Web Page" \'\n
// XX Synchonizing the whole module is too much, here is a way to start quietly\n
// Supsended until modification_date is handled for synchronization\n
//
+ \' AND modification_date:>
="\'\n
//
+ today.getDate() + \'/\' + (today.getMonth() - 2) + \'/\' + today.getFullYear() + \'" \',\n
+ \' AND modification_date:>
="\'\n
+ today.getDate() + \'/\' + (today.getMonth() - 2) + \'/\' + today.getFullYear() + \'" \',\n
limit: [0, 1234567890]\n
},\n
use_remote_post: true,\n
conflict_handling: 2,\n
check_local_modification: true,\n
check_local_creation: true,\n
check_local_deletion:
tru
e,\n
check_local_deletion:
fals
e,\n
check_remote_modification: true,\n
check_remote_creation: true,\n
check_remote_deletion: true,\n
...
...
@@ -379,7 +379,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.6
1375.20078.28842
</string>
</value>
<value>
<string>
945.6
2750.27719.2184
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -397,7 +397,7 @@
</tuple>
<state>
<tuple>
<float>
1443
020972.18
</float>
<float>
1443
102632.01
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_login_html.xml
View file @
b42a89f5
...
...
@@ -117,13 +117,20 @@
\n
<script
src=
"rsvp.js"
></script>
\n
<script
src=
"renderjs.js"
></script>
\n
<script
src=
"handlebars.js"
></script>
\n
<script
src=
"gadget_global.js"
></script>
\n
\n
<script
id=
"page-template"
type=
"text/x-handlebars-template"
>
\n
<div
class=
"ui-grid-b ui-responsive"
>
\n
<div
class=
"ui-block-a"
></div>
\n
<div
class=
"ui-block-b"
>
\n
<script
src=
"gadget_officejs_page_login.js"
></script>
\n
</head>
\n
\n
<body>
\n
<article
class=
"ui-content ui-body-c"
>
\n
<section
class=
"ui-content-header-plain"
>
\n
<h3
class=
"ui-content-title ui-body-c"
>
\n
<span
class=
"ui-icon ui-icon-custom ui-icon-user"
>
</span>
\n
Login\n
</h3>
\n
</section>
\n
<section
class=
"ui-body-c ui-content-section"
>
\n
<form
class=
"login-form"
>
\n
<div
class=
"ui-field-contain"
>
\n
<label
data-i18n=
"Login"
>
Login
</label>
\n
...
...
@@ -133,17 +140,18 @@
<label
data-i18n=
"Password"
>
Password
</label>
\n
<input
type=
"password"
name=
"passwd"
placeholder=
"Ex: A1bcF$99"
value=
""
required
>
\n
</div>
\n
<input
data-inline=
"true"
type=
"submit"
data-i18n=
"[value]Log In"
value=
"Log In"
data-theme=
"b"
>
\n
<div
class=
"ui-grid-b ui-responsive"
>
\n
<div
class=
"ui-block-a"
>
\n
</div>
\n
<div
class=
"ui-block-b"
>
\n
</div>
\n
<div
class=
"ui-block-c"
>
\n
<button
class=
"ui-btn ui-btn-b"
type=
"submit"
data-i18n=
"Log In"
>
Log In
</button>
\n
</div>
\n
</div>
\n
</form>
\n
</div>
\n
<div
class=
"ui-block-c"
></div>
\n
</div>
\n
</script>
\n
\n
<script
src=
"gadget_officejs_page_login.js"
></script>
\n
</head>
\n
\n
<body>
\n
</section>
\n
</article>
\n
</body>
\n
</html>
\n
...
...
@@ -285,7 +293,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.
18369.48314.20172
</string>
</value>
<value>
<string>
945.
62650.43414.46660
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -303,7 +311,7 @@
</tuple>
<state>
<tuple>
<float>
144
1812708.55
</float>
<float>
144
3096971.41
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_login_js.xml
View file @
b42a89f5
...
...
@@ -101,22 +101,15 @@
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*globals window, document, RSVP, rJS, promiseEventListener
, Handlebars
*/\n
<value>
<string>
/*globals window, document, RSVP, rJS, promiseEventListener*/\n
/*jslint indent: 2, maxlen: 80, nomen: true*/\n
(function (window, document, RSVP, rJS, promiseEventListener
, Handlebars
) {\n
(function (window, document, RSVP, rJS, promiseEventListener) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
// templates\n
/////////////////////////////////////////////////////////////////\n
var gadget_klass = rJS(window),\n
templater = gadget_klass.__template_element,\n
\n
template = Handlebars.compile(\n
templater.getElementById("page-template").innerHTML\n
);\n
\n
gadget_klass\n
rJS(window)\n
.ready(function (g) {\n
g.props = {};\n
return g.getElement()\n
...
...
@@ -131,13 +124,7 @@
var gadget = this;\n
return gadget.updateHeader({\n
title: "Connect"\n
})\n
.push(function () {\n
return gadget.translateHtml(template());\n
})\n
.push(function (html) {\n
gadget.props.element.innerHTML = html;\n
});\n
});\n
})\n
\n
.declareAcquiredMethod("redirect", "redirect")\n
...
...
@@ -154,7 +141,7 @@
);\n
})\n
.push(function (evt) {\n
gadget.props.element.querySelector("
input[type=submit]
")\n
gadget.props.element.querySelector("
button
")\n
.disabled = true;\n
var login = evt.target.elements[0].value,\n
passwd = evt.target.elements[1].value;\n
...
...
@@ -164,7 +151,7 @@
});\n
});\n
\n
}(window, document, RSVP, rJS, promiseEventListener
, Handlebars
));
</string>
</value>
}(window, document, RSVP, rJS, promiseEventListener));
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -301,7 +288,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
945.
41252.5943.7082
</string>
</value>
<value>
<string>
945.
62644.11371.29525
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -319,7 +306,7 @@
</tuple>
<state>
<tuple>
<float>
144
1812760.42
</float>
<float>
144
3096382.27
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/WebPage_viewAsJio.xml
View file @
b42a89f5
...
...
@@ -79,8 +79,8 @@
<string>
my_revision
</string>
<string>
my_language
</string>
<string>
my_version
</string>
<string>
my_modification_date
</string>
<string>
my_portal_type
</string>
<string>
my_modification_date
</string>
</list>
</value>
</item>
...
...
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/WebPage_viewAsJio/my_modification_date.xml
View file @
b42a89f5
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment