[WIP] Setup of skeleton

This commit is contained in:
Ludovic CANDELLIER
2020-03-25 00:08:27 +01:00
parent baf8e13c25
commit 36267139a1
377 changed files with 18248 additions and 26 deletions

View File

@@ -0,0 +1,32 @@
<div class="form-group {{ $errors->has('addresse') ? 'has-error' : '' }}">
{{ Form::label('adresse', 'Adresse') }}
<input name="adresse" id="adresse" class="form-control" value="@if (isset($adresse)) {{ $adresse }}@endif">
{{ Form::label('complement_adresse', 'Complément d\'adresse') }}
<input name="complement_adresse" id="complement_adresse" class="form-control" value="@if (isset($complement_adresse)){{ $complement_adresse }}@endif">
<div class="row m-top-8">
<div class="col-md-4">
{{ Form::label('code_postal', 'Code postal') }}
<input type="text" name="code_postal" id="code_postal" class="form-control" value="@if (isset($code_postal)){{ $code_postal }}@endif">
</div>
<div class="col-md-8">
{{ Form::label('ville', 'Ville') }}
@include('components.city', ['name' => $ville])
</div>
</div>
<input type="hidden" name="lattitude" id="lattitude" value="">
<input type="hidden" name="longitude" id="longitude" value="">
</div>
@include('boilerplate::load.select2')
@push('js')
<!-- 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="autocomplete.js"></script>
@endpush

View File

@@ -0,0 +1 @@
<button @if (isset($type))type="{{ $type }}"@else type="button"@endif class="btn btn-success @if (isset($class)){{ $class }}@endif" @if (isset($id)) id="{{ $id }}"@endif><i class="fa fa-plus"></i></button>

View File

@@ -0,0 +1,3 @@
<button @if (isset($type))type="{{ $type }}"@else type="button"@endif class="btn btn-danger @if (isset($class)){{ $class }}@endif" @if (isset($id)) id="{{ $id }}"@endif>
<i class="fa @if (isset($icon)){{ $icon }}@else fa-trash @endif"></i>
</button>

View File

@@ -0,0 +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>
<i class="fa fa-fw fa-save"></i> Enregistrer
</button>

View File

@@ -0,0 +1,37 @@
<div class="modal fade" id="modal-gallery" tabindex="-1" role="dialog" aria-hidden="true" style="height: 100%;">
<div class="modal-dialog" role="document" style="width: 98%; height: 92%; padding: 0;">
<div class="modal-content" style="height: 100%; border-radius: 0;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body" style="height: 90%;">
</div>
</div>
</div>
</div>
<script>
function handle_gallery(gallery, carousel, selector) {
/* activate the carousel */
$(carousel).carousel({interval:false});
/* change modal title when slide changes */
$(carousel).on('slid.bs.carousel', function () {
$('.modal-title').html($(this).find('.active').attr("title"));
});
/* when clicking a thumbnail */
$(selector + ' .item').click(function(){
var idx = $(this).data('index');
var id = parseInt(idx);
// alert(id);
$(gallery).modal('show'); // show the modal
$(carousel).carousel(id); // slide carousel to selected
});
}
</script>

View File

@@ -0,0 +1,45 @@
<div class="row" style="height: 100%;">
<div class="col-md-12" style="height: 100%;">
<div @if (isset($id_name)) id="{{ $id_name }}" @endif class="carousel slide" data-ride="carousel" style="height: 100%;" data-id="@if (isset($id)){{ $id }}@endif">
<div class="carousel-inner" role="listbox" style="height: 100%;">
@foreach ($slides as $slide)
<div data-index="{{ $loop->index }}" class="item @if ($loop->first) active @endif" style="height: 100%; background-image: url({{ App\Repositories\Core\Upload::getSrc($slide) }}); background-size: contain; background-position: center; background-repeat: no-repeat;">
</div>
<!--
<div class="item @if ($loop->first) active @endif">
<img src="{{ App\Repositories\Core\Upload::getSrc($slide) }}" class="img-responsive" alt="...">
</div>
-->
@endforeach
</div>
<a class="left carousel-control" href="#@if (isset($id_name)){{ $id_name }}@endif" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Précédent</span>
</a>
<a class="right carousel-control" href="#@if (isset($id_name)){{ $id_name }}@endif" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Suivant</span>
</a>
</div>
</div>
</div>
@if (isset($with_modal) && $with_modal)
<script>
var id = $('#{{ $id_name }}').data('id');
$('#modal-gallery .modal-body').load(laroute.route('Hestimmo.Lots.getGallery', {id : id}), function() {
handle_gallery('#modal-gallery','#modal-carousel','#{{ $id_name }}');
});
</script>
@endif
<script>
@if (isset($id_name))
$('#{{ $id_name }}.carousel').carousel();
@else
$('.carousel').carousel();
@endif
</script>

View File

