Add exports & fix on edition

This commit is contained in:
Ludovic CANDELLIER
2020-08-03 23:09:26 +02:00
parent 1e685cfefb
commit b7d03fc5c4
28 changed files with 190 additions and 136 deletions

View File

@@ -6,6 +6,6 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Botanic.Admin.Families.index'), 'model' => 'Families'])
@include('components.datatable', ['route' => route('Botanic.Admin.Families.index'), 'model' => 'families'])
@endcomponent
@endsection

View File

@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Botanic.Admin.Genres.index'), 'model' => 'BotanicGenres'])
@include('components.datatable', ['route' => route('Botanic.Admin.Genres.index'), 'model' => 'genres'])
@endcomponent
@endsection

View File

@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Botanic.Admin.Species.index'), 'model' => 'BotanicSpecies'])
@include('components.datatable', ['route' => route('Botanic.Admin.Species.index'), 'model' => 'species'])
@endcomponent
@endsection

View File

@@ -6,7 +6,7 @@
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Botanic.Admin.Varieties.index'), 'model' => 'BotanicVarieties'])
@include('components.datatable', ['route' => route('Botanic.Admin.Varieties.index'), 'model' => 'varieties'])
@endcomponent
@endsection

View File

@@ -11,18 +11,6 @@
{{ Form::open(['route' => 'Shop.Admin.Articles.store', 'id' => 'article-form', 'autocomplete' => 'off', 'files' => true]) }}
<input type="hidden" name="id" id="id" value="{{ $id }}">
<div class="row">
<div class="col-sm-12 mbl">
<a href="{{ route("Shop.Admin.Articles.index") }}" class="btn btn-default">
{{ __('Shop.articles.title') }}
</a>
<span class="btn-group pull-right">
@include('components.button-save')
</span>
</div>
</div>
@include('Shop.Admin.Articles.form')
</form>

View File

@@ -24,8 +24,8 @@
</div>
<div class="col-4">
{{ Form::label('generic_price_id', 'Générique') }}<br/>
@include('components.select', ['name' => "prices[$key][article_generic_price_id]", 'value' => $price['article_generic_price_id'] ?? null, 'list' => ['Tarif barquette','Tarif semences'], 'required' => false, 'class' => 'form-control-sm'])
{{ Form::label('price_generic_id', 'Générique') }}<br/>
@include('components.select', ['name' => "prices[$key][article_price_generic_id]", 'value' => $price['article_price_generic_id'] ?? null, 'list' => $price_generics ?? null, 'required' => false, 'class' => 'form-control-sm'])
</div>
<div class="col-3">

View File

@@ -24,8 +24,8 @@
</div>
<div class="col-4">
{{ Form::label('generic_price_id', 'Générique') }}<br/>
@include('components.select', ['name' => "prices[0][article_generic_price_id]", 'value' => $price['article_generic_price_id'] ?? null, 'list' => ['Tarif barquette','Tarif semences'], 'required' => false, 'class' => 'form-control-sm'])
{{ Form::label('price_generic_id', 'Générique') }}<br/>
@include('components.select', ['name' => "prices[0][article_price_generic_id]", 'value' => $price['article_price_generic_id'] ?? null, 'list' => $price_generics ?? null, 'required' => false, 'class' => 'form-control-sm'])
</div>
<div class="col-3">