Add team switch
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
= form_with model: contest do |form|
|
||||
.row
|
||||
.row.mb-3
|
||||
.col
|
||||
.form-floating
|
||||
= form.text_field :name, autocomplete: "off", class: "form-control"
|
||||
= form.label :name, class: "required"
|
||||
.row
|
||||
.col
|
||||
.form-check.form-switch
|
||||
= form.check_box :team, class: "form-check-input"
|
||||
= form.label :team
|
||||
| Team contest
|
||||
.form-text For registration and UI display purposes
|
||||
div.mt-3
|
||||
= form.submit "Create", class: "btn btn-primary"
|
||||
= form.submit submit_text, class: "btn btn-primary"
|
||||
Reference in New Issue
Block a user