[WIP] Fix ergonomics rules

This commit is contained in:
Ludovic CANDELLIER
2020-03-30 00:48:17 +02:00
parent 36267139a1
commit cd9b6ea74c
106 changed files with 1392 additions and 747 deletions

View File

@@ -3,6 +3,8 @@
'bodyClass' => 'hold-transition login-page'
])
@include('boilerplate::load.icheck')
@prepend('js')
@include('components.js.ie11')
@include('components.js', ['js' => '/js/main.min.js'])

View File

@@ -1,3 +1,3 @@
<button @if (isset($type))type="{{ $type }}"@else type="submit"@endif class="btn btn-primary save @if (isset($class)){{ $class }}@endif" @if (isset($id_name)) id="{{ $id_name }}"@endif>
<button @if (isset($type))type="{{ $type }}"@else type="submit"@endif class="btn btn-success save @if (isset($class)){{ $class }}@endif" @if (isset($id_name)) id="{{ $id_name }}"@endif>
<i class="fa fa-fw fa-save"></i> Enregistrer
</button>

View File

@@ -1,7 +1,7 @@
@extends('layouts.site', [
'title' => 'Banques',
'subtitle' => 'Liste des banques',
'breadcrumb' => ['Banques']
'title' => 'Accueil',
'subtitle' => '',
'breadcrumb' => ['Accueil']
])
@section('content')

View File

@@ -1,24 +1,34 @@
<h1>
{{ $title }}
@if(isset($subtitle))
<small>{{ $subtitle }}</small>
@endif
</h1>
<ol class="breadcrumb">
<li>
<a href="{{ route('boilerplate.dashboard') }}">
<i class="fa fa-home"></i> {{ __('boilerplate::layout.home') }}
</a>
</li>
@if(isset($breadcrumb))
@foreach($breadcrumb as $label => $route)
@if(is_numeric($label))
<li class="active">{{ $route }}</li>
@elseif(is_array($route))
<li><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
@else
<li><a href="{{ route($route) }}">{{ $label }}</a></li>
@endif
@endforeach
@endif
</ol>
<div class="content-header pt-2 pb-1">
<div class="container-fluid">
<div class="row mb-2 align-items-end">
<div class="col-sm-6">
<h1 class="m-0 text-dark">
{{ $title }}
@if(isset($subtitle))
<small class="font-weight-light ml-1 text-md">{{ $subtitle }}</small>
@endif
</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right text-sm">
<li class="breadcrumb-item">
<a href="{{ route('boilerplate.dashboard') }}">
{{ __('boilerplate::layout.home') }}
</a>
</li>
@if(isset($breadcrumb))
@foreach($breadcrumb as $label => $route)
@if(is_numeric($label))
<li class="breadcrumb-item active">{{ $route }}</li>
@elseif(is_array($route))
<li class="breadcrumb-item"><a href="{{ route($route[0], $route[1]) }}">{{ $label }}</a></li>
@else
<li class="breadcrumb-item"><a href="{{ route($route) }}">{{ $label }}</a></li>
@endif
@endforeach
@endif
</ol>
</div>
</div>
</div>
</div>

View File

@@ -1,12 +1,18 @@
<footer class="main-footer">
<strong>
Made by
@if(config('boilerplate.app.vendorlink'))
<a href="{{ config('boilerplate.app.vendorlink') }}">
{!! config('boilerplate.app.vendorname') !!}
</a>.
@else
{!! config('boilerplate.app.vendorname') !!}.
@endif
</strong>
<footer class="main-footer text-sm">
<strong>
&copy; {{ date('Y') }}
@if(config('boilerplate.theme.footer.vendorlink'))
<a href="{{ config('boilerplate.theme.footer.vendorlink') }}">
{!! config('boilerplate.theme.footer.vendorname') !!}
</a>.
@else
{!! config('boilerplate.theme.footer.vendorname') !!}.
@endif
</strong>
{{ __('boilerplate::layout.rightsres') }}
<div class="float-right d-none d-sm-inline">
<a href="https://github.com/sebastienheyd/boilerplate">
Boilerplate
</a>
</div>
</footer>

View File

