Rename Admin views directory, add some functions on models
This commit is contained in:
15
resources/views/Admin/Botanic/Families/create.blade.php
Normal file
15
resources/views/Admin/Botanic/Families/create.blade.php
Normal 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
|
||||
16
resources/views/Admin/Botanic/Families/edit.blade.php
Normal file
16
resources/views/Admin/Botanic/Families/edit.blade.php
Normal 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
|
||||
41
resources/views/Admin/Botanic/Families/form.blade.php
Normal file
41
resources/views/Admin/Botanic/Families/form.blade.php
Normal 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
|
||||
11
resources/views/Admin/Botanic/Families/list.blade.php
Normal file
11
resources/views/Admin/Botanic/Families/list.blade.php
Normal 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
|
||||
28
resources/views/Admin/Botanic/Families/show.blade.php
Normal file
28
resources/views/Admin/Botanic/Families/show.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user