From 60e0d396f265014bde9528e3cd48014fcc7a5b3d Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Thu, 7 May 2026 14:15:40 +0200 Subject: [PATCH] added task category definitions --- public/api/db.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public/api/db.php b/public/api/db.php index 5d2e105..937cd19 100644 --- a/public/api/db.php +++ b/public/api/db.php @@ -110,4 +110,22 @@ function get_categories() { 'industry' => ['label' => 'Industrie', 'faIcon' => 'fa-industry', 'color' => '#7030A0'], 'other' => ['label' => 'Sonstiges', 'faIcon' => 'fa-thumbtack', 'color' => '#7F7F7F'], ]; +} + +// --------------------------------------------------------------------- +// Task Category Definitions +// Returns associative Array of Task Category Keys to Labels, Icons, +// and Colors. Shared between Citizen Participation Portal and +// Moderation Page. +// ToDo: Move to Database Table. +// --------------------------------------------------------------------- +function get_task_categories() { + return [ + 'repair' => ['label' => 'Reparatur', 'faIcon' => 'fa-wrench', 'color' => '#C00000'], + 'social' => ['label' => 'Nachbarschaft', 'faIcon' => 'fa-people-group', 'color' => '#E65100'], + 'safety' => ['label' => 'Sicherheit', 'faIcon' => 'fa-shield-halved', 'color' => '#FFC000'], + 'greenery' => ['label' => 'Grünpflege', 'faIcon' => 'fa-leaf', 'color' => '#92D050'], + 'cleanup' => ['label' => 'Sauberkeit', 'faIcon' => 'fa-broom', 'color' => '#0070C0'], + 'other_task' => ['label' => 'Sonstiges', 'faIcon' => 'fa-clipboard-check','color' => '#7F7F7F'], + ]; } \ No newline at end of file