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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user