fix(transactions): follow visual order when tabbing through the save preset dialog

The relative dates option was shown below the preset name with CSS order
but came before it in the page, so Tab reached it first. It is now
inserted right after the name input when the dialog opens.
This commit is contained in:
Herculino Trotta committed 2026-11-14 11:26:53 -03:00
1 parent ced7f3826e
commit 5cc68f4bfc
1 file changed
+2 -4
@@ -13,7 +13,7 @@
<input id="filter-preset-name" type="hidden" name="name">
<input id="filter-preset-relative-dates" type="hidden" name="relative_dates">
<template id="filter-preset-relative-dates-option">
<label class="label cursor-pointer justify-center gap-2 whitespace-normal">
<label class="label cursor-pointer justify-center gap-2 whitespace-normal mt-4">
<input type="checkbox" class="checkbox checkbox-sm checkbox-primary">
<span>{% translate 'Keep dates relative to today' %}</span>
</label>
@@ -30,13 +30,11 @@
input: 'text',
inputLabel: @data-input-label,
inputAttributes: {maxlength: '100'},
html: relativeDatesOption,
didOpen: \ popup -> Swal.getInput().after(relativeDatesOption),
showCancelButton: true,
cancelButtonText: @data-cancel-text,
confirmButtonText: @data-confirm-text,
customClass: {
htmlContainer: 'order-1',
actions: 'order-2',
confirmButton: 'btn btn-primary me-3',
cancelButton: 'btn btn-error'
},