Skip to content

Commit

Permalink
changed setup page
Browse files Browse the repository at this point in the history
  • Loading branch information
abutler911 committed Oct 28, 2023
1 parent 64df1a8 commit 4c7fd05
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions views/affirmation-setup.pug
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ block content

// Check if affirmations exist
if user.affirmations
each category, categoryName in categoriesWithSpaces
.card.mb-4
.card-header
h3= categoryName
.card-body
ul.affirmation-list.list-group
each affirmation, point in category
li.list-group-item #{point}: #{affirmation}
.card-footer
a.btn.btn-primary(href="/edit-affirmations/#{categoryName}") Edit
div.row
each category, categoryName in categoriesWithSpaces
div.col-md-4
.card.mb-4
.card-header
h3= categoryName
.card-body
ul.affirmation-list.list-group
each affirmation, point in category
li.list-group-item #{point}: #{affirmation}
.card-footer
a.btn.btn-primary(href="/edit-affirmations/#{categoryName}") Edit
// Button to enter new affirmations
a.btn.btn-primary(href="/enter-affirmations") Enter New Affirmations
else
Expand Down

0 comments on commit 4c7fd05

Please sign in to comment.