Confirmation Popups

Main Store · Downtown

Confirmation Popups

See it in Customers

One reusable destructive-action popup powers every delete flow in the admin. The title, message, reference chip and contextual warning are filled from the trigger button, so a new entity needs no new markup. Use Try it on any card to open the live popup.

Delete Customer

Customers · Customer profile

Delete Staff

Staff · Staff profile

Delete Coupon

Promotions · Coupons

Delete Expense

Expenses · Expense details

Delete Role

Employees · Roles & Permissions

Delete Tax

Finance · Tax Management

Usage

<!-- 1. Trigger: any button or menu item -->
<button type="button" data-hs-overlay="#deleteModal"
        data-delete-type="customer"
        data-delete-ref="CUS-1003"
        data-delete-note="Still owes $240.00"
        data-delete-redirect="customer-list.html">
  Delete
</button>

<!-- 2. Once per page (already inside every module partial) -->
@@include('biz-common.html')
// 3. Types: customer | staff | coupon | expense | role | tax | group | category | shift | offer | promo | flash …
// Need another entity? Register it in JS — no HTML changes.
import { registerDeleteType } from "./biz-core.js";
registerDeleteType("supplier", { one: "Supplier", many: "suppliers", icon: "truck" });

© 2026 Grocery POS. Crafted by Dreams Technologies.