Offline participation: implement completed puzzle methods
Some checks failed
CI / scan_ruby (push) Successful in 20s
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2025-10-31 11:55:28 +01:00
parent 37a65526e4
commit ff5f387a87
13 changed files with 110 additions and 17 deletions

View File

@@ -116,6 +116,8 @@ en:
not_a_csv_file: "it must be a CSV file"
offline:
attributes:
end_image:
blank: Please upload an image
name:
blank: Please enter a name for your participation
start_image:
@@ -218,6 +220,7 @@ en:
create: "Create"
delete: "Delete"
edit: "Edit"
end: Click here to submit your completion
export: Export
import: CSV Import
open: Open
@@ -242,7 +245,8 @@ en:
settings: Settings
log_out: Log out
offlines:
start_image_select: Enter your photo of the puzzle with the provided code written on a paper before starting it
end_image_select: Take a photo of your completed puzzle
start_image_select: Take a photo of the puzzle with the provided code written on a paper before starting it
puzzles:
destroy:
notice: Puzzle deleted

View File

@@ -87,6 +87,8 @@ fr:
not_a_csv_file: "Le fichier doit être au format CSV"
offline:
attributes:
end_image:
blank: Tu dois inclure cette image pour pouvoir valider ton puzzle complété
name:
blank: Tu dois entrer un nom pour pouvoir participer
start_image:
@@ -189,6 +191,7 @@ fr:
create: "Créer"
delete: "Supprimer"
edit: "Modifier"
end: Clique ici pour valider ta complétion du puzzle
export: Exporter
import: Importer un CSV
open: Détails
@@ -213,6 +216,7 @@ fr:
settings: Paramètres
log_out: Déconnexion
offlines:
end_image_select: Prends une photo du puzzle une fois complété
start_image_select: Prends une photo du puzzle avant de le commencer, avec le code donné par l'organisateur.ice écrit sur du papier
puzzles:
destroy:

View File

@@ -34,6 +34,7 @@ Rails.application.routes.draw do
get "public/:id", to: "contests#scoreboard"
get "public/:id/offline", to: "contests#offline_new"
post "public/:id/offline", to: "contests#offline_create"
get "public/:id/offline/:offline_id", to: "contests#offline_edit"
post "public/:id/offline/:offline_id", to: "contests#offline_update"
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"
end