mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Updated server create blade view
Updated server create blade view for NPM webpack usage
This commit is contained in:
parent
26356b3cd7
commit
908b8df495
@ -1,8 +1,4 @@
|
||||
@section("title", "Add a server")
|
||||
@section('scripts')
|
||||
<script src="{{ asset('js/vue.min.js') }}"></script>
|
||||
<script src="{{ asset('js/axios.min.js') }}"></script>
|
||||
@endsection
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
{{ __('Insert a new server') }}
|
||||
@ -224,7 +220,8 @@
|
||||
</x-labels-select>
|
||||
</div>
|
||||
</div>
|
||||
<x-form-check text="Allow this data to be public, restrict values in settings" name="show_public"></x-form-check>
|
||||
<x-form-check text="Allow this data to be public, restrict values in settings"
|
||||
name="show_public"></x-form-check>
|
||||
<div class="row">
|
||||
<div class="col-12 col-lg-4">
|
||||
<x-submit-button>Insert server</x-submit-button>
|
||||
@ -233,8 +230,10 @@
|
||||
</form>
|
||||
</x-card>
|
||||
</div>
|
||||
|
||||
@section('scripts')
|
||||
<script>
|
||||
window.addEventListener('load', function () {
|
||||
|
||||
axios.defaults.headers.common = {
|
||||
'Content-Type': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
@ -263,5 +262,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
</script>
|
||||
@endsection
|
||||
</x-app-layout>
|
||||
|
Loading…
Reference in New Issue
Block a user