mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 06: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
21 lines
908 B
Plaintext
21 lines
908 B
Plaintext
<%# locals: (account:, transactions:)%>
|
|
<div class="bg-white space-y-4 p-5 border border-alpha-black-25 rounded-xl shadow-xs">
|
|
<div class="flex justify-between items-center">
|
|
<h3 class="font-medium text-lg">Transactions</h3>
|
|
<%= link_to new_transaction_path(account_id: account), class: "flex gap-1 font-medium items-center bg-gray-50 text-gray-900 p-2 rounded-lg", data: { turbo_frame: :modal } do %>
|
|
<%= lucide_icon("plus", class: "w-5 h-5 text-gray-900") %>
|
|
<span class="text-sm">New transaction</span>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% if transactions.empty? %>
|
|
<p class="text-gray-500 py-4">No transactions for this account yet.</p>
|
|
<% else %>
|
|
<div class="space-y-6">
|
|
<% transactions.group_by(&:date).each do |date, transactions| %>
|
|
<%= transactions_group(date, transactions, "accounts/transactions/transaction") %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|