mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02: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
37 lines
1.7 KiB
Text
37 lines
1.7 KiB
Text
<%# locals: (account:, url:) %>
|
|
|
|
<%= render "accounts/form", account: account, url: url do |form| %>
|
|
<hr class="my-4">
|
|
|
|
<div class="space-y-2">
|
|
<%= form.fields_for :accountable do |credit_card_form| %>
|
|
<div class="flex items-center gap-2">
|
|
<%= credit_card_form.number_field :available_credit,
|
|
label: t("credit_cards.form.available_credit"),
|
|
placeholder: t("credit_cards.form.available_credit_placeholder"),
|
|
min: 0 %>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-2">
|
|
<%= credit_card_form.number_field :minimum_payment,
|
|
label: t("credit_cards.form.minimum_payment"),
|
|
placeholder: t("credit_cards.form.minimum_payment_placeholder"),
|
|
min: 0 %>
|
|
<%= credit_card_form.number_field :apr,
|
|
label: t("credit_cards.form.apr"),
|
|
placeholder: t("credit_cards.form.apr_placeholder"),
|
|
min: 0,
|
|
step: 0.01 %>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-2">
|
|
<%= credit_card_form.date_field :expiration_date,
|
|
label: t("credit_cards.form.expiration_date") %>
|
|
<%= credit_card_form.number_field :annual_fee,
|
|
label: t("credit_cards.form.annual_fee"),
|
|
placeholder: t("credit_cards.form.annual_fee_placeholder"),
|
|
min: 0 %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|