Skip to content

Commit

Permalink
Merge pull request #391 from collective/frapell-missing-icons
Browse files Browse the repository at this point in the history
Define 'Edit' and 'View' icons for the form
  • Loading branch information
fredvd authored Dec 14, 2022
2 parents 3cb4679 + 454e8b4 commit 5251149
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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]


Expand Down
2 changes: 1 addition & 1 deletion src/collective/easyform/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<metadata>
<version>1014</version>
<version>1015</version>
</metadata>
2 changes: 2 additions & 0 deletions src/collective/easyform/profiles/default/types/EasyForm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
19 changes: 19 additions & 0 deletions src/collective/easyform/upgrades/1015.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:gs="http://namespaces.zope.org/genericsetup"
>

<gs:upgradeSteps
destination="1015"
profile="collective.easyform:default"
source="1014"
>

<gs:upgradeDepends
title="Apply type definition from default profile"
import_steps="typeinfo"
/>

</gs:upgradeSteps>

</configure>
1 change: 1 addition & 0 deletions src/collective/easyform/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
<include file="1012.zcml" />
<include file="1013.zcml" />
<include file="1014.zcml" />
<include file="1015.zcml" />

</configure>

0 comments on commit 5251149

Please sign in to comment.