@@ -1,30 +1,30 @@
<header class="main-header">
<a href="{{ route('boilerplate.dashboard') }}" class="logo">
<span class="logo-mini"></span>
<span class="logo-lg"></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li>
<a href="{{ route('boilerplate.user.profile') }}">
<img src="{{ Auth::user()->avatar_url }}" class="user-image avatar" alt="User Image"/>
<span class="hidden-xs">{{ Auth::user()->name }}</span>
</a>
</li>
<li>
<a href="{{ route('boilerplate.logout') }}" class="logout">
<span class="hidden-xs">
<span class="fa fa-power-off"></span> {{ __('boilerplate::layout.logout') }}
</span>
</a>
{!! Form::open(['route' => 'boilerplate.logout', 'method' => 'post', 'id' => 'logout-form', 'style'=> 'display:none']) !!}
{!! Form::close() !!}
</li>
</ul>
</div>
</nav>
</header>
<nav class="main-header navbar navbar-expand navbar-{{ config('boilerplate.theme.navbar.bg') }} navbar-{{ config('boilerplate.theme.navbar.type') }} {{ config('boilerplate.theme.navbar.border') ? "" : "border-bottom-0" }}">
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link sidebar-toggle" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
@foreach(app('boilerplate.navbar.items')->getItems('left') as $view)
@include($view)
@endforeach
</ul>
<ul class="nav navbar-nav ml-auto d-flex">
@if(config('boilerplate.theme.navbar.user.visible'))
<li class="nav-item">
<a href="{{ route('boilerplate.user.profile') }}" class="nav-link d-flex align-items-center">
<img src="{{ Auth::user()->avatar_url }}" class="avatar-img img-circle bg-gray mr-2 elevation-{{ config('boilerplate.theme.navbar.user.shadow') }}" alt="{{ Auth::user()->name }}" height="32">
{{ Auth::user()->name }}
</a>
</li>
@endif
@foreach(app('boilerplate.navbar.items')->getItems('right') as $view)
@include($view)
@endforeach
<li class="nav-item">
{!! Form::open(['route' => 'boilerplate.logout', 'method' => 'post', 'id' => 'logout-form']) !!}
<button type="submit" class="btn nav-link d-flex align-items-center logout" data-question="{{ __('boilerplate::layout.logoutconfirm') }}" data-toggle="tooltip" title="{{ __('boilerplate::layout.logout') }}">
<span class="fa fa-power-off hidden-xs pr-1"></span>
</button>
{!! Form::close() !!}
</li>
</ul>
</nav>

View File

