2024-06-07 12:44:06 -04:00
|
|
|
<div class="fixed bottom-6 z-10 flex items-center justify-between rounded-xl bg-gray-900 px-4 text-sm text-white w-[420px] py-1.5">
|
|
|
|
<div class="flex items-center gap-2">
|
2024-07-01 10:49:43 -04:00
|
|
|
<%= check_box_tag "entry_selection", 1, true, class: "maybe-checkbox maybe-checkbox--dark", data: { action: "bulk-select#deselectAll" } %>
|
2024-06-07 12:44:06 -04:00
|
|
|
|
|
|
|
<p data-bulk-select-target="selectionBarText"></p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex items-center gap-1 text-gray-500">
|
2024-06-07 18:59:46 -04:00
|
|
|
<%= turbo_frame_tag "bulk_transaction_edit_drawer" %>
|
|
|
|
|
2024-06-19 06:52:08 -04:00
|
|
|
<%= form_with url: mark_transfers_transactions_path,
|
|
|
|
scope: "bulk_update",
|
|
|
|
data: {
|
2024-06-24 11:58:39 -04:00
|
|
|
turbo_frame: "_top",
|
2024-06-19 06:52:08 -04:00
|
|
|
turbo_confirm: {
|
|
|
|
title: t(".mark_transfers"),
|
|
|
|
body: t(".mark_transfers_message"),
|
|
|
|
accept: t(".mark_transfers_confirm"),
|
|
|
|
}
|
|
|
|
} do |f| %>
|
2024-07-01 10:49:43 -04:00
|
|
|
<button id="bulk-transfer-btn"
|
|
|
|
type="button"
|
|
|
|
data-bulk-select-scope-param="bulk_update"
|
|
|
|
data-action="bulk-select#submitBulkRequest"
|
|
|
|
class="p-1.5 group hover:bg-gray-700 flex items-center justify-center rounded-md"
|
|
|
|
title="Mark as transfer">
|
2024-06-19 06:52:08 -04:00
|
|
|
<%= lucide_icon "arrow-right-left", class: "w-5 group-hover:text-white" %>
|
|
|
|
</button>
|
|
|
|
<% end %>
|
|
|
|
|
2024-06-07 18:59:46 -04:00
|
|
|
<%= link_to bulk_edit_transactions_path,
|
|
|
|
class: "p-1.5 group hover:bg-gray-700 flex items-center justify-center rounded-md",
|
|
|
|
title: "Edit",
|
|
|
|
data: { turbo_frame: "bulk_transaction_edit_drawer" } do %>
|
2024-06-07 12:44:06 -04:00
|
|
|
<%= lucide_icon "pencil-line", class: "w-5 group-hover:text-white" %>
|
|
|
|
<% end %>
|
|
|
|
|
2024-07-16 14:08:24 -04:00
|
|
|
<%= form_with url: bulk_delete_transactions_path, data: { turbo_confirm: true, turbo_frame: "_top" } do %>
|
2024-06-07 18:59:46 -04:00
|
|
|
<button type="button" data-bulk-select-scope-param="bulk_delete" data-action="bulk-select#submitBulkRequest" class="p-1.5 group hover:bg-gray-700 flex items-center justify-center rounded-md" title="Delete">
|
2024-06-07 16:56:30 -04:00
|
|
|
<%= lucide_icon "trash-2", class: "w-5 group-hover:text-white" %>
|
|
|
|
</button>
|
2024-06-07 12:44:06 -04:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|