2022-06-08 15:27:21 +02:00
|
|
|
|
@extends('layouts.front')
|
2022-11-23 14:35:48 +01:00
|
|
|
|
@section('title', __('Traçabilité des Volailles de Loué'))
|
2022-06-08 15:27:21 +02:00
|
|
|
|
@section('description', __('Recherchez la treaceabilité de votre produit Loué ainsi que sa provenance.'))
|
|
|
|
|
|
|
|
|
|
|
|
@section('breadcrumb', request()->route()->getName())
|
|
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
<div class="container oldEgg">
|
|
|
|
|
|
<div class="block-fill">
|
|
|
|
|
|
<div class="header">
|
|
|
|
|
|
<p><span>Tout connaître</span><br>de l’origine de mes œufs</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="body">
|
|
|
|
|
|
<p class="message blue">Merci de compléter ces indications que<br>vous trouverez sur votre boîte d’œufs :</p>
|
|
|
|
|
|
<form action="{{ route('egg.searchSubmit') }}" method="POST">
|
|
|
|
|
|
@csrf
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<label>Code du producteur <span>A</span> :</label>
|
|
|
|
|
|
<input type="text" name="code" placeholder="Ex. 1FRJBB01" required>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
<label>Date de consommation<br>recommandée (DCR) <span>B</span> :</label>
|
|
|
|
|
|
<input type="text" name="date" placeholder="JJ/MM" pattern="[0-9]{2}/[0-9]{2}" required>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="submit" value="Valider">
|
|
|
|
|
|
</form>
|
|
|
|
|
|
</div>
|
2022-06-15 13:42:05 +02:00
|
|
|
|
<div class="footer d-flex justify-content-center mt-5">
|
2022-06-08 15:27:21 +02:00
|
|
|
|
<p>Informations sur l'oeuf :</p>
|
|
|
|
|
|
<div class="box">
|
2022-06-08 18:11:52 +02:00
|
|
|
|
<img src="{{ asset('assets/images/egg/oeuf.png') }}" alt="Oeuf" width="70%">
|
2022-06-08 15:27:21 +02:00
|
|
|
|
{{--<p>Pondu le<br><span class="date">14/12</span></p>
|
|
|
|
|
|
<p>À cons. de préf. avant le
|
|
|
|
|
|
<br><span class="date">11/01</span><span class="step">A</span>
|
|
|
|
|
|
<br><span class="prod">1FR0PD01</span><span class="step">B</span>
|
|
|
|
|
|
</p>--}}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
|
|
|
|
@push('scripts')
|
|
|
|
|
|
<script nonce="{{ $nonce }}">
|
2022-11-23 14:35:48 +01:00
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
$('input[name=date]').bind('keyup', 'keydown', function(e) {
|
|
|
|
|
|
//To accomdate for backspacing, we detect which key was pressed - if backspace, do nothing:
|
|
|
|
|
|
if (e.which !== 8) {
|
2022-06-08 15:27:21 +02:00
|
|
|
|
var numChars = $(this).val().length;
|
|
|
|
|
|
var thisVal = $(this).val();
|
2022-11-23 14:35:48 +01:00
|
|
|
|
if (numChars === 2) {
|
2022-06-08 15:27:21 +02:00
|
|
|
|
thisVal += '/';
|
|
|
|
|
|
$(this).val(thisVal);
|
|
|
|
|
|
}
|
2022-11-23 14:35:48 +01:00
|
|
|
|
if (numChars >= 3) {
|
|
|
|
|
|
if (thisVal.charAt(2) != '/') {
|
|
|
|
|
|
thisVal = thisVal.substring(0, 2) + '/' + thisVal.substring(2);
|
2022-06-08 15:27:21 +02:00
|
|
|
|
$(this).val(thisVal);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2022-11-23 14:35:48 +01:00
|
|
|
|
}
|
|
|
|
|
|
});
|
2022-06-08 15:27:21 +02:00
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|
2022-11-23 14:35:48 +01:00
|
|
|
|
@endpush
|