From 0c2f46c9ca6c0bfef8590bd8d37e228934f91a24 Mon Sep 17 00:00:00 2001 From: carlobeltrame Date: Sun, 28 Jul 2024 17:36:11 +0200 Subject: [PATCH] Add headings --- app/Models/EvaluationGridRowTemplate.php | 2 +- lang/de/t.php | 1 + .../js/components/evaluationGrid/InputEvaluationGrid.vue | 2 ++ .../js/components/print/evaluationGrid/EvaluationGridRow.jsx | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Models/EvaluationGridRowTemplate.php b/app/Models/EvaluationGridRowTemplate.php index f90dde90..7ad1bbdb 100644 --- a/app/Models/EvaluationGridRowTemplate.php +++ b/app/Models/EvaluationGridRowTemplate.php @@ -13,7 +13,7 @@ */ class EvaluationGridRowTemplate extends Model { - const CONTROL_TYPES = ['slider', 'radiobuttons', 'checkbox']; + const CONTROL_TYPES = ['slider', 'radiobuttons', 'checkbox', 'heading']; /** * The table associated with the model. diff --git a/lang/de/t.php b/lang/de/t.php index 4e379875..749d9f40 100644 --- a/lang/de/t.php +++ b/lang/de/t.php @@ -118,6 +118,7 @@ "checkbox" => "Checkbox", "radiobuttons" => "➖ / ➕ / ✨", "slider" => "Skala von 1 - 10", + "heading" => "Zwischentitel", ), "criterion" => "Kriterium", ), diff --git a/resources/js/components/evaluationGrid/InputEvaluationGrid.vue b/resources/js/components/evaluationGrid/InputEvaluationGrid.vue index e3082393..09f84a65 100644 --- a/resources/js/components/evaluationGrid/InputEvaluationGrid.vue +++ b/resources/js/components/evaluationGrid/InputEvaluationGrid.vue @@ -1,7 +1,9 @@