1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00
Maybe/app/views/valuations/confirm_create.html.erb

20 lines
632 B
Text
Raw Normal View History

<%= render DialogComponent.new do |dialog| %>
<% dialog.with_header(title: "Confirm new balance") %>
<% dialog.with_body do %>
<%= styled_form_with model: @entry, url: valuations_path, class: "space-y-4" do |form| %>
<%= form.hidden_field :account_id %>
<%= form.hidden_field :date %>
<%= form.hidden_field :amount %>
<%= render "confirmation_contents",
reconciliation_dry_run: @reconciliation_dry_run,
account: @account,
entry: @entry,
action_verb: "set",
is_update: false %>
<%= form.submit "Confirm" %>
<% end %>
<% end %>
<% end %>