-
- {{ boardEntry.name }}
-
+
+
+
+
+
+
+ No Question to show
+
+
+ {{ question.text }}
+
+
+
+
+ {{ question.text }}
+
+
+
![User uploaded - No caption available]()
+
+
+
+
+
+
+ {{ boardEntry.category.name }}
+
+
+
+
+
+ {{ boardEntry.points }}
+
+
+
+
+
+ Answer:
{{ boardEntry.answer.text }}
+
+
+
+
-
-
- Entry
-
+
+
+
+
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/src/components/blocks/CreatePanel.vue b/src/main/webapp/src/components/blocks/CreatePanel.vue
index fc766eb..a2856ce 100644
--- a/src/main/webapp/src/components/blocks/CreatePanel.vue
+++ b/src/main/webapp/src/components/blocks/CreatePanel.vue
@@ -4,16 +4,19 @@ import type { Board } from '@/models/board/Board';
import EditCategoryPanel from '@/components/blocks/EditCategoryPanel.vue';
import EditBoardPanel from '@/components/blocks/EditBoardPanel.vue';
import EditBoardEntryPanel from '@/components/blocks/EditBoardEntryPanel.vue';
+import EditQuestionPanel from './EditQuestionPanel.vue';
const props = defineProps<{
categoryIndex: number | null,
boardEntryIndex: number | null,
+ questionIndex: number | null,
}>()
const emit = defineEmits<{
editBoard: [],
editCategory: [cIndex: number],
editBoardEntry: [cIndex: number, bEIndex: number],
+ editQuestion: [cIndex: number, bEIndex: number, qIndex: number],
}>()
const board = defineModel
( { required: true } );
@@ -27,14 +30,44 @@ function editCategory(cIndex: number){
function editBoardEntry(cIndex: number, bEIndex: number){
emit("editBoardEntry", cIndex, bEIndex);
}
+function editQuestion(cIndex: number, bEIndex: number, qIndex: number){
+ emit("editQuestion", cIndex, bEIndex, qIndex);
+}
-
-
-
+
+
+
+
diff --git a/src/main/webapp/src/components/blocks/EditBoardEntryPanel.vue b/src/main/webapp/src/components/blocks/EditBoardEntryPanel.vue
index e633abe..de2b1ba 100644
--- a/src/main/webapp/src/components/blocks/EditBoardEntryPanel.vue
+++ b/src/main/webapp/src/components/blocks/EditBoardEntryPanel.vue
@@ -1,10 +1,12 @@
@@ -70,7 +77,7 @@ function openCategory(categoryIndex: number) {
-
- Questions
+
{{ t( "board.question.label", 2 ) }}
+
+
+ {{ t( "board.question.label", 0 ) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ question.questionType.title }}
+
+ ({{ question.text.length === 0 ? 'No Text yet' : question.text }})
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ t('board.answer.label', 2) }}
+
+
+
+
diff --git a/src/main/webapp/src/components/blocks/EditQuestionPanel.vue b/src/main/webapp/src/components/blocks/EditQuestionPanel.vue
new file mode 100644
index 0000000..5b1793a
--- /dev/null
+++ b/src/main/webapp/src/components/blocks/EditQuestionPanel.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
{{ t( "board.question.infos" ) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/webapp/src/components/blocks/NavBar.vue b/src/main/webapp/src/components/blocks/NavBar.vue
index 7a66069..686c365 100644
--- a/src/main/webapp/src/components/blocks/NavBar.vue
+++ b/src/main/webapp/src/components/blocks/NavBar.vue
@@ -67,7 +67,7 @@ userStore.userCheckPromise