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``.
12 lines
368 B
PHP
12 lines
368 B
PHP
@extends('layout.index', [
|
|
'title' => __('Contenus'),
|
|
'subtitle' => __('Editer un contenu'),
|
|
])
|
|
|
|
@section('content')
|
|
{{ Form::open(['route' => 'Admin.Shop.Contents.store', 'id' => 'homepage-form', 'autocomplete' => 'off']) }}
|
|
<input type="hidden" name="id" value="{{ $content['id'] }}">
|
|
@include('Admin.Shop.Contents.form')
|
|
</form>
|
|
@endsection
|