Allow to delete puzzles
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
.col
|
||||
.form-text Select an image
|
||||
= form.file_field :image, accept: "image/*", class: "form-control"
|
||||
.row
|
||||
.row.mt-4
|
||||
.col
|
||||
- if method == :patch
|
||||
= link_to "Delete", contest_puzzle_path(contest, puzzle), data: { turbo_method: :delete }, class: "btn btn-danger me-2"
|
||||
= form.submit submit_text, class: "btn btn-primary"
|
Reference in New Issue
Block a user