Implement offline POST method for starting an offline participation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
ActionView::Base.field_error_proc = proc do |html_tag, instance|
|
||||
if html_tag.include? "<label"
|
||||
if (html_tag.include? "<label") || (html_tag.include? "<input accept=\"image")
|
||||
appended_html = ""
|
||||
if instance.error_message.is_a?(Array)
|
||||
appended_html = "<div class='error-message form-text'>#{instance.error_message.map(&:capitalize).uniq.join(", ")}</div>"
|
||||
|
||||
@@ -74,6 +74,8 @@ en:
|
||||
processed: Processed?
|
||||
text: Content
|
||||
time: Time
|
||||
offline:
|
||||
name: Your name
|
||||
puzzle:
|
||||
brand: Brand
|
||||
image: Image
|
||||
@@ -112,6 +114,12 @@ en:
|
||||
blank: "No file selected"
|
||||
empty: "This file is empty"
|
||||
not_a_csv_file: "it must be a CSV file"
|
||||
offline:
|
||||
attributes:
|
||||
name:
|
||||
blank: Please enter a name for your participation
|
||||
start_image:
|
||||
blank: Please upload an image
|
||||
puzzle:
|
||||
attributes:
|
||||
name:
|
||||
@@ -216,6 +224,7 @@ en:
|
||||
refresh: Refresh
|
||||
sign_in: Sign in
|
||||
save: Save
|
||||
start: Click here to start your participation
|
||||
field: Field
|
||||
none: No field selected
|
||||
rank: Rank
|
||||
@@ -232,6 +241,8 @@ en:
|
||||
home: My contests
|
||||
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
|
||||
puzzles:
|
||||
destroy:
|
||||
notice: Puzzle deleted
|
||||
|
||||
@@ -45,6 +45,8 @@ fr:
|
||||
processed: Traité ?
|
||||
text: Contenu
|
||||
time: Temps
|
||||
offline:
|
||||
name: Ton nom ou pseudo
|
||||
puzzle:
|
||||
brand: Marque
|
||||
image: Image
|
||||
@@ -83,6 +85,12 @@ fr:
|
||||
blank: "Aucun fichier sélectionné"
|
||||
empty: "Ce fichier est vide"
|
||||
not_a_csv_file: "Le fichier doit être au format CSV"
|
||||
offline:
|
||||
attributes:
|
||||
name:
|
||||
blank: Tu dois entrer un nom pour pouvoir participer
|
||||
start_image:
|
||||
blank: Tu dois inclure cette image pour pouvoir participer
|
||||
puzzle:
|
||||
attributes:
|
||||
name:
|
||||
@@ -187,6 +195,7 @@ fr:
|
||||
refresh: Rafraîchir
|
||||
sign_in: Se connecter
|
||||
save: Modifier
|
||||
start: Clique ici pour démarrer ta participation
|
||||
field: Champ
|
||||
none: Aucun champ sélectionné
|
||||
rank: Rang
|
||||
@@ -203,6 +212,8 @@ fr:
|
||||
home: Mes concours
|
||||
settings: Paramètres
|
||||
log_out: Déconnexion
|
||||
offlines:
|
||||
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:
|
||||
notice: Puzzle supprimé
|
||||
|
||||
Reference in New Issue
Block a user