Add puzzles to contests
This commit is contained in:
@@ -1,10 +1,31 @@
|
||||
.row.mb-4
|
||||
.row.mb-2
|
||||
.col
|
||||
- @badges.each do |badge|
|
||||
span.badge.text-bg-info.me-2
|
||||
= badge
|
||||
|
||||
.row
|
||||
.row.mb-4
|
||||
.col
|
||||
a.btn.btn-primary href=edit_contest_path(@contest)
|
||||
| Edit
|
||||
| Edit contest
|
||||
|
||||
.row.mb-4
|
||||
.col
|
||||
h4 Puzzles
|
||||
.float-end
|
||||
a.btn.btn-primary href=new_contest_puzzle_path(@contest)
|
||||
| Add puzzle
|
||||
.row.row-cols-1.row-cols-md-3.g-4.mb-4
|
||||
- @puzzles.each do |puzzle|
|
||||
.col
|
||||
.card.h-100
|
||||
.card-header
|
||||
= puzzle.name
|
||||
= image_tag puzzle.image, class: "card-img-top" if puzzle.image.attached?
|
||||
.card-body
|
||||
p.card-text
|
||||
| TODO puzzle.brand
|
||||
a.btn.btn-primary href=edit_contest_puzzle_path(@contest, puzzle)
|
||||
| Edit
|
||||
.col
|
||||
h4 Teams
|
Reference in New Issue
Block a user