fix: correct form ID mismatch preventing admin content saving

The edit view used ``id='content-form'`` while the shared
``form.blade.php`` calls ``initSaveForm('#homepage-form')``.
The jQuery selector never found the form, so clicking Save
did nothing. Aligned the edit form ID to ``homepage-form``.
This commit is contained in:
Valentin Lab
2026-02-13 04:07:37 +01:00
parent 552b823b8b
commit 9903579b98

View File

@@ -4,7 +4,7 @@
]) ])
@section('content') @section('content')
{{ Form::open(['route' => 'Admin.Shop.Contents.store', 'id' => 'content-form', 'autocomplete' => 'off']) }} {{ Form::open(['route' => 'Admin.Shop.Contents.store', 'id' => 'homepage-form', 'autocomplete' => 'off']) }}
<input type="hidden" name="id" value="{{ $content['id'] }}"> <input type="hidden" name="id" value="{{ $content['id'] }}">
@include('Admin.Shop.Contents.form') @include('Admin.Shop.Contents.form')
</form> </form>