mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 15:24:48 +00:00
* Rough sketch of implementation * Consolidate auto submit controller * Store ransack params in session * Improve how summary is calculated for txns * Implement filters UI
22 lines
1003 B
Plaintext
22 lines
1003 B
Plaintext
<div class="space-y-4">
|
|
<div class="flex justify-between items-center text-gray-900 font-medium">
|
|
<h1 class="text-xl">Transactions</h1>
|
|
<div class="flex items-center gap-5">
|
|
<div class="flex items-center gap-2">
|
|
<%= link_to new_transaction_path, class: "rounded-lg bg-gray-900 text-white flex items-center gap-1 justify-center hover:bg-gray-700 px-3 py-2" do %>
|
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
|
<p>New transaction</p>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<%= render partial: "transactions/summary", locals: { totals: @totals } %>
|
|
</div>
|
|
<div id="transactions" class="bg-white rounded-xl border border-alpha-black-25 shadow-xs p-4 space-y-4">
|
|
<%= render partial: "transactions/search_form", locals: { q: @q } %>
|
|
<%= render partial: "transactions/filters", locals: { filters: @filter_list } %>
|
|
<%= render partial: "transactions/list", locals: { transactions: @transactions, pagy: @pagy } %>
|
|
</div>
|
|
</div>
|