mirror of
https://github.com/itflow-org/itflow
synced 2026-11-22 20:37:24 +00:00
Agent banners: a note along the top of agents' pages for one client or every client, shown as Notice, Heads up or Urgent between its start and end; a client's is added from New Banner in the client's menu, which lists its banners to change, and shows on its pages and on its tickets, invoices, quotes, recurring invoices and projects opened on their own; Admin > Agent Banners lists them all and adds them for every client; Notice and Heads up can be hidden per agent until the banner changes, Urgent is big and red and can't be hidden; kept in portal_announcements with a new announcement_audience column and an announcement_dismissals table (database 3.7.2), sharing the portal announcement form, now includes/announcement_form.php; 26.11.9 changelog entries
This commit is contained in:
16
db.sql
16
db.sql
@@ -160,6 +160,21 @@ CREATE TABLE `ai_usage` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `announcement_dismissals`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `announcement_dismissals`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `announcement_dismissals` (
|
||||
`announcement_dismissal_announcement_id` int(11) NOT NULL,
|
||||
`announcement_dismissal_user_id` int(11) NOT NULL,
|
||||
`announcement_dismissal_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
PRIMARY KEY (`announcement_dismissal_announcement_id`,`announcement_dismissal_user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `api_key_usage`
|
||||
--
|
||||
@@ -2291,6 +2306,7 @@ CREATE TABLE `portal_announcements` (
|
||||
`announcement_body` text DEFAULT NULL,
|
||||
`announcement_tone` varchar(20) NOT NULL DEFAULT 'info',
|
||||
`announcement_client_id` int(11) NOT NULL DEFAULT 0,
|
||||
`announcement_audience` varchar(10) NOT NULL DEFAULT 'portal',
|
||||
`announcement_starts_at` datetime DEFAULT NULL,
|
||||
`announcement_ends_at` datetime DEFAULT NULL,
|
||||
`announcement_created_by` int(11) NOT NULL DEFAULT 0,
|
||||
|
||||
Reference in New Issue
Block a user