Rename Admin views directory, add some functions on models

This commit is contained in:
Ludovic CANDELLIER
2021-07-27 22:12:58 +02:00
parent daeece59c9
commit 9a0601d473
229 changed files with 81 additions and 349 deletions

View File

@@ -0,0 +1,13 @@
@extends('layout.index', [
'title' => __('Botanic.genres.title'),
'subtitle' => __('Botanic.genres.add'),
'breadcrumb' => [__('Botanic.genres.title'), __('Botanic.genres.add')]
])
@section('content')
{{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
@include('Admin.Botanic.Genres.form')
</form>
@endsection

View File

@@ -0,0 +1,16 @@
@extends('layout.index', [
'title' => __('Botanic.genres.title'),
'subtitle' => __('Botanic.genres.edit'),
'breadcrumb' => ['Familles']
])
@section('content')
{{ Form::open(['route' => 'Admin.Botanic.Genres.store', 'id' => 'form', 'autocomplete' => 'off']) }}
<input type="hidden" name="id" value="{{ $genre['id'] }}">
@include('Admin.Botanic.Genres.form')
</form>
@endsection

View File

@@ -0,0 +1,43 @@
<div class="row">
<div class="col-md-8">
<div class="row mb-3">
<div class="col-12">
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'name', 'value' => $genre['name'] ?? null, 'required' => true])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('family', 'Famille') }}
@include('components.select', ['name' => 'family_id', 'list' => $families, 'value' => $genre['family_id'] ?? null, 'required' => false])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('alias', 'Alias') }}
@include('components.input', ['name' => 'alias', 'value' => $genre['alias'] ?? null, 'required' => false])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('latin', 'Nom latin') }}
@include('components.input', ['name' => 'latin', 'value' => $genre['latin'] ?? null, 'required' => false])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'value' => $genre['description'] ?? null, 'class' => 'editor', 'required' => false])
</div>
</div>
</div>
</div>
@include('components.save')

View File

@@ -0,0 +1,12 @@
@extends('layout.index', [
'title' => __('Botanic.genres.title'),
'subtitle' => __('Botanic.genres.list'),
'breadcrumb' => [__('Botanic.genres.title')]
])
@section('content')
@component('components.card')
@include('components.datatable', ['route' => route('Admin.Botanic.Genres.index'), 'model' => 'genres'])
@endcomponent
@endsection

View File

@@ -0,0 +1,30 @@
@extends('layout.index', [
'title' => __('products.title'),
'subtitle' => __('products.title'),
'breadcrumb' => [__('products.title')]
])
@section('content')
<div class="row">
<div class="col-md-offset-2 col-md-8">
<div class="box box-info">
<div class="box-body">
<div class="col-md-6">
<h3>{{ name }}</h3>
<h4>
{{ $product.section.name }}<br>
</h4>
</div>
<div class="col-md-12">
@include('components.carousel')
</div>
</div>
</div>
</div>
</div>
@endsection