@@ -0,0 +1,7 @@
<input type="checkbox"
name="{{ $name }}"
id="@if (isset($id_name)){{ $id_name }}@else{{ $name }}@endif"
@if (isset($class)) class="{{ $class }}" @endif
@if (isset($val)) value="{{ $val }}" @endif
@if (isset($value) && isset($val) && ($value == $val)) checked @endif
>

View File

@@ -0,0 +1,36 @@
@include('components.select', ['name' => $name.'_id', 'id_name' => $name.'_id', 'class' => 'form-control', 'list' => (isset($list)) ? $list : null, 'value' => (isset($value)) ? $value : null, 'style' => 'width: 100%;'])
<input type="hidden" name="{{ $name }}" id="{{ $name }}" @if (isset($value) && isset($list) && $value) value="{{ $list[$value] }}"@endif>
@include('boilerplate::load.select2')
@push('js')
<script>
$(function() {
$('#{{ $name }}_id').select2({
placeholder: "Sélectionnez une Ville",
delay: 250,
ajax: {
url: "{{ route('Villes.autocomplete') }}",
dataType: 'json',
data: function (params) {
var query = {
search: params.term,
}
// Query parameters will be ?search=[term]
return query;
}
}
});
$("#{{ $name }}_id").on("select2:select", function (e) {
var select_val = $(e.currentTarget).text();
var ville_sel = select_val.trim();
ville_sel = ville_sel.replace(/\(.*\)/g, "");
ville_sel = ville_sel.trim();
$('#{{ $name }}').val(ville_sel);
});
});
</script>
@endpush

View File

@@ -0,0 +1,25 @@
<div class="form-group {{ $errors->has('contact') ? 'has-error' : '' }}">
<div class="row">
<div class="col-md-6">
{{ Form::label('tel_perso', 'Téléphone domicile') }}
<input type="text" name="tel_perso" id="tel_perso" value="@if (isset($tel_perso)){{ $tel_perso }}@endif" class="form-control" data-inputmask="'mask': '99.99.99.99.99'">
</div>
<div class="col-md-6">
{{ Form::label('tel_pro', 'Téléphone professionnel') }}
<input type="text" name="tel_pro" id="tel_pro" value="@if (isset($tel_pro)){{ $tel_pro }}@endif" class="form-control" data-inputmask="'mask': '99.99.99.99.99'">
</div>
</div>
<div class="row m-top-8">
<div class="col-md-6">
{{ Form::label('Mobile', 'Mobile') }}
<input type="text" name="mobile" id="mobile" value="@if (isset($mobile)){{ $mobile }}@endif" class="form-control" data-inputmask="'mask': '99.99.99.99.99'">
</div>
<div class="col-md-6">
{{ Form::label('email', 'Email') }}
<input type="email" name="email" id="email" value="@if (isset($email)){{ $email }}@endif" class="form-control">
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
<link rel="stylesheet" href="{{ $css }}{{ App\Repositories\Core\Cache::getAutoVersion($css) }}">

View File

@@ -0,0 +1 @@
@include('components.input', ['class' => 'datepicker', 'mask' => '99/99/9999'])

View File

@@ -0,0 +1 @@
@include('components.input', ['class' => 'datetimepicker', 'mask' => '99/99/9999 99:99'])

View File

@@ -0,0 +1 @@
@include('components.input', ['type' => 'email'])

View File

@@ -0,0 +1,9 @@
<input
type="file"
name="{{ $name }}"
id="@if (isset($id_name)){{ $id_name }}@else{{ $name }}@endif"
class="file @if (isset($class)){{ $class }}@endif"
data-show-upload="false"
data-show-caption="true"
data-msg-placeholder=@if (isset($placeholder))"{{ $placeholder }}" @else "Choisissez un fichier" @endif
>

View File

@@ -0,0 +1,16 @@
<input
type=@if (isset($type))"{{ $type }}"@else"text"@endif
name="{{ $name }}"
id="@if (isset($id_name)){{ $id_name }}@else{{ $name }}@endif"
class="form-control @if (isset($class)){{ $class }}@endif"
value="@if (isset($value)){{ $value }}@endif"
@if (isset($required))
required="required"
@endif
@if (isset($mask))
data-inputmask="'mask': '{{ $mask }}'"
@endif
@if (isset($meta))
{{ $meta }}
@endif
>

View File

@@ -0,0 +1 @@
<script src="{{ $js }}{{ App\Repositories\Core\Cache::getAutoVersion($js) }}"></script>

View File

@@ -0,0 +1,4 @@
@prepend('js')
<script src="/js/polyfill.min.js"></script>
<script src="/js/es6-promise.min.js"></script>
@endprepend

View File

@@ -0,0 +1 @@
@include('components.input', ['type' => 'number'])

View File

@@ -0,0 +1 @@
@include('components.input', ['type' => 'number'])

View File

