Offline participation: already submitted page
This commit is contained in:
@@ -124,6 +124,10 @@ class ContestsController < ApplicationController
|
|||||||
if !@offline
|
if !@offline
|
||||||
not_found and return
|
not_found and return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if @offline.images.length > 1
|
||||||
|
render :offline_already_submitted and return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def offline_update
|
def offline_update
|
||||||
|
|||||||
2
app/views/contests/offline_already_submitted.html.slim
Normal file
2
app/views/contests/offline_already_submitted.html.slim
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
.mt-3
|
||||||
|
= t("offlines.form.already_submitted")
|
||||||
@@ -246,6 +246,7 @@ en:
|
|||||||
log_out: Log out
|
log_out: Log out
|
||||||
offlines:
|
offlines:
|
||||||
form:
|
form:
|
||||||
|
already_submitted: You have already completed the puzzle
|
||||||
completed_message: Thanks for your participation!
|
completed_message: Thanks for your participation!
|
||||||
end_image_select: Take a photo of your completed puzzle
|
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
|
start_image_select: Take a photo of the puzzle with the provided code written on a paper before starting it
|
||||||
|
|||||||
@@ -217,6 +217,7 @@ fr:
|
|||||||
log_out: Déconnexion
|
log_out: Déconnexion
|
||||||
offlines:
|
offlines:
|
||||||
form:
|
form:
|
||||||
|
already_submitted: Tu as déjà complété ton puzzle
|
||||||
completed_message: Merci pour ta participation !
|
completed_message: Merci pour ta participation !
|
||||||
end_image_select: Prends une photo du puzzle une fois complété
|
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
|
start_image_select: Prends une photo du puzzle avant de le commencer, avec le code donné par l'organisateur.ice écrit sur du papier
|
||||||
|
|||||||
Reference in New Issue
Block a user