mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-03 12:35:21 +02:00
19 lines
No EOL
655 B
Text
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 %> |