Removed server-side validation right now

Getting an unexpected keyword ‘export’ error. I’ll come back to this.
This commit is contained in:
snipe 2018-10-05 03:47:58 -07:00
parent 7e33051c7a
commit ade9a0c995
2 changed files with 3 additions and 3 deletions

View file

@ -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>
@ -230,7 +230,7 @@
if (x < max_fields) { if (x < max_fields) {
var auto_tag = parseInt(auto_tag) + parseInt(x); var auto_tag = parseInt(auto_tag) + parseInt(x);
x++; //text box increment x++; //text box increment
box_html += '<span class="fields_wrapper">'; box_html += '<span class="fields_wrapper">';
box_html += '<div class="form-group"><label for="asset_tag" class="col-md-3 control-label">{{ trans('admin/hardware/form.tag') }} ' + x + '</label>'; box_html += '<div class="form-group"><label for="asset_tag" class="col-md-3 control-label">{{ trans('admin/hardware/form.tag') }} ' + x + '</label>';
box_html += '<div class="col-md-7 col-sm-12 required">'; box_html += '<div class="col-md-7 col-sm-12 required">';

View file

@ -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
}); });