mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 20:45:21 +02:00
parent
8ba04b0330
commit
3ef67faf7e
2 changed files with 14 additions and 15 deletions
|
@ -21,31 +21,30 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if @entries.empty? %>
|
<div>
|
||||||
<p class="text-gray-500 text-sm p-4"><%= t(".no_entries") %></p>
|
<%= form_with url: account_entries_path(@account),
|
||||||
<% else %>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<%= form_with url: account_entries_path(@account),
|
|
||||||
id: "entries-search",
|
id: "entries-search",
|
||||||
scope: :q,
|
scope: :q,
|
||||||
method: :get,
|
method: :get,
|
||||||
data: { controller: "auto-submit-form" } do |form| %>
|
data: { controller: "auto-submit-form" } do |form| %>
|
||||||
<div class="flex gap-2 mb-4">
|
<div class="flex gap-2 mb-4">
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<div class="flex items-center px-3 py-2 gap-2 border border-gray-200 rounded-lg focus-within:ring-gray-100 focus-within:border-gray-900">
|
<div class="flex items-center px-3 py-2 gap-2 border border-gray-200 rounded-lg focus-within:ring-gray-100 focus-within:border-gray-900">
|
||||||
<%= lucide_icon("search", class: "w-5 h-5 text-gray-500") %>
|
<%= lucide_icon("search", class: "w-5 h-5 text-gray-500") %>
|
||||||
<%= form.search_field :search,
|
<%= form.search_field :search,
|
||||||
placeholder: "Search entries by name",
|
placeholder: "Search entries by name",
|
||||||
value: @q[:search],
|
value: @q[:search],
|
||||||
class: "form-field__input placeholder:text-sm placeholder:text-gray-500",
|
class: "form-field__input placeholder:text-sm placeholder:text-gray-500",
|
||||||
"data-auto-submit-form-target": "auto" %>
|
"data-auto-submit-form-target": "auto" %>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
</div>
|
||||||
</div>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<% if @entries.empty? %>
|
||||||
|
<p class="text-gray-500 text-sm p-4"><%= t(".no_entries") %></p>
|
||||||
|
<% else %>
|
||||||
<%= tag.div id: dom_id(@account, "entries_bulk_select"),
|
<%= tag.div id: dom_id(@account, "entries_bulk_select"),
|
||||||
data: {
|
data: {
|
||||||
controller: "bulk-select",
|
controller: "bulk-select",
|
||||||
|
|
|
@ -16,7 +16,7 @@ en:
|
||||||
new: New
|
new: New
|
||||||
new_balance: New balance
|
new_balance: New balance
|
||||||
new_transaction: New transaction
|
new_transaction: New transaction
|
||||||
no_entries: No entries yet
|
no_entries: No entries found
|
||||||
title: Activity
|
title: Activity
|
||||||
loading:
|
loading:
|
||||||
loading: Loading entries...
|
loading: Loading entries...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue