Allow to delete contests
All checks were successful
CI / scan_ruby (push) Successful in 21s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 16s
CI / test (push) Successful in 40s

This commit is contained in:
sto
2026-03-11 09:33:35 +01:00
parent 54cd8cdcb0
commit 8dc45a2ca2
5 changed files with 32 additions and 2 deletions

View File

@@ -27,7 +27,6 @@
= t("contests.scoreboard.hide_offline")
javascript:
document.getElementById('offline').addEventListener('change', (e) => {
console.log('changed');
if (e.target.checked) addParam('hide_offline', e.target.checked);
else removeParam('hide_offline');
})

View File

@@ -31,4 +31,7 @@
.form-text = t("activerecord.attributes.contest.allow_registration_description")
.row.mt-4
.col
= form.submit t("helpers.buttons.update"), class: "btn btn-primary"
= form.submit t("helpers.buttons.update"), class: "btn btn-primary"
button.btn.btn-danger.ms-3 type="button" id="contest_deletion_modal_button"
= t("contests.modals.destroy.button")
= render "modal", path: contest_path(@contest), modal_title: t("contests.modals.destroy.title", contest: @contest.name), modal_text: t("contests.modals.destroy.text", contest: @contest.name), modal_id: "contest_deletion_modal"