@@ -7,44 +7,56 @@
<meta name="robots" content="noindex, nofollow">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ $title }} | {{ config('app.name') }}</title>
<link rel="stylesheet" href="/assets/vendor/boilerplate/boilerplate.min.css">
<link rel="stylesheet" href="{{ mix('/adminlte.min.css', '/assets/vendor/boilerplate') }}">
@stack('css')
</head>
<body class="sidebar-mini skin-{{ config('boilerplate.app.skin', 'blue') }}">
<body class="layout-fixed layout-navbar-fixed sidebar-mini">
<div class="wrapper">
@include('layout.header')
@include('boilerplate::layout.mainsidebar')
<div class="content-wrapper">
<section class="content-header">
@include('layout.contentheader')
</section>
@include('layout.contentheader')
<section class="content">
@yield('content')
<div class="container-fluid">
@yield('content')
</div>
</section>
</div>
@include('layout.footer')
@includeWhen(config('boilerplate.theme.footer.visible', true), 'layout.footer')
<aside class="control-sidebar control-sidebar-{{ config('boilerplate.theme.sidebar.type') }} elevation-{{ config('boilerplate.theme.sidebar.shadow') }}">
<button class="btn btn-sm" data-widget="control-sidebar"><span class="fa fa-times"></span></button>
<div class="control-sidebar-content">
<div class="p-3">
@yield('right-sidebar')
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
</div>
<script src="{{ mix('/bootstrap.min.js', '/assets/vendor/boilerplate') }}"></script>
<script src="{{ mix('/admin-lte.min.js', '/assets/vendor/boilerplate') }}"></script>
<script src="{{ mix('/boilerplate.min.js', '/assets/vendor/boilerplate') }}"></script>
<script>
$(function() {
$.ajaxSetup({headers:{'X-CSRF-TOKEN':'{{ csrf_token() }}'}});
bootbox.setLocale("{{ App::getLocale() }}");
@if(Session::has('growl'))
$.ajaxSetup({headers: {'X-CSRF-TOKEN': '{{ csrf_token() }}'}});
bootbox.setLocale('{{ App::getLocale() }}');
var session = {
keepalive: "{{ route('boilerplate.keepalive', null, false) }}",
expire: {{ time() + config('session.lifetime') * 60 }},
lifetime: {{ config('session.lifetime') * 60 }},
id: "{{ session()->getId() }}"
}
</script>
@if(Session::has('growl'))
<script>
$(function() {
@if(is_array(Session::get('growl')))
growl("{!! Session::get('growl')[0] !!}", "{{ Session::get('growl')[1] }}");
@else
growl("{{Session::get('growl')}}");
@endif
@endif
$('.logout').click(function(e){
e.preventDefault();
if(bootbox.confirm("{{ __('boilerplate::layout.logoutconfirm') }}", function(e){
if(e === false) return;
$('#logout-form').submit();
}));
});
});
</script>
</script>
@endif
@stack('js')
</body>
</html>

View File

@@ -1,18 +1,23 @@
<aside class="main-sidebar">
<section class="sidebar" style="height: auto;">
<div class="user-panel">
<div class="pull-left image">
<a href="{{ route('boilerplate.user.profile') }}">
<img src="{{ Auth::user()->avatar_url }}" class="img-circle avatar" alt="{{ Auth::user()->name }}"/>
</a>
<aside class="main-sidebar {{ config('boilerplate.theme.sidebar.border') ? 'border-right' : ''}} sidebar-{{ config('boilerplate.theme.sidebar.type') }}-{{ config('boilerplate.theme.sidebar.links.bg') }} elevation-{{ config('boilerplate.theme.sidebar.shadow') }}">
<a href="{{ route('boilerplate.dashboard') }}" class="brand-link {{ !empty(config('boilerplate.theme.sidebar.brand.bg')) ? 'bg-'.config('boilerplate.theme.sidebar.brand.bg') : ''}}">
<span class="brand-logo bg-{{ config('boilerplate.theme.sidebar.brand.logo.bg') }} elevation-{{ config('boilerplate.theme.sidebar.brand.logo.shadow') }}">
{!! config('boilerplate.theme.sidebar.brand.logo.icon') !!}
</span>
<span class="brand-text">{!! config('boilerplate.theme.sidebar.brand.logo.text') !!}</span>
</a>
<div class="sidebar">
@if(config('boilerplate.theme.sidebar.user.visible'))
<div class="user-panel py-3 d-flex">
<div class="image">
<img src="{{ Auth::user()->avatar_url }}" class="avatar-img img-circle elevation-{{ config('boilerplate.theme.sidebar.user.shadow') }}" alt="{{ Auth::user()->name }}">
</div>
<div class="info">
<a href="{{ route('boilerplate.user.profile') }}" class="d-block">{{ Auth::user()->name }}</a>
</div>
</div>
<div class="pull-left info">
<p>{{ Auth::user()->name }}</p>
<a href="{{ route('boilerplate.logout') }}" class="logout">
<i class="fa fa-circle text-success"></i> {{ __('boilerplate::layout.online') }}
</a>
</div>
</div>
{!! $menu !!}
</section>
</aside>
@endif
<nav class="mt-3">
{!! $menu !!}
</nav>
</div>
</aside>

View File

@@ -35,7 +35,7 @@
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ route('boilerplate.dashboard') }}"><i class="fa fa-cog"></i> Accès à l'administration</a>
<a class="dropdown-item" href="{{ route('admin') }}"><i class="fa fa-cog"></i> Accès à l'administration</a>
<a class="dropdown-item" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
Déconnexion

View File

