| 36567 |
amit |
1 |
-- Set distinct ElegantIcons for each parent menu item in the sidebar
|
|
|
2 |
UPDATE auth.menu SET icon_class = CASE display_text
|
|
|
3 |
WHEN 'Product' THEN 'icon_bag_alt'
|
|
|
4 |
WHEN 'Sales Management' THEN 'icon_cart_alt'
|
|
|
5 |
WHEN 'Partner Acquisition' THEN 'icon_group'
|
|
|
6 |
WHEN 'Credit Control' THEN 'icon_creditcard'
|
|
|
7 |
WHEN 'Admin Control' THEN 'icon_cog'
|
|
|
8 |
WHEN 'Fin Services' THEN 'icon_currency'
|
|
|
9 |
WHEN 'Finance' THEN 'icon_wallet'
|
|
|
10 |
WHEN 'HRMS' THEN 'icon_profile'
|
|
|
11 |
WHEN 'Ticket' THEN 'icon_tag_alt'
|
|
|
12 |
WHEN 'Vendor' THEN 'icon_briefcase'
|
|
|
13 |
WHEN 'Referrals' THEN 'icon_gift_alt'
|
|
|
14 |
WHEN 'Purchase Order' THEN 'icon_clipboard'
|
|
|
15 |
WHEN 'Analysis' THEN 'icon_piechart'
|
|
|
16 |
WHEN 'Catalog' THEN 'icon_grid-3x3'
|
|
|
17 |
WHEN 'Prebookings' THEN 'icon_calendar'
|
|
|
18 |
WHEN 'Technology' THEN 'icon_desktop'
|
|
|
19 |
WHEN 'Recharge' THEN 'icon_mobile'
|
|
|
20 |
WHEN 'Logistics' THEN 'icon_map_alt'
|
|
|
21 |
WHEN 'Online' THEN 'icon_globe'
|
|
|
22 |
WHEN 'Stock Management' THEN 'icon_archive_alt'
|
|
|
23 |
WHEN 'Partner Reports' THEN 'icon_datareport'
|
|
|
24 |
WHEN 'Users List' THEN 'icon_contacts_alt'
|
|
|
25 |
WHEN 'Upselling' THEN 'icon_lightbulb_alt'
|
|
|
26 |
WHEN 'Retailer' THEN 'icon_building'
|
|
|
27 |
WHEN 'Smart Seller' THEN 'icon_star_alt'
|
|
|
28 |
WHEN 'Bulletin' THEN 'icon_comment_alt'
|
|
|
29 |
ELSE icon_class
|
|
|
30 |
END
|
|
|
31 |
WHERE parent_menu_id IS NULL;
|