add password input

This commit is contained in:
Vincent BRIDIER 2023-03-15 08:49:27 +00:00
parent a0b1b1e9cb
commit 45f9f2d558

View file

@ -0,0 +1,11 @@
@if(!empty($label))
<label for="{{ $id }}" class="col-form-label">
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
</label>
@endif
<input name="{{ $name }}" type="password" value="{{ old($name, $model->{$name} ?? '') }}" class="form-control" id="{{ $id }}" aria-describedby="{{ $id }}Help" placeholder="{{ $placeholder ?? __('Un nom beau et explicite') }}" @if(!empty($required))required @endif>
@include('modules.input-error', [
'inputName' => $name,
'helperId' => '{{ $id }}Help',
'helper' => $helper
])