mirror of
https://github.com/we-promise/sure.git
synced 2026-04-27 07:54:09 +00:00
* Add lookbook + viewcomponent, organize design system file * Build menu component * Button updates * More button fixes * Replace all menus with new ViewComponent * Checkpoint: fix tests, all buttons and menus converted * Split into Link and Button components for clarity * Button cleanup * Simplify custom confirmation configuration in views * Finalize button, link component API * Add toggle field to custom form builder + Component * Basic tabs component * Custom tabs, convert all menu / tab instances in app * Gem updates * Centralized icon helper * Update all icon usage to central helper * Lint fixes * Centralize all disclosure instances * Dialog replacements * Consolidation of all dialog styles * Test fixes * Fix app layout issues, move to component with slots * Layout simplification * Flakey test fix * Fix dashboard mobile issues * Finalize homepage * Lint fixes * Fix shadows and borders in dark mode * Fix tests * Remove stale class * Fix filled icon logic * Move transparent? to public interface
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
<%= form_with url: transactions_path,
|
|
id: "transactions-search",
|
|
scope: :q,
|
|
method: :get,
|
|
data: { controller: "auto-submit-form" } do |form| %>
|
|
<%= hidden_field_tag :per_page, params[:per_page] %>
|
|
|
|
<div class="flex gap-2 mb-4">
|
|
<div class="grow">
|
|
<div class="flex items-center px-3 py-2 gap-2 border border-secondary rounded-lg focus-within:ring-secondary focus-within:border-secondary">
|
|
<%= icon("search") %>
|
|
<%= form.text_field :search,
|
|
placeholder: "Search transactions ...",
|
|
value: @q[:search],
|
|
class: "form-field__input placeholder:text-sm placeholder:text-secondary",
|
|
"data-auto-submit-form-target": "auto" %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render MenuComponent.new(variant: "button", no_padding: true) do |menu| %>
|
|
<% menu.with_button(
|
|
id: "transaction-filters-button",
|
|
type: "button",
|
|
text: "Filter",
|
|
variant: "outline",
|
|
icon: "list-filter",
|
|
data: { menu_target: "button" }
|
|
) %>
|
|
|
|
<% menu.with_custom_content do %>
|
|
<%= render "transactions/searches/menu", form: form %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|