@@ -1,13 +1,13 @@
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12">
<a href="{!! route('Shop.Admin.Orders.index') !!}">
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_lots_envente)) ? $nb_lots_envente : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Lots disponibles'])
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_orders)) ? $nb_orders : 0, 'class' => 'bg-aqua', 'icon' => 'fa-building-o', 'text' => 'Commandes'])
</a>
</div>
<!-- /.col -->
<div class="col-md-3 col-sm-6 col-xs-12">
<a href="{!! route('Shop.Admin.Invoices.index') !!}">
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_lots_optionne)) ? $nb_lots_optionne : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Options'])
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_invoices)) ? $nb_invoices : 0, 'class' => 'bg-red', 'icon' => 'fa-clock-o', 'text' => 'Factures'])
</a>
</div>
<!-- /.col -->
@@ -17,13 +17,13 @@
<div class="col-md-3 col-sm-6 col-xs-12">
<a href="{!!route('Shop.Admin.Orders.index') !!}">
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_dossiers_encours)) ? $nb_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'Dossiers en cours'])
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_dossiers_encours)) ? $nb_dossiers_encours : 0, 'class' => 'bg-yellow', 'icon' => 'fa-hourglass-start', 'text' => 'CA du mois'])
</a>
</div>
<!-- /.col -->
<div class="col-md-3 col-sm-6 col-xs-12">
<a href="{!! route('Shop.Admin.Orders.index') !!}">
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_ventes)) ? $nb_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Ventes'])
@include('shop.admin.Dashboard.components.infobox', ['count' => (isset($nb_ventes)) ? $nb_ventes : 0, 'class' => 'bg-green', 'icon' => 'fa-check-square-o', 'text' => 'Panier moyen'])
</a>
</div>
<!-- /.col -->

View File

@@ -1,38 +0,0 @@
@extends('layout.index', [
'title' => __('lots.title'),
'subtitle' => __('lots.create.title'),
'breadcrumb' => [__('lots.title'), __('lots.create.title')]
])
@include('boilerplate::load.icheck')
@include('boilerplate::load.fileinput')
@prepend('js')
@include('components.js', ['js' => '/js/main.min.js'])
@endprepend
@push('css')
@include('components.css', ['css' => '/css/main.min.css'])
@endpush
@section('content')
{{ Form::open(['route' => 'Hestimmo.Lots.store', 'id' => 'lot-form', 'autocomplete' => 'off', 'files' => true]) }}
<div class="row">
<div class="col-sm-12 mbl">
<a href="{{ route("Hestimmo.Lots.index") }}" class="btn btn-default">
{{ __('lots.list.title') }}
</a>
<span class="btn-group pull-right">
@include('components.button-save')
</span>
</div>
</div>
@include('Hestimmo.modules.Lot.lot_form')
</form>
@endsection

View File

@@ -1,94 +0,0 @@
@extends('layout.index', [
'title' => __('lots.title'),
'subtitle' => __('lots.list.title'),
'breadcrumb' => [__('lots.title')]
])
@section('content')
<div class="box">
<div class="box-body">
<table class="table table-striped table-hover va-middle" id="lot-table">
<thead>
<tr>
<th>
@include('components.select', ['name' => 'statut', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_lot_statuts])
</th>
<th>
@include('components.select', ['name' => 'type_dispositif', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_dispositifs])
</th>
<th>
@include('components.select', ['name' => 'residence', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $residences])
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th>
@include('components.select', ['name' => 'type_lot', 'class' => 'form-control-sm', 'style' => 'padding: 2px;', 'list' => $type_lots])
</th>
<th style="min-width: 100px;">
<input type="text" class="form-control-sm" style="max-width: 80px;">
</th>
<th style="min-width: 160px; max-width: 160px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th style="max-width: 120px;">
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th>
</th>
</tr>
<tr>
<th>Statut</th>
<th>Dispositif</th>
<th>Résidence</th>
<th>Référence</th>
<th>Type</th>
<th>Surface</th>
<th>Surface Ext.</th>
<th>Prix total</th>
<th>Prix achat</th>
<th>Package</th>
<th>F. Notaire</th>
<th>F. Bancaire</th>
<th>Loyer logement</th>
<th>Loyer stat.</th>
<th style="min-width: 82px; max-width: 82px;"></th>
</tr>
</thead>
</table>
</div>
</div>
@endsection
@prepend('js')
@include('components.js.ie11')
@include('components.js', ['js' => '/js/laroute.js'])
@include('components.js', ['js' => '/js/main.min.js'])
@include('components.js', ['js' => '/js/datatables.min.js'])
@endprepend
@push('js')
@include('components.js', ['js' => '/js/lot_index.min.js'])
@endpush
@push('css')
@include('components.css', ['css' => '/css/main.min.css'])
@include('components.css', ['css' => '/css/datatables.min.css'])
@endpush

