Add contest organizer form param
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-04-24 11:44:51 +02:00
parent 1650b22407
commit fa8880abfc
9 changed files with 29 additions and 5 deletions

View File

@@ -1,7 +1,17 @@
= render "params_nav"
= form_with model: @contest, url: "/contests/#{@contest.id}/settings/onsite" do |form|
.row.mt-2.mb-3
.row
.col
.alert.alert-warning role="alert"
= t("contests.nav.onsite_description")
.row.mt-1
.col
.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"