[WIP] Fix ergonomics rules
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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&key={{ env('GOOGLE_GEOLOCATION_API_KEY') }}"></script>
|
||||
<script type="text/javascript" src="/js/geo_autocomplete.js"></script>
|
||||
@endpush
|
||||
@@ -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
|
||||
22
resources/views/shop/admin/Sections/create.blade.php
Normal file
22
resources/views/shop/admin/Sections/create.blade.php
Normal 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
|
||||
38
resources/views/shop/admin/Sections/form.blade.php
Normal file
38
resources/views/shop/admin/Sections/form.blade.php
Normal 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
|
||||
|
||||
46
resources/views/shop/admin/Sections/list.blade.php
Normal file
46
resources/views/shop/admin/Sections/list.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user