Start CSV importer feature
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user