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"
|
1
app/views/contests/edit.html.slim
Normal file
1
app/views/contests/edit.html.slim
Normal file
@@ -0,0 +1 @@
|
||||
= render "form", contest: @contest, submit_text: "Save"
|
@@ -1 +1 @@
|
||||
= render "form", contest: @contest
|
||||
= render "form", contest: @contest, submit_text: "Create"
|
@@ -0,0 +1,2 @@
|
||||
a.btn.btn-primary href=edit_contest_path(@contest)
|
||||
| Edit
|
Reference in New Issue
Block a user