Move validator to main layout
This commit is contained in:
parent
a6449fa16e
commit
c1b0b8dee2
2 changed files with 10 additions and 3 deletions
|
@ -14,6 +14,8 @@
|
|||
@section('inputFields')
|
||||
|
||||
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'company_id'])
|
||||
|
||||
|
||||
<!-- Asset Tag -->
|
||||
<div class="form-group {{ $errors->has('asset_tag') ? ' has-error' : '' }}">
|
||||
<label for="asset_tag" class="col-md-3 control-label">{{ trans('admin/hardware/form.tag') }}</label>
|
||||
|
@ -116,9 +118,6 @@
|
|||
|
||||
<script nonce="{{ csrf_token() }}">
|
||||
|
||||
$.validate({
|
||||
form : '#create-form'
|
||||
});
|
||||
|
||||
var transformed_oldvals={};
|
||||
|
||||
|
|
|
@ -797,6 +797,14 @@
|
|||
@show
|
||||
|
||||
<script nonce="{{ csrf_token() }}">
|
||||
|
||||
|
||||
$.validate({
|
||||
form : '#create-form',
|
||||
modules : 'date'
|
||||
});
|
||||
|
||||
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
$('[data-toggle="popover"]').popover();
|
||||
|
|
Loading…
Add table
Reference in a new issue