2024-07-01 10:49:43 -04:00
|
|
|
<%# locals: (entry:) %>
|
2024-08-09 11:22:57 -04:00
|
|
|
|
2024-11-27 16:01:50 -05:00
|
|
|
<%= styled_form_with model: entry, url: account_valuations_path, class: "space-y-4" do |form| %>
|
|
|
|
<%= form.hidden_field :account_id %>
|
|
|
|
|
|
|
|
<% if entry.errors.any? %>
|
|
|
|
<%= render "shared/form_errors", model: entry %>
|
|
|
|
<% end %>
|
|
|
|
|
2024-11-04 20:27:31 -05:00
|
|
|
<div class="space-y-3">
|
2024-12-19 10:16:09 -05:00
|
|
|
<%= form.hidden_field :name, value: "Balance update" %>
|
2024-12-10 17:41:20 -05:00
|
|
|
<%= form.date_field :date, label: true, required: true, value: Date.current, min: Account::Entry.min_supported_date, max: Date.current %>
|
2024-11-18 15:50:47 -05:00
|
|
|
<%= form.money_field :amount, label: t(".amount"), required: true %>
|
2024-07-01 10:49:43 -04:00
|
|
|
</div>
|
2024-11-04 20:27:31 -05:00
|
|
|
|
|
|
|
<%= form.submit t(".submit") %>
|
2024-07-01 10:49:43 -04:00
|
|
|
<% end %>
|