Update source into github
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
|
||||
@extends("admin.main")
|
||||
@section("content")
|
||||
@if(auth()->guard('admins')->user()->can("add module vcenter"))
|
||||
<div class="card card-outline card-primary">
|
||||
<form action="{{ route('package.network.update',['id' => $network->id]) }}" method="post">
|
||||
@csrf
|
||||
@method('put')
|
||||
<div class="card-body">
|
||||
<x-module.v-center :model="$network->host->datacenter" />
|
||||
<x-module.datacenter :model="$network->host" />
|
||||
<x-module.host :model="$network" />
|
||||
{{--Name--}}
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="name" class="col-md-3 text-right">Name</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<input type="text" id="name" name="name" placeholder="" value="{{$network->name}}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
{{--Network--}}
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="network" class="col-md-3 text-right">Network ID</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<input type="text" id="network" name="network" placeholder="" value="{{$network->network}}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
{{--Type--}}
|
||||
<div class="row form-group align-items-center mb-0">
|
||||
<label for="type" class="col-md-3 text-right">Network Type</label>
|
||||
<div class="col-md-9 p-1 bg-customer">
|
||||
<input type="text" id="type" name="type" placeholder="" value="{{$network->type ?? 'STANDARD_PORTGROUP'}}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="{{ route('package.network.index') }}" class="btn btn-outline-secondary">Trở về</a>
|
||||
<button type="submit" class="btn btn-outline-primary">Lưu dữ liệu</button>
|
||||
</div>
|
||||
</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 vCenter
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user