mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Removed server-side validation right now
Getting an unexpected keyword ‘export’ error. I’ll come back to this.
This commit is contained in:
parent
7e33051c7a
commit
ade9a0c995
|
@ -28,7 +28,7 @@
|
||||||
@else
|
@else
|
||||||
<!-- we are creating a new asset - let people use more than one asset tag -->
|
<!-- we are creating a new asset - let people use more than one asset tag -->
|
||||||
<div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'asset_tag')) ? ' required' : '' }}">
|
<div class="col-md-7 col-sm-12{{ (\App\Helpers\Helper::checkIfRequired($item, 'asset_tag')) ? ' required' : '' }}">
|
||||||
<input class="form-control" type="text" name="asset_tag" id="asset_tag" value="{{ Input::old('asset_tag', \App\Models\Asset::autoincrement_asset()) }}" data-validation="required server" data-validation-url="{{url('/') }}/api/v1/hardware/checktag">
|
<input class="form-control" type="text" name="asset_tags[]" id="asset_tag" value="{{ Input::old('asset_tag', \App\Models\Asset::autoincrement_asset()) }}" data-validation="required">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-sm-12">
|
<div class="col-md-2 col-sm-12">
|
||||||
<button class="add_field_button btn btn-default btn-sm"><i class="fa fa-plus"></i></button>
|
<button class="add_field_button btn btn-default btn-sm"><i class="fa fa-plus"></i></button>
|
||||||
|
|
|
@ -801,7 +801,7 @@
|
||||||
|
|
||||||
$.validate({
|
$.validate({
|
||||||
form : '#create-form',
|
form : '#create-form',
|
||||||
modules : 'date,toggleDisabled,security',
|
modules : 'date, toggleDisabled',
|
||||||
disabledFormFilter : '#create-form',
|
disabledFormFilter : '#create-form',
|
||||||
showErrorDialogs : true
|
showErrorDialogs : true
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue