Skip to content

Commit

Permalink
feat(top-up): update the new, edit pages (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybakanovsky authored Sep 6, 2023
1 parent 05692b1 commit 153cea8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
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"

0 comments on commit 153cea8

Please sign in to comment.