Add puzzles to contests
This commit is contained in:
13
app/views/puzzles/_form.html.slim
Normal file
13
app/views/puzzles/_form.html.slim
Normal file
@@ -0,0 +1,13 @@
|
||||
= form_with model: puzzle, url: "/contests/#{contest.id}/puzzles", method: :post 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-text Select an image
|
||||
= form.file_field :image, accept: "image/*", class: "form-control"
|
||||
.row
|
||||
.col
|
||||
= form.submit submit_text, class: "btn btn-primary"
|
||||
Reference in New Issue
Block a user