-
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(accounts): update edit and new pages (#63)
- Loading branch information
1 parent
e4566ae
commit 8c158e9
Showing
5 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.columns.is-centered | ||
.column.is-one-third | ||
h2.title.is-4.has-text-centered Edit account | ||
= form_with model: account do |f| | ||
.field | ||
= f.text_field :name, autofocus: true, class: "input",placeholder: "Name" | ||
.field | ||
= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "email" | ||
.field | ||
= f.check_box :notification, class: "checkbox" | ||
| | ||
= f.label :notification, "Approve transactions" | ||
br | ||
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' |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.columns.is-centered | ||
.column.is-one-third | ||
h2.title.is-4.has-text-centered New account | ||
= form_with url: accounts_path do |f| | ||
.field | ||
= f.text_field :name, autofocus: true, class: "input",placeholder: "Name" | ||
br | ||
br | ||
div.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" |
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