2021-12-06 16:27:44 +01:00
|
|
|
<div class="form-group">
|
2021-12-17 17:27:25 +01:00
|
|
|
<label for="picture">{{ __('Image') }} <small class="text-muted">- JPEG/PNG, 2Mo max. Dimensions {{ Config::get('bo.slide_image_maxwidth') }} px par {{ Config::get('bo.slide_image_maxheight') }} px</small></label><br/>
|
2022-01-10 09:30:30 +01:00
|
|
|
<input type="file" id="picture" name="picture" accept="image/png, image/jpeg">
|
2022-01-21 14:26:44 +01:00
|
|
|
@if (!empty($slide->picture))
|
2021-12-17 17:27:25 +01:00
|
|
|
<br/>
|
|
|
|
|
<br/>
|
2021-12-07 23:35:14 +01:00
|
|
|
<img src="{{$slide->picture}}" alt="{{$slide->title}}" style="max-height: 100px;">
|
2021-12-06 16:27:44 +01:00
|
|
|
@endif
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'picture'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
2021-12-17 17:27:25 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">{{ __('Text alternatif de l\'image') }} *</label>
|
|
|
|
|
<input type="text" id="alt_text_picture" name="alt_text_picture" class="form-control" placeholder="{{ __('Texte alternatif de l\'image') }} *" value="{{ old('alt_text_picture', $slide->alt_text_picture ?? '') }}" required>
|
|
|
|
|
@include('back.modules.input-error', ['inputName'=>'alt_text_picture'])
|
|
|
|
|
</div>
|
2021-12-06 16:27:44 +01:00
|
|
|
|
|
|
|
|
<div class="form-row">
|
|
|
|
|
<div class="form-group col">
|
|
|
|
|
<label for="slider_id">{{ __('Slider de regroupement') }}</label>
|
|
|
|
|
<select class="custom-select" id="slider_id" name="slider_id">
|
|
|
|
|
@foreach($sliders as $slider)
|
|
|
|
|
<option value="{{$slider->id}}" @if ($slider->id === $slide->slider_id) selected @endif>{{$slider->label}}</option>
|
|
|
|
|
@endforeach
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group col"></div>
|
|
|
|
|
<div class="form-group col"></div>
|
|
|
|
|
<div class="form-group col"></div>
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'slider_id'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
|
|
|
<h2><small class="text-muted">{{ __('Période de parution') }}</small></h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-row">
|
|
|
|
|
<div class="form-group col">
|
|
|
|
|
<label for="date_start_date">{{ __('Début') }} <small class="text-muted">{{ __('de l\'affichage') }}</small></label>
|
|
|
|
|
@if($slide->date_start !== null)
|
|
|
|
|
<input type="date" id="date_start_date" name="date_start_date" class="form-control" value="{{ old('date_start_date', date_format($slide->date_start, "Y-m-d")) }}">
|
|
|
|
|
<input type="time" id="date_start_time" name="date_start_time" class="form-control" value="{{ old('date_start_time', date_format($slide->date_start, "H:i")) }}">
|
|
|
|
|
@else
|
|
|
|
|
<input type="date" id="date_start_date" name="date_start_date" class="form-control" value="{{ old('date_start_date') }}">
|
|
|
|
|
<input type="time" id="date_start_time" name="date_start_time" class="form-control" value="{{ old('date_start_time') }}">
|
|
|
|
|
@endif
|
|
|
|
|
<small class="text-muted">{{ __('Laisser vide pour un affichage immédiat') }}</small>
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'date_start'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="form-group col">
|
|
|
|
|
<label for="date_end_date">{{ __('Fin') }} <small class="text-muted">{{ __('de l\'affichage') }}</small></label>
|
|
|
|
|
@if($slide->date_end !== null)
|
|
|
|
|
<input type="date" id="date_end_date" name="date_end_date" class="form-control" value="{{ old('date_end_date', date_format($slide->date_end, "Y-m-d")) }}">
|
|
|
|
|
<input type="time" id="date_end_time" name="date_end_time" class="form-control" value="{{ old('date_end_time', date_format($slide->date_end, "H:i")) }}">
|
|
|
|
|
@else
|
|
|
|
|
<input type="date" id="date_end_date" name="date_end_date" class="form-control" value="{{ old('date_end_date') }}">
|
|
|
|
|
<input type="time" id="date_end_time" name="date_end_time" class="form-control" value="{{ old('date_end_time') }}">
|
|
|
|
|
@endif
|
|
|
|
|
<small class="text-muted">{{ __('Laisser vide pour un affichage permanent') }}</small>
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'date_end'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-12-08 17:32:31 +01:00
|
|
|
{{-- <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
2021-12-06 16:27:44 +01:00
|
|
|
<h2><small class="text-muted">{{ __('Options de lien') }}</small></h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">{{ __('Texte du lien') }}</label>
|
|
|
|
|
<input type="text" class="form-control" name="link_label" placeholder="{{ __('Texte du lien') }}" value="{{ old('link_label', $slide->link_label) }}">
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'link_label'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">{{ __('Cible du lien') }}</label>
|
|
|
|
|
<input type="text" class="form-control" name="link" placeholder="{{ __('Cible du lien') }}" value="{{ old('link', $slide->link) }}">
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'link'])
|
2021-12-06 16:27:44 +01:00
|
|
|
</div>
|
|
|
|
|
<div class="form-group text-center">
|
|
|
|
|
<input class="form-check-input" type="checkbox" id="new_tab_cb" name="link_new_tab" @if (old('link_new_tab', $slide->link_new_tab) !== 0)checked @endif>
|
|
|
|
|
<label class="form-check-label" for="new_tab_cb">{{ __('Ouvrir dans un nouvel onglet') }}</label>
|
2021-12-07 23:35:14 +01:00
|
|
|
@include('back.modules.input-error', ['inputName'=>'link_new_tab'])
|
2022-01-10 09:30:30 +01:00
|
|
|
</div> --}}
|