mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT * [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT * Update stimulus controller references to use namespace * Fix remaining tests
20 lines
759 B
Plaintext
20 lines
759 B
Plaintext
<%= render DS::Dialog.new do |dialog| %>
|
|
<% dialog.with_header(title: t(".title")) %>
|
|
<% dialog.with_body do %>
|
|
<%= styled_form_with model: @entry, url: confirm_create_valuations_path, class: "space-y-4" do |form| %>
|
|
<%= form.hidden_field :account_id %>
|
|
|
|
<% if @error_message.present? %>
|
|
<%= render DS::Alert.new(message: @error_message, variant: :error) %>
|
|
<% end %>
|
|
|
|
<div class="space-y-3">
|
|
<%= 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, disable_currency: true %>
|
|
</div>
|
|
|
|
<%= form.submit t(".submit") %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|