Commit 65de23ab authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Allow user edit monitor scope on his Computer

parent 0d730e4e
......@@ -124,6 +124,9 @@
['modification_date', 'Modification Date'],
['translated_simulation_state_title', 'State']
],
monitor_scope_list = [['', ''],
['Enabled', 'enable'],
['Disabled', 'disable']],
allocation_scope_list = [['', ''],
['Closed for maintenance', 'close/maintenance'],
['Closed for termination', 'close/termination'],
......@@ -191,6 +194,18 @@
"hidden": 0,
"type": "ListField"
},
"my_monitor_scope": {
"description": "",
"title": "Monitoring",
"default": gadget.state.doc.monitor_scope,
"css_class": "",
"items": monitor_scope_list,
"required": 1,
"editable": 1,
"key": "monitor_scope",
"hidden": 0,
"type": "ListField"
},
"my_subject_list": {
"description": "",
"title": "Your Friends email",
......@@ -290,7 +305,8 @@
['my_monitoring_status']]
], [
"right",
[["my_source"], ["my_source_project"], ["my_allocation_scope"], ["my_subject_list"]]
[["my_source"], ["my_source_project"], ["my_monitor_scope"],
["my_allocation_scope"], ["my_subject_list"]]
], [
"bottom",
[["ticket_listbox"], ["listbox"]]
......
......@@ -69,6 +69,14 @@
<none/>
</value>
</item>
<item>
<key> <string>creators</string> </key>
<value>
<tuple>
<string>zope</string>
</tuple>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>gadget_erp5_page_slap_computer_view.js</string> </value>
......@@ -87,6 +95,25 @@
<key> <string>language</string> </key>
<value> <string>en</string> </value>
</item>
<item>
<key> <string>modification_date</string> </key>
<value>
<object>
<klass>
<global name="DateTime" module="DateTime.DateTime"/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>1523884646.27</float>
<string>UTC</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Web Script</string> </value>
......@@ -230,7 +257,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>965.32357.28484.18978</string> </value>
<value> <string>969.7375.53535.32409</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +275,7 @@
</tuple>
<state>
<tuple>
<float>1519839785.23</float>
<float>1532424039.98</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -103,6 +103,7 @@
<string>my_computer_partition_news</string>
<string>my_source_title</string>
<string>my_source_project_title</string>
<string>my_monitor_scope</string>
</list>
</value>
</item>
......
<?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_monitor_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>
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