mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Add error message for eol start and end fields
This commit is contained in:
parent
30dc5fa0cf
commit
c1aa33862d
|
@ -477,13 +477,20 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- EoL Date -->
|
<!-- EoL Date -->
|
||||||
<div class="form-group asset_eol_date-range">
|
<div class="form-group asset_eol_date-range {{ ($errors->has('asset_eol_date_start') || $errors->has('asset_eol_date_end')) ? ' has-error' : '' }}">
|
||||||
<label for="asset_eol_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.eol_date') }}</label>
|
<label for="asset_eol_date" class="col-md-3 control-label">{{ trans('admin/hardware/form.eol_date') }}</label>
|
||||||
<div class="input-daterange input-group col-md-6" id="datepicker">
|
<div class="input-daterange input-group col-md-6" id="datepicker">
|
||||||
<input type="text" class="form-control" name="asset_eol_date_start" aria-label="asset_eol_date_start" value="{{ $template->textValue('asset_eol_date_start') }}">
|
<input type="text" class="form-control" name="asset_eol_date_start" aria-label="asset_eol_date_start" value="{{ $template->textValue('asset_eol_date_start') }}">
|
||||||
<span class="input-group-addon">to</span>
|
<span class="input-group-addon">to</span>
|
||||||
<input type="text" class="form-control" name="asset_eol_date_end" aria-label="asset_eol_date_end" value="{{ $template->textValue('asset_eol_date_end') }}">
|
<input type="text" class="form-control" name="asset_eol_date_end" aria-label="asset_eol_date_end" value="{{ $template->textValue('asset_eol_date_end') }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if ($errors->has('asset_eol_date_start') || $errors->has('asset_eol_date_end'))
|
||||||
|
<div class="col-md-9 col-lg-offset-3">
|
||||||
|
{!! $errors->first('asset_eol_date_start', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
{!! $errors->first('asset_eol_date_end', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Last Audit Date -->
|
<!-- Last Audit Date -->
|
||||||
|
|
Loading…
Reference in a new issue