From 8dc9e59a68c1fe9cedda5f065dc95af4b5931187 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Fri, 27 Mar 2026 11:14:09 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D1=91=D0=BD=20edit.blade.php=20+=20strip=5Ftags=20=D0=B2=20ind?= =?UTF-8?q?ex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ edit.blade.php полностью переписан под create.blade.php ✅ TinyMCE для текста вопроса и пояснения ✅ Картинки в ответах (просмотр + загрузка новых) ✅ Поддержка matching и ordering ✅ index.blade.php: strip_tags для текста вопроса ✅ tests/show.blade.php: strip_tags для текста вопроса Co-authored-by: Qwen-Coder --- .../views/admin/questions/edit.blade.php | 116 +++++++++++++++--- .../views/admin/questions/index.blade.php | 2 +- resources/views/admin/tests/show.blade.php | 2 +- 3 files changed, 100 insertions(+), 20 deletions(-) diff --git a/resources/views/admin/questions/edit.blade.php b/resources/views/admin/questions/edit.blade.php index 40e3e21..b9fded7 100644 --- a/resources/views/admin/questions/edit.blade.php +++ b/resources/views/admin/questions/edit.blade.php @@ -9,7 +9,7 @@

Редактировать вопрос

Назад -
+ @csrf @method('PUT')
@@ -19,30 +19,36 @@
- +
- + Отображается после ответа
+
@foreach($question->answers as $answer)
- + + + @if($answer->image) + Ответ + @endif - +
@endforeach @@ -50,7 +56,8 @@
-
@@ -93,29 +115,78 @@ + + @endsection diff --git a/resources/views/admin/questions/index.blade.php b/resources/views/admin/questions/index.blade.php index b8f0d34..d31c560 100644 --- a/resources/views/admin/questions/index.blade.php +++ b/resources/views/admin/questions/index.blade.php @@ -32,7 +32,7 @@ @elseif($question->type === 'ordering') @endif - {{ Str::limit($question->question_text, 100) }} + {{ strip_tags($question->question_text) }}
{{ $question->answers->count() }} ответов@if($question->matchingPairs->count() > 0), {{ $question->matchingPairs->count() }} пар@endif @if($question->is_required) Обязательный@endif diff --git a/resources/views/admin/tests/show.blade.php b/resources/views/admin/tests/show.blade.php index 6645575..e1142be 100644 --- a/resources/views/admin/tests/show.blade.php +++ b/resources/views/admin/tests/show.blade.php @@ -58,7 +58,7 @@ {{ $loop->iteration }} - {{ Str::limit($question->question_text, 80) }} + {{ Str::limit(strip_tags($question->question_text), 80) }} @if($question->is_required)@endif