fix: enhance button accessibility for non-admin users in Produk Buket
This commit is contained in:
parent
e4b80b003b
commit
d4bb643143
|
|
@ -20,10 +20,18 @@
|
|||
@endif
|
||||
<section class="section">
|
||||
<div class="buttons pb-3">
|
||||
@if (Auth::user()->role == 'admin_buket' || Auth::user()->role == 'pemilik')
|
||||
<a href="#" class="btn-add-custom" data-bs-toggle="modal" data-bs-target="#create">
|
||||
<i class="bi bi-plus fs-5"></i>
|
||||
Tambah Produk Buket
|
||||
</a>
|
||||
@else
|
||||
<a href="javascript:void(0)" class="btn-add-custom disabled" style="opacity: 0.5; cursor: not-allowed;"
|
||||
title="Hanya dapat diakses oleh Admin Buket dan Pemilik">
|
||||
<i class="bi bi-plus fs-5"></i>
|
||||
Tambah Produk Buket
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
|
@ -70,7 +78,7 @@
|
|||
<span class="d-inline-block" data-bs-toggle="tooltip"
|
||||
title="Hanya dapat diakses oleh Admin Buket dan Pemilik">
|
||||
<button class="btn icon btn-warning btn-action disabled"
|
||||
style="cursor: not-allowed !important; pointer-events: auto !important;"
|
||||
style="opacity: 0.5; cursor: not-allowed !important; pointer-events: auto !important;"
|
||||
type="button" disabled>
|
||||
<i class="bi bi-pencil"></i>
|
||||
</button>
|
||||
|
|
@ -78,7 +86,7 @@
|
|||
<span class="d-inline-block" data-bs-toggle="tooltip"
|
||||
title="Hanya dapat diakses oleh Admin Buket dan Pemilik">
|
||||
<button class="btn icon btn-danger btn-action disabled"
|
||||
style="cursor: not-allowed !important; pointer-events: auto !important;"
|
||||
style="opacity: 0.5; cursor: not-allowed !important; pointer-events: auto !important;"
|
||||
type="button" disabled>
|
||||
<i class="bi bi-trash"></i>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue