mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
* Remove balance mode, sketch out refactor * Activity view checkpoint * Entry partials, checkpoint * Finish txn partial * Give entries context when editing for different turbo responses * Calculate change of balance for each entry * Account tabs consolidation * Translations, linting, brakeman updates * Account actions concern * Finalize forms, get account system tests passing * Get tests passing * Lint, rubocop, schema updates * Improve routing and stream responses * Fix broken routes * Add import option for adding accounts * Fix system test * Fix test specificity * Fix sparklines * Improve account redirects
14 lines
639 B
Plaintext
14 lines
639 B
Plaintext
<%# locals: (entry:) %>
|
|
|
|
<%= styled_form_with model: [entry.account, entry],
|
|
url: entry.new_record? ? account_valuations_path(entry.account) : account_entry_path(entry.account, entry),
|
|
class: "space-y-4",
|
|
data: { turbo: false } do |form| %>
|
|
<div class="space-y-3">
|
|
<%= form.date_field :date, label: true, required: true, value: Date.current, min: Account::Entry.min_supported_date, max: Date.current %>
|
|
<%= form.money_field :amount, label: t(".amount"), required: true, default_currency: Current.family.currency %>
|
|
</div>
|
|
|
|
<%= form.submit t(".submit") %>
|
|
<% end %>
|