Add brand to puzzles
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-20 08:59:31 +01:00
parent 5339a864c0
commit 658c50fd04
6 changed files with 15 additions and 3 deletions

View File

@@ -27,7 +27,7 @@
= image_tag puzzle.image if puzzle.image.attached?
.card-body
p.card-text
| TODO puzzle.brand
= puzzle.brand
a.stretched-link href=edit_contest_puzzle_path(@contest, puzzle)
.row
.col

View File

@@ -4,6 +4,11 @@
.form-floating
= form.text_field :name, autocomplete: "off", class: "form-control"
= form.label :name, class: "required"
.row.mb-3
.col
.form-floating
= form.text_field :brand, autocomplete: "off", class: "form-control"
= form.label :brand, class: "required"
.row.mb-3
.col
.form-text Select an image