diff --git a/data/app_ui_strings.json b/data/app_ui_strings.json index 243d7df..5b28968 100644 --- a/data/app_ui_strings.json +++ b/data/app_ui_strings.json @@ -1,6 +1,6 @@ { "version": 2, - "description": "Coach-visible app UI strings only (excludes dev settings \/ database tools).", + "description": "Coach-visible app UI strings only (excludes dev settings / database tools).", "keys": [ "all_clients", "answer", @@ -134,7 +134,7 @@ "extreme_glass": "Extrem", "february": "Februar", "fill_all_fields": "Bitte alle Felder ausfüllen!", - "fill_both_fields": "Bitte beide Felder ausfüllen!", + "fill_both_fields": "Bitte Klienten-Code und Coach-Code prüfen.", "hours_short": "h", "january": "Januar", "july": "Juli", diff --git a/lib/dev_fixture.php b/lib/dev_fixture.php index 0bd56a3..0385b68 100644 --- a/lib/dev_fixture.php +++ b/lib/dev_fixture.php @@ -418,7 +418,6 @@ function qdb_dev_build_answers_for_questionnaire(PDO $pdo, string $qnID, int $va break; case 'radio_question': - case 'client_not_signed': $opts = $optionsByQuestion[$q['questionID']] ?? []; if ($opts) { $pick = $opts[$v % count($opts)]; diff --git a/website/js/pages/editor.js b/website/js/pages/editor.js index 62594d1..038a116 100644 --- a/website/js/pages/editor.js +++ b/website/js/pages/editor.js @@ -28,7 +28,6 @@ const LAYOUT_TYPES = [ { value: 'string_spinner', label: 'String Spinner' }, { value: 'free_text', label: 'Free Text' }, { value: 'client_coach_code_question', label: 'Client / Coach Code' }, - { value: 'client_not_signed', label: 'Client Not Signed' }, { value: 'last_page', label: 'Last Page' }, ]; @@ -342,7 +341,6 @@ const QUESTION_LEVEL_NEXT_LAYOUTS = new Set([ 'multi_check_box_question', 'glass_scale_question', 'client_coach_code_question', - 'client_not_signed', 'last_page', ]); @@ -566,25 +564,6 @@ function configFormHTML(layout, config, prefix, opts = {}) { `; break; - case 'client_not_signed': - html = ` -
${esc(config.textKey || 'End of questionnaire.')}
`; break; @@ -434,7 +424,6 @@ function layoutLabel(type) { string_spinner: 'String spinner', free_text: 'Free text', client_coach_code_question: 'Client / coach code', - client_not_signed: 'Client not signed', last_page: 'Last page', }; return labels[type] || type || 'Unknown'; diff --git a/website/temp-assets/questionnaire_0_readme.json b/website/temp-assets/questionnaire_0_readme.json index efbb9ca..228c980 100644 --- a/website/temp-assets/questionnaire_0_readme.json +++ b/website/temp-assets/questionnaire_0_readme.json @@ -25,12 +25,11 @@ { "id": "q2", - "_comment": "Frage nach dem Code des Coaches.", - "layout": "client_not_signed", - "textKey1": "no_consent_entered", - "textKey2": "no_consent_note", - "question": "coach_code_request", - "hint": "coach_code" + "_comment": "Client- und Coach-Code (z. B. wenn Einwilligung nicht unterschrieben).", + "layout": "client_coach_code_question", + "question": "no_consent_entered", + "hint1": "client_code", + "hint2": "coach_code" },