Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.core
Commits
7c493839
Commit
7c493839
authored
Dec 26, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Translate Payment Result page into Chinese.
parent
7e808622
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
435 additions
and
2 deletions
+435
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js_zh.js
...web_page_module/rjs_gadget_slapos_payment_result_js_zh.js
+112
-0
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js_zh.xml
...eb_page_module/rjs_gadget_slapos_payment_result_js_zh.xml
+321
-0
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
...jio/bt/template_keep_last_workflow_history_only_path_list
+1
-1
master/bt5/slapos_jio/bt/template_path_list
master/bt5/slapos_jio/bt/template_path_list
+1
-1
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js_zh.js
0 → 100644
View file @
7c493839
/*jslint nomen: true, indent: 2, maxlen: 80 */
/*global window, rJS, RSVP, Handlebars */
(
function
(
window
,
rJS
,
RSVP
,
Handlebars
)
{
"
use strict
"
;
var
gadget_klass
=
rJS
(
window
),
message_source
=
gadget_klass
.
__template_element
.
getElementById
(
"
message-template
"
)
.
innerHTML
,
message_template
=
Handlebars
.
compile
(
message_source
);
/////////////////////////////
// parameters
/////////////////////////////
/////////////////////////////
// methods
/////////////////////////////
gadget_klass
/////////////////////////////
// state
/////////////////////////////
/////////////////////////////
// ready
/////////////////////////////
/////////////////////////////
// acquired methods
/////////////////////////////
/////////////////////////////
// published methods
/////////////////////////////
/////////////////////////////
// declared methods
/////////////////////////////
// -------------------.--- Render ------------------------------------------
.
declareMethod
(
"
render
"
,
function
(
my_option_dict
)
{
var
gadget
=
this
,
result
=
window
.
location
.
hash
.
replace
(
"
#payment_
"
,
""
).
split
(
"
?
"
)[
0
],
payment
=
window
.
location
.
hash
.
split
(
"
payment=
"
)[
1
];
return
gadget
.
getElement
()
.
push
(
function
(
element
)
{
var
message
,
advice
,
page_title
,
payment_message
=
""
,
payment_reference
=
""
,
payment_message_footer
=
""
;
if
(
result
===
"
success
"
)
{
page_title
=
"
感谢您的付款
"
;
message
=
"
您的订单已成功生成。
"
;
advice
=
"
待我们从银行收到付款确认书后,您将收到一封电子邮件,其中包含有关所订购服务器的详细说明和信息。
"
;
payment_message
=
"
您的支付单号是
"
;
payment_reference
=
payment
.
split
(
"
/
"
)[
1
];
payment_message_footer
=
"
如果您有任何疑问或在接下来的24小时内未收到任何信息,请通过以下方式与我们联系
"
;
}
else
if
(
result
===
"
cancel
"
)
{
page_title
=
"
付款已取消
"
;
message
=
"
您已取消付款流程。
"
;
advice
=
"
如果您要继续进行预订,请考虑重新启动该流程。
"
;
}
else
if
(
result
===
"
error
"
)
{
page_title
=
"
付款出错了
"
;
message
=
"
付款时发生错误。
"
;
advice
=
"
请稍后再试,或通过以下地址与我们联系。
"
;
}
else
if
(
result
===
"
refused
"
||
result
===
"
referral
"
)
{
page_title
=
"
付款被拒绝
"
;
message
=
"
很抱歉,该支付已被付款系统拒绝
"
;
advice
=
"
请与您的银行联系或使用其他信用卡。
"
;
payment_message_footer
=
"
如有任何疑问,请通过以下方式与我们联系
"
;
}
else
if
(
result
===
"
return
"
)
{
page_title
=
"
付款未完成
"
;
message
=
"
您尚未完成付款。
"
;
advice
=
"
如果要继续预订,请考虑重新启动流程。
"
;
payment_message_footer
=
"
如有任何疑问,请通过以下方式与我们联系
"
;
}
else
if
(
result
===
"
already_registered
"
)
{
page_title
=
"
付款记录已生成
"
;
message
=
"
您的付款记录已生成。 如果您对此付款有任何疑问,请与我们联系。
"
;
payment_message_footer
=
"
如果您有任何疑问或在接下来的24小时内未收到任何信息,请通过以下方式与我们联系
"
;
}
else
{
throw
new
Error
(
"
Unknown action to take:
"
+
result
);
}
element
.
innerHTML
=
message_template
({
page_title
:
page_title
,
message_to_acknowledge
:
message
,
advice
:
advice
,
payment_message_header
:
payment_message
,
payment_reference
:
payment_reference
,
payment_message_footer
:
payment_message_footer
});
return
page_title
;
});
})
/////////////////////////////
// declared jobs
/////////////////////////////
/////////////////////////////
// declared service
/////////////////////////////
.
declareService
(
function
()
{
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
render
({});
});
});
/////////////////////////////
// on Event
/////////////////////////////
}(
window
,
rJS
,
RSVP
,
Handlebars
));
\ No newline at end of file
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_slapos_payment_result_js_zh.xml
0 → 100644
View file @
7c493839
<?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>
</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>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_slapos_payment_result.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
rjs_gadget_slapos_payment_result_js_zh
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<string>
zh
</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>
title
</string>
</key>
<value>
<string>
Gadget SlapOS Site invoice State
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</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>
1577390176.2
</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>
<none/>
</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>
980.48874.43539.21111
</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>
1577390152.17
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
<none/>
</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>
<string>
detect_converted_file
</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>
external_processing_state
</string>
</key>
<value>
<string>
converted
</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>
1577390023.93
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
<none/>
</tuple>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list
View file @
7c493839
...
...
@@ -187,7 +187,7 @@ web_page_module/rjs_gadget_slapos_network_status_html
web_page_module/rjs_gadget_slapos_network_status_js
web_page_module/rjs_gadget_slapos_panel_html
web_page_module/rjs_gadget_slapos_panel_js
web_page_module/rjs_gadget_slapos_payment_result_js
web_page_module/rjs_gadget_slapos_payment_result_js
**
web_page_module/rjs_gadget_slapos_project_status_html
web_page_module/rjs_gadget_slapos_project_status_js
web_page_module/rjs_gadget_slapos_site_status_html
...
...
master/bt5/slapos_jio/bt/template_path_list
View file @
7c493839
...
...
@@ -187,7 +187,7 @@ web_page_module/rjs_gadget_slapos_network_status_html
web_page_module/rjs_gadget_slapos_network_status_js
web_page_module/rjs_gadget_slapos_panel_html
web_page_module/rjs_gadget_slapos_panel_js
web_page_module/rjs_gadget_slapos_payment_result_js
web_page_module/rjs_gadget_slapos_payment_result_js
**
web_page_module/rjs_gadget_slapos_project_status_html
web_page_module/rjs_gadget_slapos_project_status_js
web_page_module/rjs_gadget_slapos_site_status_html
...
...
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