Add public form to add completions
Some checks failed
CI / scan_ruby (push) Successful in 23s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 16s
CI / test (push) Failing after 43s

This commit is contained in:
sto
2025-11-20 10:24:26 +01:00
parent b87800f6bd
commit 3e071f9281
8 changed files with 78 additions and 9 deletions

View File

@@ -170,6 +170,8 @@ en:
edit:
notice: Completion updated
title: Edit completion
form:
validate_name: "Validate a puzzle for %{name}"
new:
notice: Completion added
title: New completion

View File

@@ -141,6 +141,8 @@ fr:
edit:
notice: Complétion modifiée
title: Modifier la complétion
form:
validate_name: "Valider un puzzle pour %{name}"
new:
notice: Complétion ajoutée
title: Ajout d'une complétion

View File

@@ -44,4 +44,7 @@ Rails.application.routes.draw do
get "public/:id/offline/:token", to: "contests#offline_edit"
patch "public/:id/offline/:token", to: "contests#offline_update"
get "public/:id/offline/:token/completed", to: "contests#offline_completed"
get "public/p/:token", to: "contestants#get_public_completion"
post "public/p/:token", to: "contestants#post_public_completion"
get "public/p/:token/updated", to: "contestants#public_completion_updated"
end