Implemented new response alert component into views

Implemented new response alert component into views
This commit is contained in:
cp6 2022-10-13 14:36:21 +11:00
parent c52a55dd5a
commit 3b35cae875
24 changed files with 24 additions and 26 deletions

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('dns.index') }}</x-slot> <x-slot name="href">{{ route('dns.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('dns.store') }}" method="POST"> <form action="{{ route('dns.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('dns.index') }}</x-slot> <x-slot name="href">{{ route('dns.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('dns.update', $dn->id) }}" method="POST"> <form action="{{ route('dns.update', $dn->id) }}" method="POST">
@csrf @csrf
@method('PUT') @method('PUT')

View File

@ -14,7 +14,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('dns.create') }}" class="btn btn-primary mb-3">Add DNS</a> <a href="{{ route('dns.create') }}" class="btn btn-primary mb-3">Add DNS</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('domains.index') }}</x-slot> <x-slot name="href">{{ route('domains.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('domains.store') }}" method="POST"> <form action="{{ route('domains.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('domains.index') }}</x-slot> <x-slot name="href">{{ route('domains.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('domains.update', $domain_info->id) }}" method="POST"> <form action="{{ route('domains.update', $domain_info->id) }}" method="POST">
@csrf @csrf
@method('PUT') @method('PUT')

View File

@ -14,7 +14,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('domains.create') }}" class="btn btn-primary mb-3">Add a domain</a> <a href="{{ route('domains.create') }}" class="btn btn-primary mb-3">Add a domain</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('IPs.index') }}</x-slot> <x-slot name="href">{{ route('IPs.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('IPs.store') }}" method="POST"> <form action="{{ route('IPs.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -17,7 +17,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('IPs.create') }}" class="btn btn-primary mb-3">Add IP</a> <a href="{{ route('IPs.create') }}" class="btn btn-primary mb-3">Add IP</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered" id="ips-table"> <table class="table table-bordered" id="ips-table">
<thead class="table-light"> <thead class="table-light">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('labels.index') }}</x-slot> <x-slot name="href">{{ route('labels.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('labels.store') }}" method="POST"> <form action="{{ route('labels.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -17,7 +17,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('labels.create') }}" class="btn btn-primary mb-3">Add a label</a> <a href="{{ route('labels.create') }}" class="btn btn-primary mb-3">Add a label</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<table class="table table-bordered" id="labels-table"> <table class="table table-bordered" id="labels-table">
<thead class="table-light"> <thead class="table-light">
<tr> <tr>

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('locations.index') }}</x-slot> <x-slot name="href">{{ route('locations.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('locations.store') }}" method="POST"> <form action="{{ route('locations.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -17,7 +17,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('locations.create') }}" class="btn btn-primary mb-3">Add a location</a> <a href="{{ route('locations.create') }}" class="btn btn-primary mb-3">Add a location</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<table class="table table-bordered" id="locations-table"> <table class="table table-bordered" id="locations-table">
<thead class="table-light"> <thead class="table-light">
<tr class="bg-gray-100"> <tr class="bg-gray-100">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('misc.index') }}</x-slot> <x-slot name="href">{{ route('misc.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('misc.store') }}" method="POST"> <form action="{{ route('misc.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('misc.index') }}</x-slot> <x-slot name="href">{{ route('misc.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('misc.update', $misc_data->id) }}" method="POST"> <form action="{{ route('misc.update', $misc_data->id) }}" method="POST">
@csrf @csrf
@method('PUT') @method('PUT')

View File

@ -14,7 +14,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('misc.create') }}" class="btn btn-primary mb-3">Add misc service</a> <a href="{{ route('misc.create') }}" class="btn btn-primary mb-3">Add misc service</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('os.index') }}</x-slot> <x-slot name="href">{{ route('os.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('os.store') }}" method="POST"> <form action="{{ route('os.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -17,7 +17,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('os.create') }}" class="btn btn-primary mb-3">Add an OS</a> <a href="{{ route('os.create') }}" class="btn btn-primary mb-3">Add an OS</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<table class="table table-bordered" id="os-table"> <table class="table table-bordered" id="os-table">
<thead class="table-light"> <thead class="table-light">
<tr class="bg-gray-100"> <tr class="bg-gray-100">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('providers.index') }}</x-slot> <x-slot name="href">{{ route('providers.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('providers.store') }}" method="POST"> <form action="{{ route('providers.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -17,7 +17,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('providers.create') }}" class="btn btn-primary mb-3">Add a provider</a> <a href="{{ route('providers.create') }}" class="btn btn-primary mb-3">Add a provider</a>
<x-success-alert></x-success-alert> <x-response-alerts></x-response-alerts>
<table class="table table-bordered" id="providers-table"> <table class="table table-bordered" id="providers-table">
<thead class="table-light"> <thead class="table-light">
<tr class="bg-gray-100"> <tr class="bg-gray-100">

View File

@ -14,7 +14,7 @@
<x-slot name="href">{{ route('servers.index') }}</x-slot> <x-slot name="href">{{ route('servers.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('servers.store') }}" method="POST"> <form action="{{ route('servers.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -12,7 +12,7 @@
<x-slot name="href">{{ route('servers.index') }}</x-slot> <x-slot name="href">{{ route('servers.index') }}</x-slot>
Back to servers Back to servers
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('servers.update', $server_data->id) }}" method="POST"> <form action="{{ route('servers.update', $server_data->id) }}" method="POST">
@csrf @csrf
@method('PUT') @method('PUT')

View File

@ -12,6 +12,7 @@
</x-slot> </x-slot>
<div class="container" id="app"> <div class="container" id="app">
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-response-alerts></x-response-alerts>
<ul class="nav nav-tabs mt-3" id="myTab" role="tablist"> <ul class="nav nav-tabs mt-3" id="myTab" role="tablist">
<li class="nav-item" role="presentation"> <li class="nav-item" role="presentation">
<button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" <button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button"
@ -32,7 +33,6 @@
<a href="{{ route('servers-compare-choose') }}" class="btn btn-primary mb-3 ms-2">Compare <a href="{{ route('servers-compare-choose') }}" class="btn btn-primary mb-3 ms-2">Compare
servers</a> servers</a>
<a href="{{ route('yabs.create') }}" class="btn btn-primary mb-3 ms-2">Add a YABs</a> <a href="{{ route('yabs.create') }}" class="btn btn-primary mb-3 ms-2">Add a YABs</a>
<x-success-alert></x-success-alert>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">
@ -118,7 +118,6 @@
<a href="{{ route('servers.create') }}" class="btn btn-primary mb-3">Add server</a> <a href="{{ route('servers.create') }}" class="btn btn-primary mb-3">Add server</a>
<a href="{{ route('servers-compare-choose') }}" class="btn btn-primary mb-3 ms-2">Compare <a href="{{ route('servers-compare-choose') }}" class="btn btn-primary mb-3 ms-2">Compare
servers</a> servers</a>
<x-success-alert></x-success-alert>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">

View File

@ -10,7 +10,7 @@
<x-slot name="href">{{ route('yabs.index') }}</x-slot> <x-slot name="href">{{ route('yabs.index') }}</x-slot>
Go back Go back
</x-back-button> </x-back-button>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<form action="{{ route('yabs.store') }}" method="POST"> <form action="{{ route('yabs.store') }}" method="POST">
@csrf @csrf
<div class="row"> <div class="row">

View File

@ -14,8 +14,7 @@
<x-delete-confirm-modal></x-delete-confirm-modal> <x-delete-confirm-modal></x-delete-confirm-modal>
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
<a href="{{ route('yabs.compare-choose') }}" class="btn btn-success mb-3">Compare YABs</a> <a href="{{ route('yabs.compare-choose') }}" class="btn btn-success mb-3">Compare YABs</a>
<x-errors-alert></x-errors-alert> <x-response-alerts></x-response-alerts>
<x-success-alert></x-success-alert>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered"> <table class="table table-bordered">
<thead class="table-light"> <thead class="table-light">