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
Boxiang Sun
slapos.core
Commits
9ee80ebb
Commit
9ee80ebb
authored
Apr 10, 2019
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Update UI to user edit Upgrade Scope on the Computer/Hosting Subscription
parent
095256fd
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
214 additions
and
9 deletions
+214
-9
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
...page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
+18
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
...age_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
+2
-2
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_hosting_subscription_view_js.js
...rjs_gadget_erp5_page_slap_hosting_subscription_view_js.js
+17
-1
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_hosting_subscription_view_js.xml
...js_gadget_erp5_page_slap_hosting_subscription_view_js.xml
+3
-3
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Computer_viewAsHateoas.xml
...al_skins/slapos_hal_json_style/Computer_viewAsHateoas.xml
+1
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Computer_viewAsHateoas/my_upgrade_scope.xml
...al_json_style/Computer_viewAsHateoas/my_upgrade_scope.xml
+72
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_edit.py
...l_skins/slapos_hal_json_style/HostingSubscription_edit.py
+3
-1
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_edit.xml
..._skins/slapos_hal_json_style/HostingSubscription_edit.xml
+1
-1
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_viewAsHateoas.xml
...apos_hal_json_style/HostingSubscription_viewAsHateoas.xml
+1
-0
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_viewAsHateoas/my_upgrade_scope.xml
...le/HostingSubscription_viewAsHateoas/my_upgrade_scope.xml
+96
-0
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.js
View file @
9ee80ebb
...
...
@@ -119,6 +119,10 @@
monitor_scope_list
=
[[
''
,
''
],
[
'
Enabled
'
,
'
enable
'
],
[
'
Disabled
'
,
'
disable
'
]],
upgrade_scope_list
=
[[
''
,
''
],
[
'
Auto Upgrade
'
,
'
auto
'
],
[
'
Ask Confirmation before Upgrade
'
,
'
ask_confirmation
'
],
[
'
Never Upgrade
'
,
'
never
'
]],
allocation_scope_list
=
[[
''
,
''
],
[
'
Closed for maintenance
'
,
'
close/maintenance
'
],
[
'
Closed for termination
'
,
'
close/termination
'
],
...
...
@@ -210,6 +214,18 @@
"
hidden
"
:
(
gadget
.
state
.
doc
.
allocation_scope
===
"
open/friend
"
)
?
0
:
1
,
"
type
"
:
"
LinesField
"
},
"
my_upgrade_scope
"
:
{
"
description
"
:
""
,
"
title
"
:
"
Upgrade
"
,
"
default
"
:
gadget
.
state
.
doc
.
upgrade_scope
,
"
css_class
"
:
""
,
"
items
"
:
upgrade_scope_list
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
key
"
:
"
upgrade_scope
"
,
"
hidden
"
:
0
,
"
type
"
:
"
ListField
"
},
"
my_source
"
:
{
"
description
"
:
"
The name of a document in ERP5
"
,
"
title
"
:
"
Current Site
"
,
...
...
@@ -301,7 +317,8 @@
],
[
"
right
"
,
[[
"
my_source
"
],
[
"
my_source_project
"
],
[
"
my_monitor_scope
"
],
[
"
my_allocation_scope
"
],
[
"
my_subject_list
"
]]
[
"
my_upgrade_scope
"
],
[
"
my_allocation_scope
"
],
[
"
my_subject_list
"
]]
],
[
"
bottom
"
,
[[
"
ticket_listbox
"
],
[
"
listbox
"
]]
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_computer_view_js.xml
View file @
9ee80ebb
...
...
@@ -257,7 +257,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
97
2.38762.9625.45482
</string>
</value>
<value>
<string>
97
4.59075.20655.52309
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -275,7 +275,7 @@
</tuple>
<state>
<tuple>
<float>
15
45932477.94
</float>
<float>
15
54755115.93
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_hosting_subscription_view_js.js
View file @
9ee80ebb
...
...
@@ -147,6 +147,10 @@
],
monitor_scope_list
=
[[
''
,
''
],
[
'
Enabled
'
,
'
enable
'
],
[
'
Disabled
'
,
'
disable
'
]
],
upgrade_scope_list
=
[[
''
,
''
],
[
'
Auto Upgrade
'
,
'
auto
'
],
[
'
Ask Confirmation before Upgrade
'
,
'
ask_confirmation
'
],
[
'
Never Upgrade
'
,
'
never
'
]
],
ticket_column_list
=
[
[
'
title
'
,
'
Title
'
],
[
'
reference
'
,
'
Reference
'
],
...
...
@@ -291,6 +295,18 @@
"
hidden
"
:
0
,
"
type
"
:
"
ListField
"
},
"
my_upgrade_scope
"
:
{
"
description
"
:
""
,
"
title
"
:
"
Upgrade
"
,
"
default
"
:
gadget
.
state
.
doc
.
upgrade_scope
,
"
css_class
"
:
""
,
"
items
"
:
upgrade_scope_list
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
key
"
:
"
upgrade_scope
"
,
"
hidden
"
:
0
,
"
type
"
:
"
ListField
"
},
"
connection_listbox
"
:
{
"
column_list
"
:
connection_column_list
,
"
show_anchor
"
:
0
,
...
...
@@ -374,7 +390,7 @@
],
[
"
right
"
,
[[
"
my_slap_state_title
"
],
[
'
my_monitoring_status
'
],
[
'
my_monitor_scope
'
]]
[[
"
my_slap_state_title
"
],
[
'
my_monitoring_status
'
],
[
'
my_monitor_scope
'
]
,
[
'
my_upgrade_scope
'
]
]
],
[
"
center
"
,
[[
"
my_source_reference
"
],
[
"
my_url_string
"
]]
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_hosting_subscription_view_js.xml
View file @
9ee80ebb
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
superrafael
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
974.50
467.55565.53623
</string>
</value>
<value>
<string>
974.50
791.18350.19558
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
1554
251651.8
8
</float>
<float>
1554
751476.7
8
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Computer_viewAsHateoas.xml
View file @
9ee80ebb
...
...
@@ -103,6 +103,7 @@
<string>
my_source_title
</string>
<string>
my_source_project_title
</string>
<string>
my_monitor_scope
</string>
<string>
my_upgrade_scope
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Computer_viewAsHateoas/my_upgrade_scope.xml
0 → 100644
View file @
9ee80ebb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_upgrade_scope
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_edit.py
View file @
9ee80ebb
...
...
@@ -5,6 +5,8 @@ edit_kw = {}
if
monitor_scope
is
not
None
and
monitor_scope
!=
context
.
getMonitorScope
():
edit_kw
[
"monitor_scope"
]
=
monitor_scope
if
upgrade_scope
is
not
None
and
upgrade_scope
!=
context
.
getUpgradeScope
():
edit_kw
[
"upgrade_scope"
]
=
upgrade_scope
if
short_title
!=
context
.
getShortTitle
():
edit_kw
[
"short_title"
]
=
short_title
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_edit.xml
View file @
9ee80ebb
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
text_content, short_title, description, monitor_scope=None
</string>
</value>
<value>
<string>
text_content, short_title, description, monitor_scope=None
, upgrade_scope=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_viewAsHateoas.xml
View file @
9ee80ebb
...
...
@@ -106,6 +106,7 @@
<string>
my_root_slave
</string>
<string>
my_monitor_scope
</string>
<string>
my_connection_parameter_list
</string>
<string>
my_upgrade_scope
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/HostingSubscription_viewAsHateoas/my_upgrade_scope.xml
0 → 100644
View file @
9ee80ebb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_upgrade_scope
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Upgrade Scope
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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