Files
sure/app/views/transactions/categorizes/_entry_row.html.erb
Stephen Jolly c9ca83a0d4 fix(transactions): show full dates in the categorize wizard (#2633)
The categorize view renders dates with :short (\"%b %d\"), which omits the
year — ambiguous when the uncategorized backlog spans more than one year.
Use format_date, which renders the family's Settings date format; every
selectable format includes the year.
2026-07-17 07:19:57 +02:00

21 lines
1.4 KiB
Plaintext

<%= turbo_frame_tag "categorize_entry_#{entry.id}" do %>
<input type="hidden" name="all_entry_ids[]" value="<%= entry.id %>">
<div class="grid grid-cols-[1rem_1fr_5rem_6rem_6.5rem] gap-3 items-center px-5 py-3 bg-container hover:bg-container-hover">
<input type="checkbox" name="entry_ids[]" value="<%= entry.id %>"
checked class="checkbox checkbox--light shrink-0"
aria-label="<%= t("transactions.categorizes.entry_row.include_checkbox", name: entry.name) %>"
data-action="change->categorize#uncheckRule">
<span class="min-w-0 font-medium text-primary truncate"><%= entry.name %></span>
<span class="text-secondary whitespace-nowrap"><%= format_date(entry.date) %></span>
<span class="privacy-sensitive font-medium text-right whitespace-nowrap <%= entry.amount.negative? ? "text-green-600" : "text-primary" %>">
<%= format_money(entry.amount_money.abs) %>
</span>
<%= select_tag "category_id",
options_from_collection_for_select(categories, :id, :name),
prompt: t("transactions.categorizes.show.assign_category_prompt"),
aria: { label: t("transactions.categorizes.entry_row.assign_category_select", name: entry.name) },
class: "w-full text-xs border border-primary rounded-lg px-1.5 py-0.5 bg-container text-secondary",
data: { entry_id: entry.id, action: "change->categorize#assignEntry" } %>
</div>
<% end %>