From 15d7a47bea2815d4852c62984b256d658e8b3742 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 12 Apr 2021 16:50:20 +0200 Subject: site: show hint for unselected radio buttons In surveys containing radio buttons, there will now be a nice little hint directly beneath them if none were selected when attempting to submit (in addition to the relatively nondescript "not all required questions were filled in"-hint at the bottom of the form) --- site/i18n.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'site/i18n.js') diff --git a/site/i18n.js b/site/i18n.js index 829373e..e3d7662 100644 --- a/site/i18n.js +++ b/site/i18n.js @@ -28,7 +28,10 @@ let langs = { // error message in case the post request failed entirely (i.e. printed if the .catch-clause of the fetch() function is reached) "Error: could not post":"Error: The http POST request did not succeed.", // error message in case the post request returned some other status code than 200; its status code and message will be appended in the next line after the text given here - "Error: post returned error":"Error: The http POST request returned an error code:" + "Error: post returned error":"Error: The http POST request returned an error code:", + + // HINTS WHEN ATTEMPTING TO SUBMIT + "Have to select an option": "You have to select an option here" }, de : { "Error: nothing here": "Hier ist nichts. Evtl. hilft es, etwas hinten an die url dranzuhängen?\n\nAnsonsten: bist du dir sicher, dass du den ganzen Link hierher kopiert hast?", @@ -43,7 +46,8 @@ let langs = { "Enter Passphrase": "Passphrase eingeben", "Error: answers invalid":"Einige verpflichtenden Antworten fehlen!", "Error: could not post":"Fehler: Die http POST Anfrage schlug fehl.", - "Error: post returned error":"Fehler: Die http POST Anfragen schlug fehl und gab einen Fehlercode zurück:" + "Error: post returned error":"Fehler: Die http POST Anfragen schlug fehl und gab einen Fehlercode zurück:", + "Have to select an option": "Pflichtfeld", } } -- cgit v1.2.3