Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(top-up): update the new, edit pages #75

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions app/views/account_automatic_topup_configs/edit.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
= form_for [account, automatic_topup_config], method: :patch do |f|
.field
= f.label :weekly_amount
= f.text_field :amount
.actions
= f.submit 'Update', class: 'button is-primary'
.columns.is-centered
.column.is-one-third
h2.title.is-4.has-text-centered Edit automatic topup
= form_with model: [account, automatic_topup_config], method: :patch do |f|
.field
= f.text_field :amount, autofocus: true, class: "input", placeholder: "Weekly amount"
div.buttons.is-flex.is-justify-content-flex-end
= link_to 'Back', account_path(account), class: 'button is-light'
= f.submit 'Update', class: "button is-primary"
15 changes: 9 additions & 6 deletions app/views/account_automatic_topup_configs/new.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
= form_for [account, new_automatic_topup_config], method: :post do |f|
.field
= f.label :weekly_amount
= f.text_field :amount
.actions
= f.submit 'Create', class: 'button is-primary'
.columns.is-centered
.column.is-one-third
h2.title.is-4.has-text-centered Add automatic topup
= form_with model: [account, new_automatic_topup_config], method: :post do |f|
.field
= f.text_field :amount, autofocus: true, class: "input", placeholder: "Weekly amount"
div.buttons.is-flex.is-justify-content-flex-end
= link_to 'Back', account_path(account), class: 'button is-light'
= f.submit 'Save', class: "button is-primary"