[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

@@ -0,0 +1,178 @@
<div class="row" style="display: flex;">
<div class="col-xs-12 col-md-6 text-center">
@include('components.carousel', ['id_name' => 'detail_lot', 'with_modal' => true, 'id' => $id ])
</div>
<div class="col-xs-12 col-md-6">
<div class="text-right">
{{ __('lots.reference') }} : {{ $ref }}
</div>
<h3 style="margin-top: 10px;">{{ $type_lot['nom'] }} - {{ $residence['nom'] }}</h3>
<span class="badge">
Dispositif {{ $dispositifs[0]['type_dispositif']['nom'] }}
</span>
<br/><br/>
{{ $batiment['adresse'] }} {{ $batiment['code_postal'] }} {{ $batiment['ville'] }}<br/>
{{ $batiment['complement_adresse'] }} - {{ $etage }}<br/><br/>
<div class="m-bottom-15">
Surface : {{ $surface }} m2<br/>
@if ($surface_balcon) Balcon/Terrasse : {{ $surface_balcon }} m2 <br/>@endif
@if ($surface_cave) Cave : {{ $surface_cave }} m2 <br/>@endif
@if ($surface_grenier) Grenier : {{ $surface_grenier }} m2 <br/>@endif
@if ($surface_soussol) Sous-sol : {{ $surface_soussol }} m2 <br/>@endif
@if ($surface_terrain) Terrain : {{ $surface_terrain }} m2 <br/>@endif
</div>
<div class="text-right">
<h2><strong>{{ App\Repositories\Core\Number::price($prix_total) }} &euro;</strong></h2>
</div>
<div class="text-right">
<button type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
<button type="button" data-id="{{ $id }}" data-toggle='modal' data-target='#lot-option' class="btn btn-success btn btn-lot-option" >
<i class='fa fa-check-square-o fa-fw'></i>
Optionner
</button>
</div>
</div>
</div>
<div class="row" style="margin-top: 20px;">
<div class="col-md-12">
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
<i class="fa fa-arrow-circle-right"></i> Détails des prix
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-bordered table-condensed">
<thead class="thead-bgcolor">
<tr>
<th>Prix acquisition</th>
<th>Montant travaux</th>
<th>Prix total</th>
<th>Prix cave</th>
<th>Prix stationnement</th>
<th>Package</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_achat) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_travaux) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_total) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_cave) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($prix_stationnement) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($package) }}</td>
</tr>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-condensed" style="width: 100%;">
<thead class="thead-bgcolor">
<tr>
<th>Honoraires Agence</th>
<th>Frais notaire</th>
<th>Frais bancaire</th>
<th>Courtage bancaire</th>
<th>Interêts intercalaires</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-right">{{ App\Repositories\Core\Number::price($honoraires_agence) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_notaire) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($frais_bancaire) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($courtage_bancaire) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($interets_intercalaires) }}</td>
</tr>
</tbody>
</table>
</div>
<div class="table-responsive">
<table class="table table-bordered table-condensed" style="width: 100%;">
<thead class="thead-bgcolor">
<tr>
<th>Garantie revente</th>
<th>Loyer logement</th>
<th>Loyer stationnement</th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-right">{{ App\Repositories\Core\Number::price($garantie_revente) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_logement) }}</td>
<td class="text-right">{{ App\Repositories\Core\Number::price($loyer_stationnement) }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<i class="fa fa-arrow-circle-right"></i> Liste des documents disponibles
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-bordered table-condensed" style="width: 100%;">
<thead class="thead-bgcolor">
<th>Type</th>
<th>Titre</th>
<th>Format</th>
<th>Poids</th>
<th></th>
</thead>
<tbody>
@foreach($documents as $document)
<tr>
<td>{{ $document['type_document']['nom'] }}</td>
<td>{{ $document['title'] }}</td>
<td>{{ $document['filetype'] }}</td>
<td class="text-right">{{ Coduo\PHPHumanizer\NumberHumanizer::binarySuffix($document['filesize']) }}</td>
<td><a class='btn btn-xs btn-primary' href="{{ route('Hestimmo.LotDocuments.download', $document['id']) }}"><i class='fa fa-eye fa-fw'></i></a></i></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
handle_option();
$('.btn-lot-option').on('click', function(e) {
var id = $(this).data('id');
$('#modal-option-content').load(laroute.route('Hestimmo.Options.getOptionOnLot', {lot_id : id}));
});
</script>