Commit 5d3fca41 authored by Łukasz Nowak's avatar Łukasz Nowak

[erp5_web_renderjs_ui] Allow to configure a global icon

parent e58ab21c
Pipeline #9742 failed with stage
in 0 seconds
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="google" content="notranslate"> <meta name="google" content="notranslate">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="${base_prefix}favicon.ico"> <link rel="shortcut icon" href="${icon_url}">
<meta name="theme-color" content="#085078"> <meta name="theme-color" content="#085078">
<title>${application_title}</title> <title>${application_title}</title>
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.33187.14689.53538</string> </value> <value> <string>983.59172.56372.41198</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1580399803.54</float> <float>1589545308.75</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -181,6 +181,7 @@ url_list.extend([ ...@@ -181,6 +181,7 @@ url_list.extend([
web_section.getLayoutProperty("configuration_jio_gadget_url", default=default_url), web_section.getLayoutProperty("configuration_jio_gadget_url", default=default_url),
web_section.getLayoutProperty("configuration_translation_gadget_url", default=default_url), web_section.getLayoutProperty("configuration_translation_gadget_url", default=default_url),
web_section.getLayoutProperty("configuration_stylesheet_url", default=default_url), web_section.getLayoutProperty("configuration_stylesheet_url", default=default_url),
web_section.getLayoutProperty("configuration_icon_url", default=default_url),
]) ])
# Add all extra dependencies # Add all extra dependencies
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
<string>my_configuration_default_jio_document_page_gadget_url</string> <string>my_configuration_default_jio_document_page_gadget_url</string>
<string>my_configuration_stylesheet_url</string> <string>my_configuration_stylesheet_url</string>
<string>my_configuration_wallpaper_url</string> <string>my_configuration_wallpaper_url</string>
<string>my_configuration_icon_url</string>
</list> </list>
</value> </value>
</item> </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>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_configuration_icon_url</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_view_mode_reference</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>Icon Url</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -61,6 +61,7 @@ mapping_dict = { ...@@ -61,6 +61,7 @@ mapping_dict = {
"website_url_set": json.dumps(website_url_set), "website_url_set": json.dumps(website_url_set),
"site_description": web_section.getLayoutProperty("description", default=""), "site_description": web_section.getLayoutProperty("description", default=""),
"site_keywords": web_section.getLayoutProperty("subject", default=""), "site_keywords": web_section.getLayoutProperty("subject", default=""),
"icon_url": urljoin(base_prefix, web_section.getLayoutProperty("configuration_icon_url", default='favicon.ico'))
} }
configuration_manifest_url = web_section.getLayoutProperty("configuration_manifest_url", default=None) configuration_manifest_url = web_section.getLayoutProperty("configuration_manifest_url", default=None)
......
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