Commit 72b2eb5d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Add Parameter Editor Test form

  Included on Software Product Module due security reasons (so be allowed to be used as normal user).
parent 73990402
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_view</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_view</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>slapos_parameter_editor_test_view</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>30.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Parameter Editor Test View</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/SoftwareProductModule_viewSoftwareReleaseForParameterEditorTestDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<!DOCTYPE html>
<html>
<!--
data-i18n=Test Parameter
-->
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>SlapOS master Parameter Editor Test</title>
<link rel="http://www.renderjs.org/rel/interface" href="interface_page.html">
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="slapos_master_panel_test_parameter_editor.js" type="text/javascript"></script>
</head>
<body>
<div data-gadget-url="gadget_erp5_page_access.html"
data-gadget-scope="access" />
</body>
</html>
/*jslint indent: 2, maxerr: 3, maxlen: 80 */
/*global window, rJS, RSVP */
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
.declareAcquiredMethod("getTranslationDict", "getTranslationDict")
.declareMethod('triggerSubmit', function () {
var argument_list = arguments;
return this.getDeclaredGadget('access')
.push(function (access_gadget) {
return access_gadget.triggerSubmit.call(access_gadget, argument_list);
});
})
.declareMethod('render', function (options) {
return new RSVP.Queue(RSVP.hash({
access_gadget: this.getDeclaredGadget('access'),
translation_dict: this.getTranslationDict([
'Parameter Test'
])
}))
.push(function (result_dict) {
return result_dict.access_gadget.render(options, [{
title: result_dict.translation_dict['Parameter Test'],
jio_key: 'software_product_module',
erp5_action: 'slapos_parameter_editor_test_view'
}]);
});
});
}(window, rJS, RSVP));
......@@ -118,7 +118,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewParameterEditorTestDialog</string> </value>
<value> <string>SoftwareProductModule_viewParameterEditorTestDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......
......@@ -116,7 +116,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewSoftwareReleaseForParameterEditorTestDialog</string> </value>
<value> <string>SoftwareProductModule_viewSoftwareReleaseForParameterEditorTestDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......
return context.Base_redirect(
'WebSection_viewParameterEditorTestDialog', keep_items={'url_string': url_string}
'SoftwareProductModule_viewParameterEditorTestDialog', keep_items={'url_string': url_string}
)
......@@ -75,6 +75,7 @@ Software Installation | slapos_panel_view
Software Instance Module | slapos_panel_view
Software Instance | slapos_panel_view
Software Product Module | slapos_panel_view
Software Product Module | slapos_parameter_editor_test_view
Software Product Release Variation | slapos_panel_view
Software Product Type Variation | slapos_panel_view
Software Product | add_slapos_software_release
......
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