-
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(weekly topup): create on the account creation form (#96)
* feat(weekly topup): create on the account creation form * feat(weekly topup): update tests * feat(weekly topup): fix tests * Revert "feat(weekly topup): update tests" This reverts commit d88ebda. * feat(weekly topup): fix * feat(weekly topup): fix style * feat(weekly topup): update the solution
- Loading branch information
1 parent
a2600e1
commit efdc3ca
Showing
5 changed files
with
33 additions
and
20 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
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
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
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,11 +1,14 @@ | ||
.columns.is-centered | ||
.column.is-one-third | ||
h2.title.is-4.has-text-centered New account | ||
= form_with url: accounts_path do |f| | ||
= form_with url: accounts_path do |form| | ||
.field | ||
= f.text_field :name, autofocus: true, class: "input", placeholder: "Name" | ||
br | ||
br | ||
div.buttons.is-flex.is-justify-content-flex-end | ||
= form.text_field :name, autofocus: true, class: "input", placeholder: "Name" | ||
.field | ||
= form.fields_for :automatic_topup do |auto_topup_form| | ||
= auto_topup_form.text_field :amount, class: "input", placeholder: "Weekly amount (optional)" | ||
.notification.is-light | ||
| This amount will be automatically added to the account every week. You will receive an email notification about that | ||
.buttons.is-flex.is-justify-content-flex-end | ||
= link_to 'Back', my_account_path, class: 'button is-light' | ||
= f.submit 'Save', class: "button is-primary is-fullwidth" | ||
= form.submit 'Save', class: "button is-primary is-fullwidth" |
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