mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -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
|
||||
<!-- 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' : '' }}">
|
||||
<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 class="col-md-2 col-sm-12">
|
||||
<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) {
|
||||
var auto_tag = parseInt(auto_tag) + parseInt(x);
|
||||
x++; //text box increment
|
||||
|
||||
|
||||
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="col-md-7 col-sm-12 required">';
|
||||
|
|
|
@ -801,7 +801,7 @@
|
|||
|
||||
$.validate({
|
||||
form : '#create-form',
|
||||
modules : 'date,toggleDisabled,security',
|
||||
modules : 'date, toggleDisabled',
|
||||
disabledFormFilter : '#create-form',
|
||||
showErrorDialogs : true
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue