mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
* Consolidate modal form structure into partial + helper * Scaffold out trade transaction form * Normalize translations * Add buy and sell trade form with tests * Move entryable lists to dedicated controllers * Delegate entry group contents rendering * More cleanup * Extract transaction and valuation update logic from entries controller * Delegate edit and show actions to entryables * Trade builder * Update paths for transaction updates
18 lines
904 B
Text
18 lines
904 B
Text
<%= content_for :return_to_path, return_to_path(params, imports_path) %>
|
|
|
|
<div class="mx-auto max-w-screen-md w-full py-24">
|
|
<h1 class="sr-only"><%= t(".confirm_title") %></h1>
|
|
|
|
<div class="text-center space-y-2 max-w-[400px] mx-auto mb-8">
|
|
<h2 class="text-3xl text-gray-900 font-medium"><%= t(".confirm_subtitle") %></h2>
|
|
<p class="text-gray-500 text-sm"><%= t(".confirm_description") %></p>
|
|
</div>
|
|
|
|
<div class="mb-8 space-y-4">
|
|
<%= entries_by_date(@import.dry_run, selectable: false) do |entries| %>
|
|
<%= render entries, show_tags: true, selectable: false, editable: false %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= button_to "Import " + @import.csv.table.size.to_s + " transactions", confirm_import_path(@import), method: :patch, class: "px-4 py-2 block w-60 text-center mx-auto rounded-lg bg-gray-900 text-white text-sm font-medium hover:bg-gray-700", data: { turbo: false } %>
|
|
</div>
|