ldc-legaulois/resources/views/bo/engagements/label-input.blade.php
2021-07-13 16:48:09 +02:00

20 lines
1.5 KiB
PHP

@php
$o = $o ?? 'X';
@endphp
<div class="alert alert-warning @if(!$tmpl)labelGroup @else d-none labelTemplate @endif" role="alert">
<button type="button" class="close" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<div class="form-group">
<label for="{{ $i.$k }}_bigtext_{{ ($tmpl ? 'X' : $o) }}" data-count="{{ $o }}"><small>{{ __('Label gros caratères') }}*</small></label>
<input id="{{ $i.$k }}_bigtext_{{ ($tmpl ? 'X' : $o) }}" type="text" class="form-control" name="content[{{$i}}][content][{{$k}}][value][{{ ($tmpl ? 'X' : $o) }}][bigText]" placeholder="Texte affiché en gros caractères" value="{{ old("content.$i.content.$k.value.$o.bigtext") ?? (!$tmpl ? ($label['bigText'] ?? '') : '') }}">
<br>
<label for="{{ $i.$k }}_text_{{ ($tmpl ? 'X' : $o) }}"><small>{{ __('Label petit caratères ') }}*</small></label>
<input id="{{ $i.$k }}_text_{{ ($tmpl ? 'X' : $o) }}" type="text" class="form-control" name="content[{{$i}}][content][{{$k}}][value][{{ ($tmpl ? 'X' : $o) }}][text]" placeholder="Texte affiché en petits caractères" value="{{ old("content.$i.content.$k.value.$o.text") ?? (!$tmpl ? ($label['text'] ?? '') : '') }}">
<br>
<label>
<input type="checkbox" name="content[{{$i}}][content][{{$k}}][value][{{$o}}][fullLine]" value="1" @if (( old("content.$i.content.$k.value.$o.fullLine") ?? (!$tmpl ? ($label['fullLine'] ?? 0) : 0) ?? 0 ))checked @endif>
{{ __('Affiché en pleine ligne ?') }}
</label>
</div>
</div>