add methods to get icon on article natures
This commit is contained in:
@@ -4,11 +4,14 @@
|
||||
'breadcrumb' => [__('shop.article_natures.title'), __('shop.article_natures.edit')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.ArticleNatures.store', 'id' => 'article_nature-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
{{ Form::open([
|
||||
'route' => 'Admin.Shop.ArticleNatures.store',
|
||||
'id' => 'article_nature-form',
|
||||
'autocomplete' => 'off',
|
||||
'files' => true,
|
||||
]) }}
|
||||
<input type="hidden" name="id" value="{{ $article_nature['id'] }}">
|
||||
@include('Admin.Shop.ArticleNatures.form')
|
||||
</form>
|
||||
|
||||
@@ -1,41 +1,59 @@
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ Form::label('product_type', 'Famille de produit') }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'product_type',
|
||||
'value' => $article_nature['product_type'] ?? null,
|
||||
'list' => $product_types ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-8">
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
<div class="col-6">
|
||||
{{ Form::label('product_type', 'Famille de produit') }}
|
||||
@include('components.form.select', [
|
||||
'name' => 'product_type',
|
||||
'value' => $article_nature['product_type'] ?? null,
|
||||
'list' => $product_types ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
<div class="col-6">
|
||||
{{ Form::label('name', 'Nom') }}
|
||||
@include('components.form.input', ['name' => 'name', 'value' => $article_nature['name'] ?? null, 'required' => true])
|
||||
@include('components.form.input', [
|
||||
'name' => 'name',
|
||||
'value' => $article_nature['name'] ?? null,
|
||||
'required' => true,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
@include('components.form.textarea', ['name' => 'description', 'value' => $article_nature['description'] ?? null, 'class' => 'editor', 'required' => false])
|
||||
@include('components.form.textarea', [
|
||||
'name' => 'description',
|
||||
'value' => $article_nature['description'] ?? null,
|
||||
'class' => 'editor',
|
||||
'required' => false,
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<x-card title="{{ __('icone') }}">
|
||||
@include('components.widgets.imgUpload', [
|
||||
'name' => 'icon',
|
||||
'id_name' => 'icon',
|
||||
'file' => $article_nature['icon'] ?? false,
|
||||
])
|
||||
</x-card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('components.save')
|
||||
<x-save />
|
||||
|
||||
@include('load.form.editor')
|
||||
@include('load.form.upload.fileinput')
|
||||
@include('load.form.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
initEditor();
|
||||
initUploadImage();
|
||||
initSaveForm('#article_nature-form');
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user