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,15 @@
@extends('boilerplate::layout.index', [
'title' => __('Botanic.families.title'),
'subtitle' => __('Botanic.families.add'),
'breadcrumb' => [__('Botanic.families.title'), __('Botanic.families.add')]
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Admin.Botanic.Families.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
@include('Admin.Botanic.Families.form')
</form>
@endsection

View File

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

View File

@@ -0,0 +1,41 @@
<div class="row mb-3">
<div class="col-md-8">
<div class="row mb-3">
<div class="col-6">
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'name', 'value' => (isset($family['name'])) ? $family['name'] : null, 'required' => true])
</div>
<div class="col-6">
{{ Form::label('alias', 'Alias') }}
@include('components.input', ['name' => 'alias', 'value' => (isset($family['alias'])) ? $family['alias'] : null])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('latin', 'Nom latin') }}
@include('components.input', ['name' => 'latin', 'value' => (isset($family['latin'])) ? $family['latin'] : null, 'required' => true])
</div>
</div>
<div class="row mb-3">
<div class="col-12">
{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'value' => isset($family['description']) ? $family['description'] : null, 'class' => 'editor', 'required' => true])
</div>
</div>
</div>
</div>
@include('components.save')
@include('load.form.editor')
@push('js')
<script>
$(function() {
initEditor();
});
</script>
@endpush

View File

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

View File

@@ -0,0 +1,28 @@
@extends('layout.index', [
'title' => __('families.title'),
'subtitle' => __('families.title'),
'breadcrumb' => [__('families.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>
</h4>
</div>
<div class="col-md-12">
</div>
</div>
</div>
</div>
</div>
@endsection