Skip to content

Commit

Permalink
Merge pull request #147 from collective/add-toolbar-icon
Browse files Browse the repository at this point in the history
Add toolbar icon
  • Loading branch information
jensens authored Apr 11, 2019
2 parents 21a7594 + 13d1bf0 commit 46d2046
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 52 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
2.1.0 (unreleased)
------------------

- Added style bundle with toolbar icon
[agitator]

- fix bug where lines longer than 998 in XML or CSV attachmentments can get wrapped
[nngu6036]

Expand Down
2 changes: 0 additions & 2 deletions src/collective/easyform/browser/actions_listing.pt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="src context/++resource++schemaeditor.js"></script>
<link media="screen" type="text/css" rel="stylesheet"
tal:attributes="href context/++resource++easyform.css" />
</metal:top-slot>

<metal:fields-slot metal:fill-slot="fields">
Expand Down
6 changes: 6 additions & 0 deletions src/collective/easyform/browser/easyform.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@
#content #form legend {
display: none;
}

#edit-zone #plone-contentmenu-factories .plonetoolbar-contenttype .contenttype-easyform::before {
font-family: 'Glyphicons Halflings';
content: '\e028';
top: 2px;
}
2 changes: 0 additions & 2 deletions src/collective/easyform/browser/fields_listing.pt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="src context/++resource++schemaeditor.js"></script>
<link media="screen" type="text/css" rel="stylesheet"
tal:attributes="href context/++resource++easyform.css" />
</metal:top-slot>

<metal:fields-slot metal:fill-slot="fields">
Expand Down
48 changes: 1 addition & 47 deletions src/collective/easyform/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<include file="subscribers.zcml" />
<include file="validators.zcml" />
<include file="vocabularies.zcml" />
<include file="upgrades.zcml" />

<include package=".browser" />

Expand Down Expand Up @@ -44,53 +45,6 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:upgradeSteps
source="1000"
destination="1001"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Reload profile to register new vocabulary name"
description=""
import_profile="collective.easyform:default"
import_steps="plone.app.registry"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1001"
destination="1002"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Remove ProtectedEmail and ProtectedTextLine as addable fields"
description="https://github.com/collective/collective.easyform/issues/94"
import_profile="collective.easyform:default"
import_steps="plone.app.registry"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1002"
destination="1003"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Add Browserlayer"
import_profile="collective.easyform:default"
import_steps="browserlayer"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1003"
destination="1004"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Changed permission of saveddata action"
import_profile="collective.easyform:default"
import_steps="actions"
run_deps="false"
/>
</genericsetup:upgradeSteps>

<utility
factory=".setuphandlers.HiddenProfiles"
name="collective.easyform-hiddenprofiles"
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>1004</version>
<version>1005</version>
</metadata>
10 changes: 10 additions & 0 deletions src/collective/easyform/profiles/default/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,14 @@
</value>
</record>

<records prefix="plone.bundles/easyform"
interface='Products.CMFPlone.interfaces.IBundleRegistry'>
<value key="enabled">True</value>
<value key="compile">False</value>
<value key="csscompilation">++resource++easyform.css</value>
<value key="depends">plone</value>
<value key="merge_with">default</value>
</records>


</registry>
67 changes: 67 additions & 0 deletions src/collective/easyform/upgrades.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
i18n_domain="collective.easyform">

<genericsetup:upgradeSteps
source="1000"
destination="1001"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Reload profile to register new vocabulary name"
description=""
import_profile="collective.easyform:default"
import_steps="plone.app.registry"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1001"
destination="1002"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Remove ProtectedEmail and ProtectedTextLine as addable fields"
description="https://github.com/collective/collective.easyform/issues/94"
import_profile="collective.easyform:default"
import_steps="plone.app.registry"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1002"
destination="1003"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Add Browserlayer"
import_profile="collective.easyform:default"
import_steps="browserlayer"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1003"
destination="1004"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Changed permission of saveddata action"
import_profile="collective.easyform:default"
import_steps="actions"
run_deps="false"
/>
</genericsetup:upgradeSteps>
<genericsetup:upgradeSteps
source="1004"
destination="1005"
profile="collective.easyform:default">
<genericsetup:upgradeDepends
title="Reload profile to register bundle"
description=""
import_profile="collective.easyform:default"
import_steps="plone.app.registry"
run_deps="false"
/>
</genericsetup:upgradeSteps>

</configure>

0 comments on commit 46d2046

Please sign in to comment.