1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-03 12:35:21 +02:00
Maybe/app/views/valuations/confirm_update.html.erb
Zach Gollwitzer 89cc64418e
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions
Add confirmation dialog for balance reconciliation creates and updates (#2457)
2025-07-15 18:58:40 -04:00

19 lines
No EOL
655 B
Text

<%= render DialogComponent.new do |dialog| %>
<% dialog.with_header(title: "Update balance") %>
<% dialog.with_body do %>
<%= styled_form_with model: @entry, url: valuation_path(@entry), method: :patch, class: "space-y-4", data: { turbo: false } do |form| %>
<%= form.hidden_field :date %>
<%= form.hidden_field :amount %>
<%= form.hidden_field :currency %>
<%= form.hidden_field :notes %>
<%= render "confirmation_contents",
account: @account,
entry: @entry,
action_verb: "update",
is_update: true %>
<%= form.submit "Update" %>
<% end %>
<% end %>
<% end %>