mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 21:14:17 +00:00
* Initial entryable models * Update transfer and tests * Update transaction controllers and tests * Update sync process to use new entries model * Get dashboard working again * Update transfers, imports, and accounts to use Account::Entry * Update system tests * Consolidate transaction management into entries controller * Add permitted partial key helper * Move account transactions list to entries controller * Delegate transaction entries search * Move transfer relation to entry * Update bulk transaction management flows to use entries * Remove test code * Test fix attempt * Update demo data script * Consolidate remaining transaction partials to entries * Consolidate valuations controller to entries controller * Lint fix * Remove unused files, additional cleanup * Add back valuation creation * Make migrations fully reversible * Stale routes cleanup * Migrations reversible fix * Move types to entryable concern * Fix search when no entries found * Remove more unused code
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
<%= form_with url: transactions_path,
|
|
id: "transactions-search",
|
|
scope: :q,
|
|
method: :get,
|
|
data: { controller: "auto-submit-form" } do |form| %>
|
|
<div class="flex gap-2 mb-4">
|
|
<div class="grow">
|
|
<div class="relative flex items-center bg-white border border-gray-200 rounded-lg">
|
|
<%= form.text_field :search,
|
|
placeholder: "Search transactions by name",
|
|
value: @q[:search],
|
|
class: "placeholder:text-sm placeholder:text-gray-500 relative pl-10 w-full border-none rounded-lg",
|
|
"data-auto-submit-form-target": "auto" %>
|
|
<%= lucide_icon("search", class: "w-5 h-5 text-gray-500 ml-2 absolute inset-0 transform top-1/2 -translate-y-1/2") %>
|
|
</div>
|
|
</div>
|
|
<div data-controller="menu" class="relative">
|
|
<button id="transaction-filters-button" data-menu-target="button" type="button" class="border border-gray-200 block h-full rounded-lg flex items-center gap-2 px-4">
|
|
<%= lucide_icon("list-filter", class: "w-5 h-5 text-gray-500") %>
|
|
<p class="text-sm font-medium text-gray-900">Filter</p>
|
|
</button>
|
|
|
|
<%= render "transactions/searches/menu", form: form %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|