-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(top-up): update the new, edit pages (#75)
- Loading branch information
1 parent
05692b1
commit 153cea8
Showing
2 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |