mirror of
https://github.com/we-promise/sure.git
synced 2026-04-15 01:54:07 +00:00
* Add bulk selection UI * Handle bulk selection with Stimulus controller instead of session * Update tests * Remove stale routes * Remove old system test helper methods
18 lines
850 B
Plaintext
18 lines
850 B
Plaintext
<%# locals: (date:, transactions:) %>
|
|
<div class="bg-gray-25 rounded-xl p-1 w-full" data-bulk-select-target="group">
|
|
<div class="py-2 px-4 flex items-center justify-between font-medium text-xs text-gray-500">
|
|
<div class="flex pl-0.5 items-center gap-4">
|
|
<%= check_box_tag "#{date}_transactions_selection",
|
|
class: "maybe-checkbox maybe-checkbox--light",
|
|
id: "selection_transaction_#{date}",
|
|
data: { action: "bulk-select#toggleGroupSelection" } %>
|
|
<%= tag.span "#{date.strftime('%b %d, %Y')} · #{transactions.size}" %>
|
|
</div>
|
|
|
|
<%= tag.span format_money(-transactions.sum(&:amount_money)) %>
|
|
</div>
|
|
<div class="bg-white shadow-xs rounded-md border border-alpha-black-25 divide-y divide-alpha-black-50">
|
|
<%= render transactions %>
|
|
</div>
|
|
</div>
|