2025-02-13 11:31:07 -05:00
|
|
|
<header class="flex justify-between items-center text-primary font-medium">
|
2024-05-30 20:55:18 -04:00
|
|
|
<h1 class="text-xl">Transactions</h1>
|
|
|
|
<div class="flex items-center gap-5">
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
<%= contextual_menu do %>
|
2025-02-13 11:31:07 -05:00
|
|
|
<div class="w-48 p-1 text-sm leading-6 text-primary bg-white shadow-lg shrink rounded-xl ring-1 ring-gray-900/5">
|
2024-09-10 14:45:08 -04:00
|
|
|
<%= contextual_menu_modal_action_item t(".edit_categories"), categories_path, icon: "shapes", turbo_frame: :_top %>
|
|
|
|
<%= contextual_menu_modal_action_item t(".edit_tags"), tags_path, icon: "tags", turbo_frame: :_top %>
|
|
|
|
<%= contextual_menu_modal_action_item t(".edit_merchants"), merchants_path, icon: "store", turbo_frame: :_top %>
|
|
|
|
<%= contextual_menu_modal_action_item t(".edit_imports"), imports_path, icon: "hard-drive-upload", turbo_frame: :_top %>
|
2024-05-30 20:55:18 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2024-10-09 15:22:08 -04:00
|
|
|
<%= link_to new_import_path, class: "btn btn--outline flex items-center gap-2", data: { turbo_frame: "modal" } do %>
|
2025-02-13 11:31:07 -05:00
|
|
|
<%= lucide_icon("download", class: "text-secondary w-4 h-4") %>
|
|
|
|
<p class="text-sm font-medium text-primary"><%= t(".import") %></p>
|
2024-05-30 20:55:18 -04:00
|
|
|
<% end %>
|
|
|
|
|
2025-02-28 09:29:07 -05:00
|
|
|
<%= link_to new_account_transaction_path, class: "btn btn--primary flex items-center gap-2", data: { turbo_frame: :modal } do %>
|
2024-05-30 20:55:18 -04:00
|
|
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
|
|
|
<p class="text-sm font-medium">New transaction</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|