View File

@@ -1,73 +0,0 @@
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active">
<a href="#lot-renseignement" data-toggle="tab" aria-expanded="true">
Renseignement
</a>
</li>
<li>
<a href="#lot-documentation" data-toggle="tab" aria-expanded="true">
Documentations
@if(isset($documents_count))<span class="badge">{{ $documents_count }}</span>@endif
</a>
</li>
<li>
<a href="#lot-photo" id="lot-photo-tab" data-toggle="tab" aria-expanded="true">
Photos
@if(isset($photos_count))<span class="badge">{{ $photos_count }}</span>@endif
</a>
</li>
<li>
<a href="#lot-option" id="lot-option-tab" data-toggle="tab" aria-expanded="true">
Options
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="lot-renseignement">
@include('Hestimmo.modules.Lot.partials.edit-renseignement')
</div>
<div class="tab-pane" id="lot-documentation">
@include('Hestimmo.modules.Lot.partials.edit-documentation')
</div>
<div class="tab-pane" id="lot-photo">
@include('Hestimmo.modules.Lot.partials.edit-photo')
</div>
<div class="tab-pane" id="lot-option">
@include('Hestimmo.modules.Lot.partials.edit-option')
</div>
</div>
</div>
@push('js')
@include('components.js', ['js' => '/js/laroute.js'])
<script>
$('.editor').summernote({
lang: 'fr-FR',
height: 120,
toolbar: [
// [groupName, [list of button]]
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['para', ['ul', 'ol', 'paragraph']],
['color', ['color']],
]
});
$('.save').click(function() {
$(this).prop('disabled', true);
$(this).html('en cours...');
$( "#lot-form" ).submit();
return true;
})
</script>
<!-- Include Google Maps JS API -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&amp;key={{ env('GOOGLE_GEOLOCATION_API_KEY') }}"></script>
<script type="text/javascript" src="/js/geo_autocomplete.js"></script>
@endpush

View File

