sto 0cbd2e4fdc
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
Add puzzles to contests
2025-03-15 14:28:24 +01:00

13 lines
455 B
Plaintext

= form_with model: puzzle, url: "/contests/#{contest.id}/puzzles", method: :post do |form|
.row.mb-3
.col
.form-floating
= form.text_field :name, autocomplete: "off", class: "form-control"
= form.label :name, class: "required"
.row.mb-3
.col
.form-text Select an image
= form.file_field :image, accept: "image/*", class: "form-control"
.row
.col
= form.submit submit_text, class: "btn btn-primary"