From 96b8553b1f7a7a08086f82b8b54a4526031b4243 Mon Sep 17 00:00:00 2001 From: sto Date: Wed, 18 Jun 2025 15:00:02 +0200 Subject: [PATCH] Add puzzle fake data recommendation --- app/views/puzzles/_form.html.slim | 3 +++ config/locales/en.yml | 2 ++ config/locales/fr.yml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/app/views/puzzles/_form.html.slim b/app/views/puzzles/_form.html.slim index 85c48ea..9fe9b8a 100644 --- a/app/views/puzzles/_form.html.slim +++ b/app/views/puzzles/_form.html.slim @@ -1,4 +1,7 @@ = form_with model: puzzle, url: url, method: method do |form| + .row.mb-3 + .col.alert.alert-warning + = t("puzzles.form.fake_data_recommendation") .row.mb-3 .col .form-floating diff --git a/config/locales/en.yml b/config/locales/en.yml index ed0f727..ebaf11b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -143,6 +143,8 @@ en: puzzles: edit: title: "Edit contest puzzle" + form: + fake_data_recommendation: It is recommended to first enter a fake name and image, and to use the real ones only once the contest starts. image_select: "Select an image" new: title: "New contest puzzle" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index dcf0d81..69783a9 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -114,6 +114,8 @@ fr: puzzles: edit: title: "Modifier le puzzle" + form: + fake_data_recommendation: Il est recommendé d'entrer de faux noms et images, et de mettre les vrais uniquement quand le concours démarre. image_select: "Choisis une image" new: title: "Nouveau puzzle"