Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Boris Kocherov
erp5
Commits
2b79140a
Commit
2b79140a
authored
8 years ago
by
Xiaowu Zhang
Browse files
Options
Download
Email Patches
Plain Diff
erp5_travel_expense: available to change language
parent
93066800
Changes
31
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
433 additions
and
77 deletions
+433
-77
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_appcache.xml
...e/PathTemplateItem/web_page_module/gadget_hr_appcache.xml
+5
-7
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_appcache.xml
...plateItem/web_page_module/gadget_hr_calendar_appcache.xml
+3
-2
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_html.html
...TemplateItem/web_page_module/gadget_hr_calendar_html.html
+1
-0
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_html.xml
...hTemplateItem/web_page_module/gadget_hr_calendar_html.xml
+2
-2
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_js.js
...PathTemplateItem/web_page_module/gadget_hr_calendar_js.js
+46
-30
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_js.xml
...athTemplateItem/web_page_module/gadget_hr_calendar_js.xml
+2
-2
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_expense_record_view_js.js
...eItem/web_page_module/gadget_hr_expense_record_view_js.js
+1
-1
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_expense_record_view_js.xml
...Item/web_page_module/gadget_hr_expense_record_view_js.xml
+3
-3
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.js
...teItem/web_page_module/gadget_hr_leave_request_view_js.js
+1
-1
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.xml
...eItem/web_page_module/gadget_hr_leave_request_view_js.xml
+3
-3
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_locale-all_js.js
...thTemplateItem/web_page_module/gadget_hr_locale-all_js.js
+5
-0
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_locale-all_js.xml
...hTemplateItem/web_page_module/gadget_hr_locale-all_js.xml
+322
-0
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_mission_request_record_view_js.js
...b_page_module/gadget_hr_mission_request_record_view_js.js
+1
-1
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_mission_request_record_view_js.xml
..._page_module/gadget_hr_mission_request_record_view_js.xml
+3
-3
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_html.html
...mplateItem/web_page_module/gadget_hr_page_front_html.html
+14
-11
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_html.xml
...emplateItem/web_page_module/gadget_hr_page_front_html.xml
+3
-3
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.js
...thTemplateItem/web_page_module/gadget_hr_page_front_js.js
+13
-4
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.xml
...hTemplateItem/web_page_module/gadget_hr_page_front_js.xml
+2
-2
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_panel_html.html
...athTemplateItem/web_page_module/gadget_hr_panel_html.html
+1
-0
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_panel_html.xml
...PathTemplateItem/web_page_module/gadget_hr_panel_html.xml
+2
-2
No files found.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_appcache.xml
View file @
2b79140a
...
@@ -125,8 +125,6 @@ gadget_erp5.css\n
...
@@ -125,8 +125,6 @@ gadget_erp5.css\n
gadget_global.js\n
gadget_global.js\n
gadget_jio.html\n
gadget_jio.html\n
gadget_jio.js\n
gadget_jio.js\n
gadget_translate.html\n
gadget_translate.js\n
handlebars.js\n
handlebars.js\n
jiodev.js\n
jiodev.js\n
jquery.js\n
jquery.js\n
...
@@ -140,7 +138,7 @@ gadget_officejs_page_add_document.html\n
...
@@ -140,7 +138,7 @@ gadget_officejs_page_add_document.html\n
gadget_officejs_page_login.html\n
gadget_officejs_page_login.html\n
gadget_officejs_page_logout.html\n
gadget_officejs_page_logout.html\n
gadget_officejs_page_sync.html\n
gadget_officejs_page_sync.html\n
gadget_translation.html\n
gadget_
hr_
translation.html\n
gadget_officejs_widget_listbox.html\n
gadget_officejs_widget_listbox.html\n
gadget_erp5_editor_panel.html\n
gadget_erp5_editor_panel.html\n
gadget_erp5_editor_panel.js\n
gadget_erp5_editor_panel.js\n
...
@@ -151,8 +149,8 @@ gadget_officejs_page_login.js\n
...
@@ -151,8 +149,8 @@ gadget_officejs_page_login.js\n
gadget_officejs_page_logout.js\n
gadget_officejs_page_logout.js\n
gadget_officejs_page_sync.js\n
gadget_officejs_page_sync.js\n
gadget_officejs_router.js\n
gadget_officejs_router.js\n
gadget_translation.js\n
gadget_
hr_
translation.js\n
gadget_translation_data.js\n
gadget_
hr_
translation_data.js\n
gadget_officejs_widget_listbox.js\n
gadget_officejs_widget_listbox.js\n
erp5_launcher.js\n
erp5_launcher.js\n
erp5_launcher.html\n
erp5_launcher.html\n
...
@@ -350,7 +348,7 @@ NETWORK:\n
...
@@ -350,7 +348,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.54
357.20081.48708
</string>
</value>
<value>
<string>
956.54
751.3513.37683
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -368,7 +366,7 @@ NETWORK:\n
...
@@ -368,7 +366,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5185223.06
</float>
<float>
148
6474400.78
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_appcache.xml
View file @
2b79140a
...
@@ -114,6 +114,7 @@ gadget_officejs_calendar.html/renderjs.js\n
...
@@ -114,6 +114,7 @@ gadget_officejs_calendar.html/renderjs.js\n
gadget_officejs_calendar.html/jquery.js\n
gadget_officejs_calendar.html/jquery.js\n
gadget_officejs_calendar.html/fullcalendar.min.js\n
gadget_officejs_calendar.html/fullcalendar.min.js\n
gadget_officejs_calendar.html/fullcalendar.min.css\n
gadget_officejs_calendar.html/fullcalendar.min.css\n
gadget_officejs_calendar.html/locale-all.js\n
\n
\n
NETWORK:\n
NETWORK:\n
*
</string>
</value>
*
</string>
</value>
...
@@ -251,7 +252,7 @@ NETWORK:\n
...
@@ -251,7 +252,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.
35742.5405.23739
</string>
</value>
<value>
<string>
956.
44329.14852.21316
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -269,7 +270,7 @@ NETWORK:\n
...
@@ -269,7 +270,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
4044752.92
</float>
<float>
148
6481468.06
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_html.html
View file @
2b79140a
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<script
src=
'jquery.js'
></script>
<script
src=
'jquery.js'
></script>
<script
src=
'moment.min.js'
></script>
<script
src=
'moment.min.js'
></script>
<script
src=
'fullcalendar.min.js'
></script>
<script
src=
'fullcalendar.min.js'
></script>
<script
src=
'locale-all.js'
></script>
<script
src=
"gadget_officejs_calendar.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_officejs_calendar.js"
type=
"text/javascript"
></script>
</head>
</head>
<body>
<body>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_html.xml
View file @
2b79140a
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.35778
.1
9
45
1.60962
</string>
</value>
<value>
<string>
95
7
.1
0
45
8.912.55483
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
4052072.72
</float>
<float>
148
6464485.44
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_js.js
View file @
2b79140a
...
@@ -13,13 +13,23 @@
...
@@ -13,13 +13,23 @@
// Acquired methods
// Acquired methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
changeUrl
"
,
"
changeUrl
"
)
.
declareAcquiredMethod
(
"
changeUrl
"
,
"
changeUrl
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
// declared methods
// declared methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
;
var
gadget
=
this
,
$
(
'
#calendar
'
).
fullCalendar
({
data
=
{
fr
:
{
listDay
:
'
Jour
'
,
listWeek
:
'
Semaine
'
},
en
:
{
listDay
:
'
Day
'
,
listWeek
:
'
Week
'
}
},
calendar_options
=
{
header
:
{
header
:
{
left
:
'
prev,next today
'
,
left
:
'
prev,next today
'
,
center
:
'
title
'
,
center
:
'
title
'
,
...
@@ -31,8 +41,8 @@
...
@@ -31,8 +41,8 @@
// customize the button names,
// customize the button names,
// otherwise they'd all just say "list"
// otherwise they'd all just say "list"
views
:
{
views
:
{
listDay
:
{
buttonText
:
'
list
d
ay
'
},
listDay
:
{
buttonText
:
'
list
D
ay
'
},
listWeek
:
{
buttonText
:
'
list
w
eek
'
}
listWeek
:
{
buttonText
:
'
list
W
eek
'
}
},
},
eventClick
:
function
(
event
)
{
eventClick
:
function
(
event
)
{
if
(
event
.
url
)
{
if
(
event
.
url
)
{
...
@@ -47,6 +57,12 @@
...
@@ -47,6 +57,12 @@
editable
:
true
,
editable
:
true
,
eventLimit
:
true
,
// allow "more" link when too many events
eventLimit
:
true
,
// allow "more" link when too many events
events
:
options
.
events
events
:
options
.
events
};
return
gadget
.
getSetting
(
'
selected_language
'
)
.
push
(
function
(
lang
)
{
calendar_options
.
locale
=
lang
;
calendar_options
.
buttonText
=
data
[
lang
]
||
data
.
en
;
$
(
'
#calendar
'
).
fullCalendar
(
calendar_options
);
});
});
});
});
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_calendar_js.xml
View file @
2b79140a
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.35891.33118.11844
</string>
</value>
<value>
<string>
95
7.10550.15266.24593
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
405405
9.9
</float>
<float>
148
646534
9.9
5
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_expense_record_view_js.js
View file @
2b79140a
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
}
else
{
}
else
{
ops
.
state
=
state
.
sync_state
;
ops
.
state
=
state
.
sync_state
;
}
}
return
template
(
ops
);
return
gadget
.
translateHtml
(
template
(
ops
)
)
;
})
})
.
push
(
function
(
html
)
{
.
push
(
function
(
html
)
{
var
discussion_div
;
var
discussion_div
;
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_expense_record_view_js.xml
View file @
2b79140a
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.5
7543.33928.60006
</string>
</value>
<value>
<string>
956.5
8658.21925.32853
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5352808.19
</float>
<float>
148
6473658.84
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.js
View file @
2b79140a
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
select_options
:
select_options
,
select_options
:
select_options
,
not_readonly
:
!
state
.
readonly
not_readonly
:
!
state
.
readonly
};
};
return
template
(
ops
);
return
gadget
.
translateHtml
(
template
(
ops
)
)
;
})
})
.
push
(
function
(
html
)
{
.
push
(
function
(
html
)
{
gadget
.
props
.
element
.
innerHTML
=
html
;
gadget
.
props
.
element
.
innerHTML
=
html
;
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_leave_request_view_js.xml
View file @
2b79140a
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.5
7517.36246.49305
</string>
</value>
<value>
<string>
956.5
8658.21925.32853
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5352429.99
</float>
<float>
148
6473882.26
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_locale-all_js.js
0 → 100644
View file @
2b79140a
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_locale-all_js.xml
0 → 100644
View file @
2b79140a
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/javascript
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
locale-all.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_hr_locale-all_js
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
3.1.0
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
document_publication_workflow
</string>
</key>
<value>
<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>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish_alive
</string>
</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>
time
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1486459590.22
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</string>
</value>
</item>
</dictionary>
</list>
</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>
957.10457.11412.46882
</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>
1486464501.78
</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>
1486459512.7
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_mission_request_record_view_js.js
View file @
2b79140a
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
}
else
{
}
else
{
ops
.
state
=
state
.
sync_state
;
ops
.
state
=
state
.
sync_state
;
}
}
return
template
(
ops
);
return
gadget
.
translateHtml
(
template
(
ops
)
)
;
})
})
.
push
(
function
(
html
)
{
.
push
(
function
(
html
)
{
var
discussion_div
;
var
discussion_div
;
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_mission_request_record_view_js.xml
View file @
2b79140a
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
956.5
7502.32307.34304
</string>
</value>
<value>
<string>
956.5
8658.21925.32853
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -262,7 +262,7 @@
...
@@ -262,7 +262,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5351571.43
</float>
<float>
148
6473814.12
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_html.html
View file @
2b79140a
...
@@ -8,13 +8,12 @@
...
@@ -8,13 +8,12 @@
<!-- renderjs -->
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"handlebars.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<!-- custom script -->
<script
src=
"gadget_officejs_page_hr_front.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_officejs_page_hr_front.js"
type=
"text/javascript"
></script>
</head>
<script
class=
"front-template"
type=
"text/x-handlebars-template"
>
<body>
<
article
class
=
"
ui-body-c document-access
"
>
<
article
class
=
"
ui-body-c document-access
"
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<
div
class
=
"
ui-controlgroup ui-controlgroup-horizontal
"
>
<
div
class
=
"
ui-controlgroup ui-controlgroup-horizontal
"
>
...
@@ -22,7 +21,7 @@
...
@@ -22,7 +21,7 @@
<
div
class
=
"
ui-block-a
"
>
<
div
class
=
"
ui-block-a
"
>
<
form
class
=
"
synchro-form view-web-page-form
"
>
<
form
class
=
"
synchro-form view-web-page-form
"
>
<
button
type
=
"
submit
"
data
-
i18n
=
"
Send & Receive
"
data
-
theme
=
"
c
"
class
=
"
ui-btn ui-btn-c ui-shadow ui-corner-all
"
>
Send
&
Receive
<
/button
>
<
button
type
=
"
submit
"
data
-
i18n
=
"
Send & Receive
"
data
-
theme
=
"
c
"
class
=
"
ui-btn ui-btn-c ui-shadow ui-corner-all
"
>
Send
&
Receive
<
/button
>
<span>
Last Synchronization Date:
</span>
<
span
data
-
i18n
=
'
Last Synchronization Date:
'
>
Last
Synchronization
Date
:
<
/span
>
<
span
class
=
"
last_sync_date
"
style
=
'
color: red;
'
><
/span
>
<
span
class
=
"
last_sync_date
"
style
=
'
color: red;
'
><
/span
>
<
/form
>
<
/form
>
<
/div
>
<
/div
>
...
@@ -33,7 +32,7 @@
...
@@ -33,7 +32,7 @@
<
section
class
=
""
>
<
section
class
=
""
>
<
h3
class
=
"
ui-body-c
"
>
<
h3
class
=
"
ui-body-c
"
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-plus
"
>&
nbsp
;
<
/span
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-plus
"
>&
nbsp
;
<
/span
>
Add
<
span
data
-
i18n
=
'
Add
'
>
Add
<
/span
>
<
/h3
>
<
/h3
>
<
/section
>
<
/section
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
...
@@ -54,22 +53,26 @@
...
@@ -54,22 +53,26 @@
<
section
class
=
""
>
<
section
class
=
""
>
<
h3
class
=
"
ui-body-c
"
>
<
h3
class
=
"
ui-body-c
"
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-exchange
"
>&
nbsp
;
<
/span
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-exchange
"
>&
nbsp
;
<
/span
>
Elements to Answer
<
span
data
-
i18n
=
'
Elements to Answer
'
>
Elements
to
Answer
<
/span
>
<
/h3
>
<
/h3
>
<
/section
>
<
/section
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<div
data-gadget-url=
"gadget_officejs_widget_listbox.html"
data-gadget-scope
=
"listbox-suspended"
></div>
<
div
class
=
"
listbox-suspended
"
><
/div
>
<
/section
>
<
/section
>
<
section
class
=
""
>
<
section
class
=
""
>
<
h3
class
=
"
ui-body-c
"
>
<
h3
class
=
"
ui-body-c
"
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-exchange
"
>&
nbsp
;
<
/span
>
<
span
class
=
"
ui-icon ui-icon-custom ui-icon-exchange
"
>&
nbsp
;
<
/span
>
Elements to Post
<
span
data
-
i18n
=
'
Elements to Post
'
>
Elements
to
Post
<
/span
>
<
/h3
>
<
/h3
>
<
/section
>
<
/section
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<
section
class
=
"
ui-body-c ui-content-section
"
>
<div
data-gadget-url=
"gadget_officejs_widget_listbox.html"
data-gadget-scope
=
"listbox-draft"
></div>
<
div
class
=
"
listbox-draft
"
><
/div
>
<
/section
>
<
/section
>
<
/article
>
<
/article
>
</script>
</head>
<body>
</body>
</body>
</html>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_html.xml
View file @
2b79140a
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
supercedriclen
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.57534.163
6.3
7
30
7
</string>
</value>
<value>
<string>
95
7.10731.5646
6.3
54
30
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5352210.95
</float>
<float>
148
6476459.13
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.js
View file @
2b79140a
...
@@ -2,8 +2,12 @@
...
@@ -2,8 +2,12 @@
/*jslint indent: 2, nomen: true, maxlen: 80*/
/*jslint indent: 2, nomen: true, maxlen: 80*/
(
function
(
window
,
RSVP
,
rJS
)
{
(
function
(
window
,
RSVP
,
rJS
)
{
"
use strict
"
;
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
rJS
(
window
)
source
=
gadget_klass
.
__template_element
.
querySelector
(
"
.front-template
"
)
.
innerHTML
,
template
=
Handlebars
.
compile
(
source
);
gadget_klass
.
ready
(
function
(
g
)
{
.
ready
(
function
(
g
)
{
g
.
props
=
{};
g
.
props
=
{};
return
g
.
getElement
()
return
g
.
getElement
()
...
@@ -31,6 +35,7 @@
...
@@ -31,6 +35,7 @@
});
});
})
})
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
translateHtml
"
,
"
translateHtml
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
getUrlFor
"
,
"
getUrlFor
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
"
updateHeader
"
,
"
updateHeader
"
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
...
@@ -60,6 +65,10 @@
...
@@ -60,6 +65,10 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
translateHtml
(
template
());
})
.
push
(
function
(
html
)
{
gadget
.
props
.
element
.
innerHTML
=
html
;
return
gadget
.
getSetting
(
'
last_sync_date
'
);
return
gadget
.
getSetting
(
'
last_sync_date
'
);
})
})
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
...
@@ -67,8 +76,8 @@
...
@@ -67,8 +76,8 @@
gadget
.
props
.
portal_type
=
"
Expense Record
"
;
gadget
.
props
.
portal_type
=
"
Expense Record
"
;
gadget
.
props
.
document_title_plural
=
"
Expense Requests
"
;
gadget
.
props
.
document_title_plural
=
"
Expense Requests
"
;
return
RSVP
.
all
([
return
RSVP
.
all
([
gadget
.
getDeclaredGadget
(
"
listbox-suspended
"
),
gadget
.
declareGadget
(
"
gadget_officejs_widget_listbox.html
"
,
{
element
:
gadget
.
props
.
element
.
querySelector
(
"
.
listbox-suspended
"
)
})
,
gadget
.
getDeclaredGadget
(
"
listbox-draft
"
)
gadget
.
declareGadget
(
"
gadget_officejs_widget_listbox.html
"
,
{
element
:
gadget
.
props
.
element
.
querySelector
(
"
.
listbox-draft
"
)
})
]);
]);
})
})
.
push
(
function
(
listbox_gadget_list
)
{
.
push
(
function
(
listbox_gadget_list
)
{
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_page_front_js.xml
View file @
2b79140a
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.58972.41616.2583
8
</string>
</value>
<value>
<string>
95
7.10736.21518.2624
8
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -288,7 +288,7 @@
...
@@ -288,7 +288,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
148
5438762.42
</float>
<float>
148
6476551.71
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_panel_html.html
View file @
2b79140a
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
<
li
><
a
href
=
"
#page=localisation
"
data
-
i18n
=
"
Map
"
>
Map
<
/a></
li
>
<
li
><
a
href
=
"
#page=localisation
"
data
-
i18n
=
"
Map
"
>
Map
<
/a></
li
>
<
li
><
a
href
=
"
#page=expense_report
"
data
-
i18n
=
"
Reports
"
>
Reports
<
/a></
li
>
<
li
><
a
href
=
"
#page=expense_report
"
data
-
i18n
=
"
Reports
"
>
Reports
<
/a></
li
>
<!--
li
><
a
href
=
"
#page=jio_configurator
"
data
-
i18n
=
"
Storage Configuration
"
>
Storage
Configuration
<
/a></
li
-->
<!--
li
><
a
href
=
"
#page=jio_configurator
"
data
-
i18n
=
"
Storage Configuration
"
>
Storage
Configuration
<
/a></
li
-->
<
li
><
a
href
=
"
#page=preference
"
data
-
i18n
=
"
Preferences
"
>
PReferences
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync&auto_repair=true
"
data
-
i18n
=
"
Synchronize
"
>
Synchronize
<
/a></
li
>
<
li
><
a
href
=
"
#page=sync&auto_repair=true
"
data
-
i18n
=
"
Synchronize
"
>
Synchronize
<
/a></
li
>
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_travel_expense/PathTemplateItem/web_page_module/gadget_hr_panel_html.xml
View file @
2b79140a
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
6.58658.21925.32853
</string>
</value>
<value>
<string>
95
7.9325.31917.28330
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -287,7 +287,7 @@
...
@@ -287,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1486
391849.2
1
</float>
<float>
1486
477634.1
1
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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