Commit 95a64686 authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_panel:

* fork header/panel gadgets
* fork header/panel
* only export last workflow history
* do not display action view list in the panel
* only show "slapos" actions in the panel
* do not display "Modules" and workflow actions
* do not display "Editable" checkbox
* do not display "Logout" link
* fixup: only export last workflow history
* use "vifib.cloud" icon on the panel
* do not display search form in the panel
* requires Release/Type variations when creating Software Product
* jump to Software Release
parent 561fe41e
<?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_jio_jump</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_jio_jump</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>jump_to_slapos_software_release</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>18.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Software Releases</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 encoding="cdata"><![CDATA[
string:${object_url}/Base_jumpToRelatedObject?base_category=parent&portal_type=Software+Product+Release+Variation
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<!DOCTYPE html>
<html>
<head>
<!--
data-i18n=Front
data-i18n=Previous
data-i18n=Cancel
data-i18n=Back
data-i18n=Editable
data-i18n=Viewable
data-i18n=New
data-i18n=Save
data-i18n=Proceed
data-i18n=Add
data-i18n=Filter
data-i18n=Views
data-i18n=Jump
data-i18n=Delete
data-i18n=Export
data-i18n=Actions
data-i18n=Cut
data-i18n=Add
data-i18n=Previous
data-i18n=Next
data-i18n=Loading
data-i18n=Fast Input
data-i18n=Language
-->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>ERP5 Header</title>
<link rel="http://www.renderjs.org/rel/interface" href="interface_header.html">
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="domsugar.js" type="text/javascript"></script>
<!-- custom script -->
<script src="slapos_master_panel_header.js" type="text/javascript"></script>
</head>
<body>
<div data-role="header" class="ui-header">
<div class="ui-btn-left">
<div class="ui-controlgroup-controls">
</div>
</div>
<h1></h1>
<div class="ui-btn-right">
<div class="ui-controlgroup-controls">
</div>
</div>
<div class="ui-subheader">
<ul>
</ul>
</div>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>SlapOS Master Panel</title>
<link rel="http://www.renderjs.org/rel/interface" href="interface_panel.html">
<!--
data-i18n=Editable
data-i18n=Home
data-i18n=Modules
data-i18n=Worklists
data-i18n=History
data-i18n=Search
data-i18n=Logout
data-i18n=Views
data-i18n=Workflows
data-i18n=Actions
data-i18n=Jumps
data-i18n=Global
data-i18n=My Account
-->
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="domsugar.js" type="text/javascript"></script>
<script src="jiodev.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="gadget_erp5_global.js" type="text/javascript"></script>
<!-- custom script -->
<script src="slapos_master_panel_panel.js" type="text/javascript"></script>
</head>
<body>
<div>
<div data-role="header">
<div class="ui-btn-left">
<div class="ui-controlgroup-controls">
<button data-i18n="Close" class="ui-btn-icon-notext ui-icon-delete">Close</button>
</div>
</div>
<div class="panel_img">
<img alt="ERP5" src="vifib.cloud"/>
</div>
</div>
<div>
<!--form>
<button type="submit" class="ui-icon-action ui-btn-icon-right ui-screen-hidden">Submit</button>
<div data-gadget-url="gadget_erp5_searchfield.html"
data-gadget-scope="erp5_searchfield"
data-gadget-sandbox="public"></div>
</form-->
<ul></ul>
<!--div data-gadget-url="gadget_erp5_field_multicheckbox.html"
data-gadget-scope="erp5_checkbox"
data-gadget-sandbox="public"></div-->
<dl></dl>
</div>
</div>
</body>
</html>
\ No newline at end of file
......@@ -383,7 +383,7 @@
</item>
<item>
<key> <string>configuration_application_title</string> </key>
<value> <string>ERP5</string> </value>
<value> <string>Panel</string> </value>
</item>
<item>
<key> <string>configuration_content_security_policy</string> </key>
......@@ -409,9 +409,7 @@
</item>
<item>
<key> <string>configuration_header_gadget_url</string> </key>
<value>
<none/>
</value>
<value> <string>slapos_master_panel_header.html</string> </value>
</item>
<item>
<key> <string>configuration_icon_url</string> </key>
......@@ -429,7 +427,7 @@
</item>
<item>
<key> <string>configuration_panel_gadget_url</string> </key>
<value> <string>gadget_erp5_panel.html</string> </value>
<value> <string>slapos_master_panel_panel.html</string> </value>
</item>
<item>
<key> <string>configuration_precache_manifest_url_list</string> </key>
......@@ -730,7 +728,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1003.4228.62185.35225</string> </value>
<value> <string>1003.50023.42691.31300</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -748,7 +746,7 @@
</tuple>
<state>
<tuple>
<float>1663595847.17</float>
<float>1666257102.55</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -4,11 +4,20 @@ portal = context.getPortalObject()
software_product = portal.software_product_module.newContent(
title=title,
reference=reference,
follow_up_value=context
)
software_product.newContent(
portal_type="Software Product Release Variation",
url_string=software_release
)
software_product.newContent(
portal_type="Software Product Type Variation",
title=software_type
)
software_product.validate()
return software_product.Base_redirect(
message=translateString('New Software Product created.')
keep_items={
'portal_status_message': translateString('New Software Product created.')
}
)
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>title, reference, **kw</string> </value>
<value> <string>title, software_release, software_type, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -91,7 +91,8 @@
<value>
<list>
<string>your_title</string>
<string>your_reference</string>
<string>your_software_release</string>
<string>your_software_type</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>delegated_list</string> </key>
<value>
<list>
<string>required</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_software_release</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>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Software Release</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -11,12 +11,13 @@
<value>
<list>
<string>required</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_reference</string> </value>
<value> <string>your_software_type</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -65,7 +66,7 @@
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_dialog_mode_reference</string> </value>
<value> <string>my_string_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
......@@ -75,6 +76,10 @@
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Software Type</string> </value>
</item>
</dictionary>
</value>
</item>
......
......@@ -28,6 +28,7 @@ Software Instance Module | slapos_panel_view
Software Instance | slapos_panel_view
Software Product Module | slapos_panel_view
Software Product | add_slapos_software_release
Software Product | jump_to_slapos_software_release
Software Product | slapos_panel_view
Software Release Module | slapos_panel_view
Software Release | slapos_panel_view
......
web_site_module/slapos_master_panel
web_site_module/slapos_master_panel/**
web_page_module/slapos_master_panel_access_*
\ No newline at end of file
web_page_module/slapos_master_panel_*
\ No newline at end of file
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