Commit 68208344 authored by Eric Chavaillaz's avatar Eric Chavaillaz Committed by Benjamin Franzke
Browse files

[TASK] Add action buttons above the list in recycler module

To avoid annoying scroll when a lot of items are rendered, add the action
buttons also above the list.

Resolves: #92980
Releases: master, 10.4
Change-Id: I47c351352d2a0d7e3a1bc2ee8d53a5d1ad04eb67
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66970


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Riccardo De Contardi's avatarRiccardo De Contardi <erredeco@gmail.com>
Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: Marcus Schwemer's avatarMarcus Schwemer <ms@schwemer.de>
Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
parent db5bf658
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<select name="pages" class="form-control"></select> <select name="pages" class="form-control"></select>
</div> </div>
</form> </form>
<f:render section="buttons" arguments="{allowDelete: allowDelete}"/>
<div class="table-fit"> <div class="table-fit">
<table class="table table-hover" id="itemsInRecycler"> <table class="table table-hover" id="itemsInRecycler">
<thead> <thead>
...@@ -44,23 +45,27 @@ ...@@ -44,23 +45,27 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div> <f:render section="buttons" arguments="{allowDelete: allowDelete}"/>
<button class="btn btn-default disabled" data-action="massundo" disabled> <nav>
<core:icon identifier="actions-edit-undo" /> </nav>
</div>
</f:section>
<f:section name="buttons">
<div class="form-group">
<button class="btn btn-default disabled" data-action="massundo" disabled>
<core:icon identifier="actions-edit-undo" />
<span class="text">
<f:translate key="button.undo" />
</span>
</button>
<f:if condition="{allowDelete}">
<button class="btn btn-default disabled" data-action="massdelete" disabled>
<core:icon identifier="actions-edit-delete" />
<span class="text"> <span class="text">
<f:translate key="button.undo" /> <f:translate key="button.delete" />
</span> </span>
</button> </button>
<f:if condition="{allowDelete}"> </f:if>
<button class="btn btn-default disabled" data-action="massdelete" disabled>
<core:icon identifier="actions-edit-delete" />
<span class="text">
<f:translate key="button.delete" />
</span>
</button>
</f:if>
</div>
<nav>
</nav>
</div> </div>
</f:section> </f:section>
Supports Markdown
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