From 454e8b4266b975eb259044ebeb4f094f14f38f82 Mon Sep 17 00:00:00 2001 From: Franco Pellegrini Date: Wed, 14 Dec 2022 16:33:53 -0300 Subject: [PATCH] Define 'Edit' and 'View' icons for the form. fixes gh-390 --- CHANGES.rst | 3 +++ .../easyform/profiles/default/metadata.xml | 2 +- .../profiles/default/types/EasyForm.xml | 2 ++ src/collective/easyform/upgrades/1015.zcml | 19 +++++++++++++++++++ .../easyform/upgrades/configure.zcml | 1 + 5 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/collective/easyform/upgrades/1015.zcml diff --git a/CHANGES.rst b/CHANGES.rst index aedb2ea9..44ff5473 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,9 @@ Changelog 4.1.2 (unreleased) ------------------ +- Define 'Edit' and 'View' icons for the form. (#390) + [frapell] + - Require at least Python 3.8. Test with 3.8-3.11. [maurits] diff --git a/src/collective/easyform/profiles/default/metadata.xml b/src/collective/easyform/profiles/default/metadata.xml index c420605d..2e6dd3c8 100644 --- a/src/collective/easyform/profiles/default/metadata.xml +++ b/src/collective/easyform/profiles/default/metadata.xml @@ -1,4 +1,4 @@ - 1014 + 1015 diff --git a/src/collective/easyform/profiles/default/types/EasyForm.xml b/src/collective/easyform/profiles/default/types/EasyForm.xml index 1dec01e1..acb01113 100644 --- a/src/collective/easyform/profiles/default/types/EasyForm.xml +++ b/src/collective/easyform/profiles/default/types/EasyForm.xml @@ -61,6 +61,7 @@ condition_expr="" title="View" url_expr="string:${object_url}" + icon_expr="string:toolbar-action/view" visible="True" i18n:attributes="title" i18n:domain="plone" @@ -73,6 +74,7 @@ condition_expr="" title="Edit" url_expr="string:${object_url}/edit" + icon_expr="string:toolbar-action/edit" visible="True" i18n:attributes="title" i18n:domain="plone" diff --git a/src/collective/easyform/upgrades/1015.zcml b/src/collective/easyform/upgrades/1015.zcml new file mode 100644 index 00000000..4ee40d88 --- /dev/null +++ b/src/collective/easyform/upgrades/1015.zcml @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/src/collective/easyform/upgrades/configure.zcml b/src/collective/easyform/upgrades/configure.zcml index 59409b73..d78338c4 100644 --- a/src/collective/easyform/upgrades/configure.zcml +++ b/src/collective/easyform/upgrades/configure.zcml @@ -13,5 +13,6 @@ +