1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 13:35:21 +02:00
Maybe/app/views/valuations/confirm_update.html.erb

19 lines
655 B
Text
Raw Normal View History

<%= 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 %>