Oh, I totally misunderstood you. Sorry
Also, this solution should work, but I'm not sure how to extend plugins themes templates. I'll create PRs for both Admin and Flex objects plugins, because I think it would totally make sense, that "Add item" button at the top, should add item to the top and bottom button - to the end.
Beware - if you change templates as I suggest here, most likely you'll lose functionality after Admin or Flex Objects updates, unless my future PRs get approved and merged.
So, the solution is really very simple. Two files to change one string in each. Note, that there will be two matches in each file, but I suggest to change only the first one - that would be top button - and leave the second one (bottom button) as is.
-
user/plugins/admin/themes/grav/templates/forms/fields/list/list.html.twig
Line 59. Find data-action-add="bottom" and change to data-action-add="top"
-
user/plugins/flex-objects/templates/forms/fields/list/list.html.twig
Exactly the same - line 59: data-action-add="bottom" >> data-action-add="top"
Most likely what you need is only in one of these files. I don't know where you want to change behavior - Admin default forms or Flex Objects forms
I see in the docs, default behavior is, that button is shown only at the bottom, so you can define for list field to show only at the top or both:
controls: [top|bottom|both]
If someone knows how to extend these templates, please feel free to fill in, but I see there's only one main block, so that would mean copying full template, which later wouldn't get updates.
PRs are on the way. Will add links here later
Edit:
Admin PR and Flex Objects PR