fix(school-info): perbaiki 3 bug — @json ganti @js (x-data rusak karena quote tidak ter-escape), _method pakai :value PUT/POST (create tidak lagi 405/500), pastikan edit memuat data benar
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
: '—';
|
: '—';
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
<div class="space-y-6" x-data="schoolInfoForm(@json($itemsData))">
|
<div class="space-y-6" x-data="schoolInfoForm(@js($itemsData))">
|
||||||
|
|
||||||
{{-- Breadcrumb --}}
|
{{-- Breadcrumb --}}
|
||||||
<nav class="flex items-center gap-1.5 text-xs text-slate-500">
|
<nav class="flex items-center gap-1.5 text-xs text-slate-500">
|
||||||
@@ -168,7 +168,7 @@
|
|||||||
<form class="p-5 space-y-4" method="POST"
|
<form class="p-5 space-y-4" method="POST"
|
||||||
:action="id ? '{{ route('settings.school-info.update', 0) }}'.replace('/0', '/' + id) : '{{ route('settings.school-info.store') }}'">
|
:action="id ? '{{ route('settings.school-info.update', 0) }}'.replace('/0', '/' + id) : '{{ route('settings.school-info.store') }}'">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="_method" value="PUT" x-show="id">
|
<input type="hidden" name="_method" :value="id ? 'PUT' : 'POST'">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label class="block text-xs font-bold text-slate-700 mb-1.5">Judul Informasi <span class="text-rose-500">*</span></label>
|
<label class="block text-xs font-bold text-slate-700 mb-1.5">Judul Informasi <span class="text-rose-500">*</span></label>
|
||||||
|
|||||||
Reference in New Issue
Block a user