@@ -0,0 +1,14 @@
@if (isset($list) && count($list))
@foreach($list as $item)
<option
@if (isset($value) && ($item['id'] == $value)) selected @endif value="{{$item['id']}}"
@foreach($item as $item_key => $item_value)
@if (($item_key != 'id') && ($item_key != 'txt'))
data-{{ $item_key }}="{{ $item_value }}"
@endif
@endforeach
>
{{ $item['txt'] }}
</option>
@endforeach
@endif

View File

@@ -0,0 +1,5 @@
@if (isset($list) && count($list))
@foreach($list as $key => $item)
<option @if (isset($value) && ($key == $value)) selected @endif value="{{$key}}">{{ $item }}</option>
@endforeach
@endif

View File

@@ -0,0 +1,3 @@
@include('components.person')
@include('components.address')
@include('components.contact')

View File

@@ -0,0 +1,24 @@
<div class="form-group {{ $errors->has('person') ? 'has-error' : '' }}">
<div class="row">
<div class="col-md-2">
{{ Form::label('civilite', 'Civilité') }}
<select name="civilite" id="civilite" class="form-control">
<option value=""></option>
<option value="1">M.</option>
<option value="2">Mme</option>
</select>
</div>
<div class="col-md-5">
{{ Form::label('prenom', 'Prénom') }}
<input type="text" name="prenom" id="prenom" value="@if (isset($prenom)){{ $prenom }}@endif" class="form-control">
</div>
<div class="col-md-5">
{{ Form::label('nom', 'Nom') }}
<input type="text" name="nom" id="nom" value="@if (isset($nom)){{ $nom }}@endif" class="form-control">
</div>
</div>
</div>

View File

@@ -0,0 +1 @@
@include('components.input', ['mask' => '99.99.99.99.99'])

View File

@@ -0,0 +1,13 @@
<select
name="{{ $name }}"
@if (isset($id_name))id="{{ $id_name }}"@endif
class="@if (isset($class)){{ $class }} @else form-control @endif"
@if (isset($style))style="{{ $style }}" @endif
>
<option></option>
@if (isset($complex) && $complex)
@include('components.options-complex')
@else
@include('components.options')
@endif
</select>

View File

@@ -0,0 +1,6 @@
<textarea
name="{{ $name }}"
@if (isset($id_name))id="{{ $id_name }}"@endif
class="form-control @if (isset($class)){{ $class }}@endif"
@if (isset($rows)) rows="{{ $rows }}"@endif
>@if (isset($value)){{ $value }}@endif</textarea>

View File

@@ -0,0 +1,19 @@
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Uploader un fichier</h4>
</div>
<div class="modal-body">
@include('components.upload-dropzone', ['dropzone_title' => 'Téléverser vos documents', 'dropzone_id' => 'dropzone_document'])
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,64 @@
<div class="row">
<div class="col-sm-6 offset-sm-1">
<h2 class="page-heading">{{ $dropzone_title }} <span id="counter"></span></h2>
<form method="post" action="{{ route('attachments.dropzone') }}" enctype="multipart/form-data" class="dropzone" id="{{ $dropzone_id }}">
@csrf
<div class="dz-message">
<div class="col-xs-8">
<div class="message">
<p>Glisser/Déposer vos fichiers ou cliquez pour téléverser</p>
</div>
</div>
</div>
<div class="fallback">
<input type="file" name="file" multiple>
</div>
</form>
</div>
</div>
{{--Dropzone Preview Template--}}
<div id="preview" style="display: none;">
<div class="dz-preview dz-file-preview">
<div class="dz-image"><img data-dz-thumbnail /></div>
<div class="dz-details">
<div class="dz-size"><span data-dz-size></span></div>
<div class="dz-filename"><span data-dz-name></span></div>
</div>
<div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>
<div class="dz-error-message"><span data-dz-errormessage></span></div>
<div class="dz-success-mark">
<svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.2.1 (9971) - http://www.bohemiancoding.com/sketch -->
<title>Check</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>
</g>
</svg>
</div>
<div class="dz-error-mark">
<svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.2.1 (9971) - http://www.bohemiancoding.com/sketch -->
<title>error</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">
<path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
</div>
</div>
</div>
{{--End of Dropzone Preview Template--}}

View File

@@ -0,0 +1,19 @@
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Uploader un fichier</h4>
</div>
<div class="modal-body">
@include('components.upload-dropzone', ['dropzone_title' => 'Téléverser vos photos', 'dropzone_id' => 'dropzone_photo'])
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,22 @@
<div class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Uploader un fichier</h4>
</div>
<div class="modal-body">
@include('components.upload-dropzone')
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ $title }}</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
</button>
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
</div>
</div>
<!-- /.box-header -->
<div class="box-body">
{{ $content }}
</div>
<!-- /.box-body -->
@if (isset($footer))
<div class="box-footer clearfix">
{{ $footer }}
</div>
@endif
<!-- /.box-footer -->
</div>
<!-- /.box -->