sto 2144c22bd9
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 10s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 33s
Use the friendly ID gem for contest slugs
2025-03-26 17:40:56 +01:00

22 lines
725 B
Plaintext

= form_with model: contest 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-check.form-switch
= form.check_box :team, class: "form-check-input"
= form.label :team
| Team contest
.form-text For UI display purposes mainly
.row.mb-3
.col
.form-check.form-switch
= form.check_box :allow_registration, class: "form-check-input"
= form.label :allow_registration
.form-text Generates a shareable registration form for this contest
.row
.col
= form.submit submit_text, class: "btn btn-primary"