Start CSV importer feature
All checks were successful
CI / scan_ruby (push) Successful in 20s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 32s

This commit is contained in:
sto
2025-05-17 12:03:10 +02:00
parent 5ec0e264ba
commit 939e2157ab
14 changed files with 153 additions and 1 deletions

View File

@@ -49,6 +49,12 @@ en:
invalid: "Allowed formats: xx:xx:xx, x:xx:xx, xx:xx, x:xx"
puzzle_id:
taken: "This contestant has already completed this puzzle"
csv_import:
attributes:
file:
blank: "No file selected"
empty: "This file is empty"
not_a_csv_file: "it must be a CSV file"
completions:
edit:
title: "Edit completion"
@@ -75,6 +81,8 @@ en:
edit:
title: "Participant"
team_title: "Teams"
import:
title: "Import participants from a CSV file"
new:
title: "New participant"
team_title: "New team"
@@ -87,6 +95,7 @@ en:
buttons:
add: "Add"
create: "Create"
import: "CSV Import"
save: "Save"
messages:
convert:

View File

@@ -20,6 +20,12 @@ fr:
invalid: "Formats autorisés: xx:xx:xx, x:xx:xx, xx:xx, x:xx"
puzzle_id:
taken: "Ce.tte participant.e a déjà complété ce puzzle"
csv_import:
attributes:
file:
blank: "Aucun fichier sélectionné"
empty: "Ce fichier est vide"
not_a_csv_file: "Le fichier doit être au format CSV"
completions:
edit:
title: "Modifier la complétion"
@@ -46,6 +52,8 @@ fr:
edit:
title: "Participant.e"
team_title: "Équipe"
import:
title: "Importer des participant.e.s"
new:
title: "Nouveau.elle participant.e"
team_title: "Nouvelle équipe"
@@ -58,6 +66,7 @@ fr:
buttons:
add: "Ajouter"
create: "Créer"
import: "Importer un CSV"
save: "Modifier"
messages:
convert:

View File

@@ -15,6 +15,8 @@ Rails.application.routes.draw do
resources :messages, only: :destroy do
get "convert", to: "messages#convert"
end
get "import", to: "contestants#import"
post "import", to: "contestants#import"
end
resources :passwords, param: :token
resource :session