Fixed datepicker in asset checkout

This commit is contained in:
snipe 2017-10-26 19:51:29 -07:00
parent bdb95e4e3d
commit 9c29ee9c6d

View file

@ -65,20 +65,19 @@
</div>
<!-- Checkout/Checkin Date -->
<div class="form-group {{ $errors->has('checkin_at') ? 'error' : '' }}">
{{ Form::label('name', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }}
<div class="form-group{{ $errors->has('checkin_at') ? ' has-error' : '' }}">
{{ Form::label('checkin_at', trans('admin/hardware/form.checkin_date'), array('class' => 'col-md-3 control-label')) }}
<div class="col-md-8">
<div class="col-md-4 input-group required">
<input type="date" class="datepicker form-control"
data-date-format="yyyy-mm-dd" placeholder="Checkin Date"
name="checkin_at" id="checkin_at"
value="{{ Input::old('checkin_at', date('Y-m-d')) }}">
<span class="input-group-addon"><i
class="fa fa-calendar"></i></span>
<div class="input-group col-md-5 required">
<div class="input-group date" data-provide="datepicker" data-date-format="yyyy-mm-dd" data-autoclose="true">
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="checkin_at" id="checkin_at" value="{{ Input::old('checkin_at', date('Y-m-d')) }}">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
{!! $errors->first('checkin_at', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
</div>
</div>
</div>
<!-- Note -->
<div class="form-group {{ $errors->has('note') ? 'error' : '' }}">