create loading and handle from js create edit and delete roles
This commit is contained in:
@@ -4,11 +4,12 @@
|
||||
|
||||
@include('layouts.partials/page-title', ['title' => 'Settings', 'subtitle' => 'Role'])
|
||||
|
||||
<x-toast-notification/>
|
||||
<div class="row d-flex justify-content-center">
|
||||
<div class="col-md-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<form action="{{route("roles.update", $role->id)}}" method="post">
|
||||
<form id="formUpdateRole" action="{{route("roles.update", $role->id)}}" method="post" >
|
||||
@csrf
|
||||
@method("put")
|
||||
<div class="mb-3">
|
||||
@@ -21,7 +22,10 @@
|
||||
<input type="text" id="description" name="description"
|
||||
class="form-control" placeholder="Enter description" value="{{$role->description}}">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">Update</button>
|
||||
<button class="btn btn-primary me-1" type="button" id="btnUpdateRole">
|
||||
<span id="spinner" class="spinner-border spinner-border-sm me-1 d-none" role="status" aria-hidden="true"></span>
|
||||
Update
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -29,3 +33,6 @@
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
@section('scripts')
|
||||
@vite(['resources/js/roles/update.js'])
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user