2025-07-15 18:58:40 -04:00
|
|
|
<%= render DialogComponent.new do |dialog| %>
|
|
|
|
<% dialog.with_header(title: "Confirm new balance") %>
|
|
|
|
<% dialog.with_body do %>
|
2025-07-16 11:31:47 -04:00
|
|
|
<%= styled_form_with model: @entry, url: valuations_path, class: "space-y-4" do |form| %>
|
2025-07-15 18:58:40 -04:00
|
|
|
<%= form.hidden_field :account_id %>
|
|
|
|
<%= form.hidden_field :date %>
|
|
|
|
<%= form.hidden_field :amount %>
|
|
|
|
|
2025-07-16 11:31:47 -04:00
|
|
|
<%= render "confirmation_contents",
|
|
|
|
reconciliation_dry_run: @reconciliation_dry_run,
|
|
|
|
account: @account,
|
|
|
|
entry: @entry,
|
|
|
|
action_verb: "set",
|
2025-07-15 18:58:40 -04:00
|
|
|
is_update: false %>
|
|
|
|
|
|
|
|
<%= form.submit "Confirm" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|