@@ -1,125 +0,0 @@
@extends('layout.index', [
'title' => __('lots.title'),
'subtitle' => __('lots.demande.title'),
'breadcrumb' => [__('lots.demande.title')]
])
@section('content')
{{ Form::open(['route' => 'Hestimmo.Lots.disponibles', 'id' => 'lot-form', 'autocomplete' => 'off']) }}
<div class="row">
<div class="col-md-offset-2 col-md-8">
<div class="box box-info">
<div class="box-body">
<div class="col-xs-12 col-md-4">
<div class="form-group">
<select name="type_produit_id" class="form-control">
<option>Type de produits</option>
@foreach($type_produits as $key => $type_produit)
<option value="{{$key}}">{{$type_produit}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<select name="type_lot_id" class="form-control">
<option>Type de lots</option>
@foreach($type_lots as $key => $type_lot)
<option value="{{$key}}">{{$type_lot}}</option>
@endforeach
</select>
</div>
<div class="form-group">
<select name="ville" id="ville" class="form-control" placeholder="Ville"></select>
</div>
<div class="form-group">
<input type="number" style="width: 100%;" id="distance" name="distance" data-provide="slider" data-slider-min="0" data-slider-max="40" data-slider-step="5" >
</div>
<div class="form-group">
Distance : <span id="distanceSliderVal">5</span> km
</div>
</div>
<div class="col-xs-12 col-md-8">
<div class="form-group">
<label class="col-sm-12">Budget</label>
<div class="col-sm-12">
<div class="form-group">
<input type="number" style="width: 100%;" id="budget" name="budget" data-provide="slider" data-slider-min="10000" data-slider-max="1000000" data-slider-step="10000" >
</div>
<div class="small-box bg-aqua">
<div class="inner">
<h3 id="budgetSliderVal">10 000</h3>
<p>Montant +/- 5000 </p>
</div>
<div class="icon">
<i class="fa fa-eur"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row text-center">
<button type="submit" class="btn btn-info">Rechercher</button>
<p></p>
</div>
</div>
</div>
</div>
</form>
@include('Hestimmo.modules.Lot.partials.list-mini')
@endsection
@include('boilerplate::load.datatables')
@include('boilerplate::load.select2')
@push('js')
<script src="/js/bootstrap-slider.min.js"></script>
<script>
$(function () {
var mySlider = $("input.slider").slider();
$("#budget").on("slide", function(slideEvt) {
$("#budgetSliderVal").text(slideEvt.value);
});
$("#distance").on("slide", function(slideEvt) {
$("#distanceSliderVal").text(slideEvt.value);
});
$('#ville').select2({
ajax: {
url: "{{ route('Villes.autocomplete') }}",
data: function (params) {
var query = {
search: params.term
}
// Query parameters will be ?search=[term]&type=public
return query;
}
}
});
});
</script>
@endpush
@push('css')
<link rel="stylesheet" href="/css/bootstrap-slider.min.css">
@endpush

View File

@@ -0,0 +1,22 @@
@extends('boilerplate::layout.index', [
'title' => __('shop.sections.title'),
'subtitle' => __('shop.sections.add'),
'breadcrumb' => [__('shop.sections.title'), __('shop.sections.add')]
])
@include('boilerplate::load.fileinput')
@section('content')
{{ Form::open(['route' => 'Shop.Admin.Sections.store', 'id' => 'form', 'autocomplete' => 'off', 'files' => true]) }}
<div class="row">
<div class="col-12 text-right">
@include('components.button-save')
</div>
</div>
@include('Shop.Admin.Sections.form')
</form>
@endsection

View File

@@ -0,0 +1,38 @@
<div class="row">
<div class="col-md-8">
{{ Form::label('name', 'Nom') }}
@include('components.input', ['name' => 'name', 'value' => (isset($section['name'])) ? $section['name'] : null, 'required' => true])
{{ Form::label('description', 'Description') }}
@include('components.textarea', ['name' => 'description', 'id_name' => 'description', 'value' => (isset($section['description'])) ? $section['description'] : null, 'required' => true])
{{ Form::label('description', 'Rubrique parente') }}
</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12 row-new-lot-photo row-lot-photo mt-3">
<!--
<p>
<button type="button" class="btn btn-danger delete-new-lot-photo-btn"><i class="fa fa-minus-circle"></i></button>
Photo <span class="row-photo-number"></span>
</p>
-->
<input name="lot_photos[][file]" type="file" class="file" data-show-upload="false" data-show-caption="true" data-msg-placeholder="Choisissez une photo">
</div>
</div>
</div>
@include('boilerplate::load.tinymce')
@push('js')
<script>
$(function() {
$('#description').tinymce({});
})
</script>
@endpush

View File

@@ -0,0 +1,46 @@
@extends('boilerplate::layout.index', [
'title' => __('shop.sections.title'),
'breadcrumb' => [__('shop.sections.title')]
])
@section('content')
<div class="box">
<div class="box-body">
<table class="table table-striped table-hover va-middle" id="section-table">
<thead>
<tr>
<th>
<input type="text" class="form-control-sm" style="max-width: 100px;">
</th>
<th>
</th>
<th class="text-right">
<a href="{{ route('Shop.Admin.Sections.create') }}" class="btn btn-sm btn-success">{{ __('shop.sections.add') }} <i class="fa fa-plus"></i></a>
</th>
</tr>
<tr>
<th>Nom</th>
<th>Nb produits</th>
<th></th>
</tr>
</thead>
</table>
</div>
</div>
@endsection
@prepend('js')
@include('components.js.ie11')
@include('components.js', ['js' => '/js/laroute.js'])
@include('components.js', ['js' => '/js/main.min.js'])
@include('components.js', ['js' => '/js/datatables.min.js'])
@endprepend
@push('js')
@include('components.js', ['js' => '/js/section_index.min.js'])
@endpush
@push('css')
@include('components.css', ['css' => '/css/main.min.css'])
@include('components.css', ['css' => '/css/datatables.min.css'])
@endpush

View File

@@ -70,7 +70,7 @@
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
<a href="{{ route('boilerplate.login') }}">Login</a>
@if (Route::has('register'))
<a href="{{ route('register') }}">Register</a>