ldc-com-app-bo/resources/views/bo/partials/inputs/text.blade.php

23 lines
732 B
PHP
Raw Permalink Normal View History

2023-03-15 09:50:22 +01:00
@if(!empty($label))
<label for="{{ $id }}" class="col-form-label">
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
</label>
@endif
@if(!empty($hasWordCounter ?? false))
2023-04-17 17:46:20 +02:00
<div class="word-counter" data-json='@json(['id'=> $id])'></div>
2023-03-15 09:50:22 +01:00
@endif
<textarea
2023-03-27 12:17:31 +02:00
name="{{ $name }}"
id="{{ $id }}"
cols="30" rows="10"
class="form-control @if(!empty($hasWordCounter ?? false)) need-word-counter @endif"
aria-describedby="{{ $id }}Help"
placeholder="{{ $placeholder ?? __('Un nom beau et explicite') }}"
@if(!empty($required))required @endif
2023-04-17 17:46:20 +02:00
>{{ old($name, $model->{$name} ?? '') }}</textarea>
2023-03-15 09:50:22 +01:00
@include('modules.input-error', [
2023-03-27 12:17:31 +02:00
'inputName' => $name,
'helperId' => '{{ $id }}Help',
'helper' => $helper
2023-03-15 09:50:22 +01:00
])