Make asking for missing pieces in forms optional
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-08-25 09:26:29 +02:00
parent 95c336be65
commit 00e14b7cff
9 changed files with 20 additions and 5 deletions

View File

@@ -10,13 +10,17 @@
.form-check.form-switch
= form.check_box :organizer_form, class: "form-check-input"
= form.label :organizer_form
.form-text = t("activerecord.attributes.contest.organizer_form")
.row.mt-3.mb-3
.col
.form-floating
= form.text_field :code, autocomplete: "off", class: "form-control"
= form.label :code, class: "required"
.form-text = t("activerecord.attributes.contest.code_description")
.row.mt-1
.col
.form-check.form-switch
= form.check_box :missing_pieces, class: "form-check-input"
= form.label :missing_pieces
.row.mt-4
.col
= form.submit t("helpers.buttons.update"), class: "btn btn-primary"