datatable.directory codebase https://datatable.directory/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
datatable.directory/resources/views/form/input.blade.php

39 lines
1.1 KiB

@php
/** @var \App\View\Widget $w */
@endphp
<div class="row form-group">
<label for="field-{{ $w->name }}" class="col-md-{{$w->labelCols}} col-form-label text-md-right">
{{ $w->label }}
@include('form._help', ['mobile' => true])
</label>
<div class="col-md-{{$w->fieldCols}}">
<div class="input-group">
@if($w->prepend)
<div class="input-group-prepend">
6 years ago
<span class="input-group-text">{!! $w->prepend !!}</span>
</div>
@endif
<input id="field-{{ $w->name }}"
name="{{ $w->name }}"
6 years ago
class="form-control rounded-right {{ $errors->has($w->name) ? ' is-invalid' : '' }}"
value="{{ $w->value }}"
{!! $w->attributes !!}>
@if($w->append)
<div class="input-group-append">
6 years ago
<span class="input-group-text">{!! $w->append !!}</span>
</div>
@endif
@if ($errors->has($w->name))
<span class="invalid-feedback" role="alert">
6 years ago
<strong>{{ $errors->first($w->name) }}</strong>
</span>
@endif
</div>
</div>
@include('form._help', ['mobile' => false])
</div>