Skip to content

Commit

Permalink
feat(objective) update the new page (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreybakanovsky committed Sep 5, 2023
1 parent cb4fc9f commit 05692b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/views/objectives/new.html.erb

This file was deleted.

13 changes: 13 additions & 0 deletions app/views/objectives/new.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.columns.is-centered
.column.is-one-third
h2.title.is-4.has-text-centered Adding new objective
= form_with url:account_objectives_path(account), method: :post do |f|
.field
= f.text_field :name, autofocus: true, class: "input", placeholder: "Name"
.field
= f.text_field :amount, class: "input", placeholder: "Amount"
.field
= f.text_field :image_url, class: "input", placeholder: "Image URL"
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 05692b1

Please sign in to comment.