mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-15 07:33:36 +08:00
10 lines
489 B
PHP
10 lines
489 B
PHP
<input type="date" id="{{ $name }}" name="{{ $name }}"
|
|
@if($errors->has($name)) class="text-neg" @endif
|
|
placeholder="{{ $placeholder ?? 'YYYY-MM-DD' }}"
|
|
@if($autofocus ?? false) autofocus @endif
|
|
@if($disabled ?? false) disabled="disabled" @endif
|
|
@if(isset($model) || old($name)) value="{{ old($name) ?? $model->$name->format('Y-m-d') ?? ''}}" @endif>
|
|
@if($errors->has($name))
|
|
<div class="text-neg text-small">{{ $errors->first($name) }}</div>
|
|
@endif
|