mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 04:54:11 +00:00
* Initial multi-step property form * Improve form structure, add optional tooltip help icons to form fields * Add basic inline alert component * Clean up and improve property form lifecycle * Implement Account status concept * Lint fixes * Remove whitespace * Balance editing, scope updates for account * Passing tests * Fix brakeman warning * Remove stale columns * data constraint tweaks * Redundant property
18 lines
641 B
Plaintext
18 lines
641 B
Plaintext
<%# locals: (entry:, error_message:) %>
|
|
|
|
<%= styled_form_with model: entry, url: valuations_path, class: "space-y-4" do |form| %>
|
|
<%= form.hidden_field :account_id %>
|
|
|
|
<% if error_message.present? %>
|
|
<%= render AlertComponent.new(message: error_message, variant: :error) %>
|
|
<% end %>
|
|
|
|
<div class="space-y-3">
|
|
<%= form.hidden_field :name, value: "Balance update" %>
|
|
<%= form.date_field :date, label: true, required: true, value: Date.current, min: Entry.min_supported_date, max: Date.current %>
|
|
<%= form.money_field :amount, label: t(".amount"), required: true %>
|
|
</div>
|
|
|
|
<%= form.submit t(".submit") %>
|
|
<% end %>
|