change homepages to contents, add new methods to deliveries and sale_channels by customer
This commit is contained in:
14
resources/views/Admin/Shop/Contents/create.blade.php
Normal file
14
resources/views/Admin/Shop/Contents/create.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Ajouter un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open([
|
||||
'route' => 'Admin.Shop.Contents.store',
|
||||
'id' => 'homepage-form',
|
||||
'autocomplete' => 'off',
|
||||
]) }}
|
||||
@include('Admin.Shop.Contents.form')
|
||||
</form>
|
||||
@endsection
|
||||
11
resources/views/Admin/Shop/Contents/edit.blade.php
Normal file
11
resources/views/Admin/Shop/Contents/edit.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Editer un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Contents.store', 'id' => 'content-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $content['id'] }}">
|
||||
@include('Admin.Shop.Contents.form')
|
||||
</form>
|
||||
@endsection
|
||||
23
resources/views/Admin/Shop/Contents/form.blade.php
Normal file
23
resources/views/Admin/Shop/Contents/form.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('components.form.editor', [
|
||||
'name' => 'text',
|
||||
'value' => $content['text'] ?? '',
|
||||
'rows' => 10,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-save />
|
||||
|
||||
@include('load.form.save')
|
||||
@include('load.form.editor')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initSaveForm('#homepage-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
13
resources/views/Admin/Shop/Contents/list.blade.php
Normal file
13
resources/views/Admin/Shop/Contents/list.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Liste des contenus'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
<x-card>
|
||||
@include('components.datatable', [
|
||||
'route' => route('Admin.Shop.Contents.index'),
|
||||
'model' => 'contents',
|
||||
])
|
||||
</x-card>
|
||||
@endsection
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Ajouter un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
{{ Form::open(['route' => 'Admin.Shop.Homepages.store', 'id' => 'homepage-form', 'autocomplete' => 'off']) }}
|
||||
@include('Admin.Shop.Homepages.form')
|
||||
</form>
|
||||
@endsection
|
||||
@@ -1,13 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Editer un contenu'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Homepages.store', 'id' => 'homepage-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $homepage['id'] }}">
|
||||
@include('Admin.Shop.Homepages.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
@@ -1,23 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('components.form.editor', [
|
||||
'name' => 'text',
|
||||
'value' => $homepage['text'] ?? '',
|
||||
'rows' => 10,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
|
||||
@include('load.form.save')
|
||||
@include('load.form.editor')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initSaveForm('#homepage-form');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Contenus'),
|
||||
'subtitle' => __('Liste des contenus'),
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Admin.Shop.Homepages.index'), 'model' => 'homepages'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
Reference in New Issue
Block a user