[WIP] Refactor project
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_families.title'),
|
||||
'subtitle' => __('article_families.create.title'),
|
||||
'breadcrumb' => [__('article_families.title'), __('article_families.create.title')]
|
||||
'title' => __('customers.title'),
|
||||
'subtitle' => __('customers.create.title'),
|
||||
'breadcrumb' => [__('customers.title'), __('customers.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.store', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
{{ Form::open(['route' => 'Shop.Admin.Customers.store', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.Articles.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.list.title') }}
|
||||
<a href="{{ route("Shop.Admin.Customers.index") }}" class="btn btn-default">
|
||||
{{ __('customers.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
@include('Shop.Admin.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'title' => 'Clients',
|
||||
'subtitle' => 'Edition d\'un client',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@@ -8,22 +8,9 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.ArticleFamilies.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
{{ Form::open(['route' => 'Shop.Admin.Customers.update', 'id' => 'customer-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $customer['id'] }}">
|
||||
@include('Shop.Admin.Customers.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -12,18 +12,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="float-right mt-3">
|
||||
@include('components.button-save')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('components.save')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.editor').tinymce({});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -1,21 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.article_families.title'),
|
||||
'subtitle' => __('Shop.article_families.list'),
|
||||
'breadcrumb' => [__('Shop.article_families.title')]
|
||||
'title' => __('Shop.customers.title'),
|
||||
'subtitle' => __('Shop.customers.list'),
|
||||
'breadcrumb' => [__('Shop.customers.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.ArticleFamilies.create') }}" class="btn btn-sm btn-success">{{ __('Shop.Admin.ArticleFamilies.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Customers.index'), 'model' => 'customers'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/ArticleFamilies', 'model' => 'articlefamilies'])
|
||||
@endpush
|
||||
@@ -1,28 +1,16 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('article_families.title'),
|
||||
'subtitle' => __('article_families.create.title'),
|
||||
'breadcrumb' => [__('article_families.title'), __('article_families.create.title')]
|
||||
'title' => __('invoices.title'),
|
||||
'subtitle' => __('invoices.create.title'),
|
||||
'breadcrumb' => [__('invoices.title'), __('invoices.create.title')]
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.store', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.Articles.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
{{ Form::open(['route' => 'Shop.Admin.Invoices.store', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
|
||||
@include('Shop.Admin.Invoices.form')
|
||||
@include('components.save')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'title' => 'Factures',
|
||||
'subtitle' => 'Edition d\'une facture',
|
||||
'breadcrumb' => ['Articles']
|
||||
])
|
||||
|
||||
@@ -8,22 +8,11 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Shop.Admin.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
{{ Form::open(['route' => 'Shop.Admin.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $invoice['id'] }}">
|
||||
@include('Shop.Admin.Invoices.form')
|
||||
@include('components.button-save')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Shop.Admin.ArticleFamilies.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.button-save')
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Shop.Admin.ArticleFamilies.form')
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -1,21 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.article_families.title'),
|
||||
'subtitle' => __('Shop.article_families.list'),
|
||||
'breadcrumb' => [__('Shop.article_families.title')]
|
||||
'title' => __('Shop.invoices.title'),
|
||||
'subtitle' => __('Shop.invoices.list'),
|
||||
'breadcrumb' => [__('Shop.invoices.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.ArticleFamilies.create') }}" class="btn btn-sm btn-success">{{ __('Shop.Admin.ArticleFamilies.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Invoices.index'), 'model' => 'invoices'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/ArticleFamilies', 'model' => 'articlefamilies'])
|
||||
@endpush
|
||||
@@ -1,21 +1,11 @@
|
||||
@extends('layout.index', [
|
||||
'title' => __('Shop.article_families.title'),
|
||||
'subtitle' => __('Shop.article_families.list'),
|
||||
'breadcrumb' => [__('Shop.article_families.title')]
|
||||
'title' => __('Shop.orders.title'),
|
||||
'subtitle' => __('Shop.orders.list'),
|
||||
'breadcrumb' => [__('Shop.orders.title')]
|
||||
])
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row pb-3">
|
||||
<div class="col text-right">
|
||||
<a href="{{ route('Shop.Admin.ArticleFamilies.create') }}" class="btn btn-sm btn-success">{{ __('Shop.Admin.ArticleFamilies.add') }} <i class="fa fa-plus"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{$dataTable->table()}}
|
||||
|
||||
@component('components.card')
|
||||
@include('components.datatable', ['route' => route('Shop.Admin.Orders.index'), 'model' => 'orders'])
|
||||
@endcomponent
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@include('components.js.datatable', ['route' => '/Shop/Admin/ArticleFamilies', 'model' => 'articlefamilies'])
|
||||
@endpush
|
||||
Reference in New Issue
Block a user