-- Dashboard card permissions manager modal
INSERT INTO ui_modals (name, config, tenant_id, branch_id) VALUES (
  'dashboard_card_permissions_manager',
  '{"title":"Card Permissions Manager","body":[{"type":"html","html":"<select id=\"dcpTenantSelect\"></select><select id=\"dcpmGroupSelect\"></select><select id=\"dcpmUserSelect\"></select>"},{"type":"html","id":"dcpmCards","html":""},{"type":"html","html":"<div id=\"dcpm-detail\" class=\"hidden\"></div>"}],"footer":[{"type":"button","label":"Save","onClick":"saveCardPermissions"},{"type":"button","label":"Close","onClick":"closeModal"}]}',
  NULL,
  NULL
);
-- Context menu action for manager card
INSERT INTO ui_actions (page, action_key, button_label, button_id, workflow_event)
VALUES ('Dashboard','card_permissions','Permissions','CardPermissionsManager','dashboard.card.permissions');
