From a41b6a689e834b5836aa8bee4a69798657821bd4 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Mon, 23 Jul 2018 21:02:44 -0600 Subject: [PATCH] Add app cards to home page --- langs/en/apps.json | 9 +++++ pages/home.php | 56 ++++++++++++++++++++++------ settings.template.php | 87 +++++++++++++++++++++++++++++++++---------- 3 files changed, 120 insertions(+), 32 deletions(-) create mode 100644 langs/en/apps.json diff --git a/langs/en/apps.json b/langs/en/apps.json new file mode 100644 index 0000000..54dd801 --- /dev/null +++ b/langs/en/apps.json @@ -0,0 +1,9 @@ +{ + "Punch in and check work schedule": "Punch in and check work schedule", + "Manage physical items": "Manage physical items", + "Create and publish e-newsletters": "Create and publish e-newsletters", + "Manage users, permissions, and security": "Manage users, permissions, and security", + "Checkout customers and manage online orders": "Checkout customers and manage online orders", + "Build websites and manage contact form messages": "Build websites and manage contact form messages", + "Track jobs and assigned tasks": "Track jobs and assigned tasks" +} diff --git a/pages/home.php b/pages/home.php index 851007e..013afef 100644 --- a/pages/home.php +++ b/pages/home.php @@ -8,25 +8,57 @@
\ No newline at end of file diff --git a/settings.template.php b/settings.template.php index e7bbca3..d66f5ed 100644 --- a/settings.template.php +++ b/settings.template.php @@ -44,44 +44,91 @@ define('LANGUAGE', "en"); // Used in the mobile app and in the "dock" in AccountHub. define('EXTERNAL_APPS', [ "accounthub" => [ - "url" => "http://localhost/accounthub", + "url" => "/accounthub", "mobileapi" => "/mobile/index.php", "icon" => "/static/img/logo.svg", "title" => SITE_TITLE ], - "binstack" => [ - "url" => "http://localhost/inventory", + "qwikclock" => [ + "url" => "/qwikclock", "mobileapi" => "/mobile/index.php", "icon" => "/static/img/logo.svg", - "title" => "BinStack" + "title" => "QwikClock", + "station_features" => [ + "qwikclock_punchinout", + "qwikclock_myshifts", + "qwikclock_jobs" + ], + "card" => [ + "color" => "blue", + "string" => "Punch in and check work schedule" + ] ], - "taskfloor" => [ - "url" => "http://localhost/taskfloor", + "binstack" => [ + "url" => "/binstack", "mobileapi" => "/mobile/index.php", "icon" => "/static/img/logo.svg", - "title" => "TaskFloor", - "station_features" => [ - "taskfloor_viewtasks", - "taskfloor_viewmessages" + "title" => "BinStack", + "card" => [ + "color" => "green", + "string" => "Manage physical items" ] ], - "qwikclock" => [ - "url" => "http://localhost/qwikclock", + "newspen" => [ + "url" => "/newspen", "mobileapi" => "/mobile/index.php", "icon" => "/static/img/logo.svg", - "title" => "QwikClock", - "station_features" => [ - "qwikclock_punchinout", - "qwikclock_myshifts", - "qwikclock_jobs" + "title" => "NewsPen", + "card" => [ + "color" => "purple", + "string" => "Create and publish e-newsletters" ] ], "managepanel" => [ - "url" => "http://localhost/managepanel", + "url" => "/managepanel", "mobileapi" => "/mobile/index.php", "icon" => "/static/img/logo.svg", - "title" => "ManagePanel" - ] + "title" => "ManagePanel", + "card" => [ + "color" => "brown", + "string" => "Manage users, permissions, and security" + ] + ], + "nickelbox" => [ + "url" => "/nickelbox", + "mobileapi" => "/mobile/index.php", + "icon" => "/static/img/logo.svg", + "title" => "NickelBox", + "card" => [ + "color" => "light-green", + "text" => "dark", + "string" => "Checkout customers and manage online orders" + ] + ], + "sitewriter" => [ + "url" => "/sitewriter", + "mobileapi" => "/mobile/index.php", + "icon" => "/static/img/logo.svg", + "title" => "SiteWriter", + "card" => [ + "color" => "light-blue", + "string" => "Build websites and manage contact form messages" + ] + ], + "taskfloor" => [ + "url" => "/taskfloor", + "mobileapi" => "/mobile/index.php", + "icon" => "/static/img/logo.svg", + "title" => "TaskFloor", + "station_features" => [ + "taskfloor_viewtasks", + "taskfloor_viewmessages" + ], + "card" => [ + "color" => "blue-grey", + "string" => "Track jobs and assigned tasks" + ] + ], ]); // Email settings for receiving admin alerts.