Skip to content

Commit

Permalink
move schemaeditor buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Jan 20, 2021
1 parent d120b98 commit 8b39631
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
2 changes: 2 additions & 0 deletions news/260.feature
@@ -0,0 +1,2 @@
Update Field/Actions listing to work with Plone 6
[petschki]
17 changes: 7 additions & 10 deletions src/collective/easyform/browser/actions_listing.pt
Expand Up @@ -4,7 +4,13 @@
i18n:domain="plone.schemaeditor"
>
<metal:form metal:use-macro="context/@@ploneform-macros/form">
<metal:description-slot metal:fill-slot="description">
<metal:top-slot metal:fill-slot="formtop">
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="
src context/++resource++schemaeditor.js;
"
></script>
<div class="extraActions">
<a class="pat-modal pat-plone-modal"
id="add-field"
Expand All @@ -19,15 +25,6 @@
</a>

</div>
</metal:description-slot>

<metal:top-slot metal:fill-slot="formtop">
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="
src context/++resource++schemaeditor.js;
"
></script>
</metal:top-slot>

<metal:fields-slot metal:fill-slot="fields">
Expand Down
17 changes: 7 additions & 10 deletions src/collective/easyform/browser/fields_listing.pt
Expand Up @@ -5,7 +5,13 @@
i18n:domain="plone.schemaeditor"
>
<metal:form metal:use-macro="context/@@ploneform-macros/form">
<metal:description-slot metal:fill-slot="description">
<metal:top-slot metal:fill-slot="formtop">
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="
src context/++resource++schemaeditor.js;
"
></script>
<div class="extraActions">
<a class="pat-modal pat-plone-modal"
id="add-field"
Expand All @@ -32,15 +38,6 @@
>Add new fieldset&hellip;</button>
</a>
</div>
</metal:description-slot>

<metal:top-slot metal:fill-slot="formtop">
<input tal:replace="structure context/@@authenticator/authenticator" />
<script type="text/javascript"
tal:attributes="
src context/++resource++schemaeditor.js;
"
></script>
</metal:top-slot>

<metal:fields-slot metal:fill-slot="fields">
Expand Down

0 comments on commit 8b39631

Please sign in to comment.