update
This commit is contained in:
@@ -92,6 +92,8 @@
|
||||
|
||||
@include('administrator.layout.partials.toast')
|
||||
|
||||
<x-modal-confirm-delete />
|
||||
|
||||
@stack('custom-scripts')
|
||||
</body>
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<a href="{{ route('module.vcenter.create') }}" class="btn btn-outline-secondary"><i class="fas fa-plus-circle"></i> Add New Server</a>
|
||||
<x-button-crm type="button" variant="primary" size="sm" route="module.vcenter.create" icon="plus-circle">Add
|
||||
Server</x-button-crm>
|
||||
<form action="{{ route('module.vcenter.import') }}" class="d-lg-inline" enctype="multipart/form-data" method="post">
|
||||
@csrf
|
||||
<input type="file" name="file" class="d-none file-selector" accept=".csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" onchange="form.submit()" />
|
||||
<button type="button" class="btn btn-outline-secondary btn-import__from">
|
||||
<i class="fas fa-plus-circle"></i> Import From Excel
|
||||
</button>
|
||||
<input type="file" name="file" class="d-none file-selector"
|
||||
accept=".csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" onchange="form.submit()" />
|
||||
<x-button-crm type="button" variant="success" size="sm" route="module.vcenter.import" icon="plus-circle">Import
|
||||
From
|
||||
Excel</x-button-crm>
|
||||
</form>
|
||||
<a href="{{ url('file/vCenter.xlsx') }}" class="btn btn-outline-secondary"><i class="fas fa-download"></i> File Import Demo</a>
|
||||
<x-button-crm type="button" variant="secondary" size="sm" url="file/vCenter.xlsx" icon="download">File Import
|
||||
Demo</x-button-crm>
|
||||
@@ -76,14 +76,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer bg-white border-top p-3 d-flex justify-content-end gap-2">
|
||||
{{-- Fixed Bottom Actions --}}
|
||||
<x-fixed-action-bar>
|
||||
<x-button-c-r-m route="module.dns.index" variant="secondary" icon="arrow-left">
|
||||
Cancel
|
||||
</x-button-c-r-m>
|
||||
<x-button-c-r-m type="submit" variant="primary" icon="save">
|
||||
Save DNS Server
|
||||
Create
|
||||
</x-button-c-r-m>
|
||||
</div>
|
||||
</x-fixed-action-bar>
|
||||
</form>
|
||||
</div>
|
||||
@else
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'DNS Server', 'url' => route('module.dns.index')],
|
||||
['label' => 'Edit DNS Server', 'active' => true],
|
||||
];
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'DNS Server', 'url' => route('module.dns.index')],
|
||||
['label' => 'Edit DNS Server', 'active' => true],
|
||||
];
|
||||
@endphp
|
||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||
@endsection
|
||||
@@ -79,16 +79,22 @@ $breadcrumbItems = [
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer bg-white border-top p-3 d-flex justify-content-end gap-2">
|
||||
{{-- Fixed Bottom Actions --}}
|
||||
<x-fixed-action-bar>
|
||||
<x-button-c-r-m route="module.dns.index" variant="secondary" icon="arrow-left">
|
||||
Cancel
|
||||
</x-button-c-r-m>
|
||||
|
||||
<x-button-c-r-m type="submit" variant="primary" icon="save">
|
||||
Save Changes
|
||||
Update
|
||||
</x-button-c-r-m>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<x-button-c-r-m type="delete" variant="danger" icon="trash"
|
||||
:confirm-url="route('module.dns.destroy', ['id' => $server->id])" :confirm-name="$server->name">
|
||||
Delete
|
||||
</x-button-c-r-m>
|
||||
</x-fixed-action-bar>
|
||||
</form>
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Module dns
|
||||
@@ -105,4 +111,4 @@ $breadcrumbItems = [
|
||||
$('.select2').select2();
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@endpush
|
||||
@@ -112,6 +112,10 @@ $breadcrumbItems = [
|
||||
<x-button-c-r-m route="module.vcenter.index" variant="secondary" icon="arrow-left">
|
||||
Cancel
|
||||
</x-button-c-r-m>
|
||||
<x-button-c-r-m type="delete" variant="danger" icon="trash"
|
||||
:confirm-url="route('module.vcenter.destroy', ['id' => $server->id])" :confirm-name="$server->host">
|
||||
Delete
|
||||
</x-button-c-r-m>
|
||||
<x-button-c-r-m type="submit" variant="primary" icon="save">
|
||||
Save Changes
|
||||
</x-button-c-r-m>
|
||||
|
||||
@@ -7,18 +7,17 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
@php
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'Package vCenter'],
|
||||
['label' => 'Datacenter', 'active' => true],
|
||||
];
|
||||
$breadcrumbItems = [
|
||||
['label' => 'Modules'],
|
||||
['label' => 'Vcenter', 'active' => true],
|
||||
];
|
||||
@endphp
|
||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||
@endsection
|
||||
@section('content')
|
||||
@if(auth()->guard('admins')->user()->can("manager module vcenter"))
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<div class="card-header d-flex justify-content-end gap-2">
|
||||
@include("administrator.pages.block.ModuleVCenter")
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -28,14 +27,14 @@ $breadcrumbItems = [
|
||||
['key' => 'status', 'label' => 'Status'],
|
||||
['key' => 'action', 'label' => 'Action'],
|
||||
]" />
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Module vCenter
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<div class="alert alert-danger alert-dismissible">
|
||||
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Module vCenter
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
@push('plugin-scripts')
|
||||
@foreach (config('assets.datatable.js') as $datatable)
|
||||
|
||||
Reference in New Issue
Block a user