Add inventory_link widget

This commit is contained in:
Skylar Ittner 2017-05-30 13:24:46 -06:00
parent 9fab179325
commit e6892ff6c6
3 changed files with 19 additions and 2 deletions

14
apps/inventory_link.php Normal file
View File

@ -0,0 +1,14 @@
<?php
dieifnotloggedin();
addMultiLangStrings(["en_us" => [
"inventory" => "Inventory",
"open inventory system" => "Open the inventory system"
]
]);
$APPS["inventory_link"]["i18n"] = TRUE;
$APPS["inventory_link"]["title"] = "inventory";
$APPS["inventory_link"]["icon"] = "cubes";
$content = "<p>" . lang("open inventory system", false) . '</p><a href="' . INVENTORY_HOME . '" class="btn btn-primary btn-block">' . lang("open app", false) . ' &nbsp;<i class="fa fa-external-link-square"></i></a>';
$APPS["inventory_link"]["content"] = $content;
?>

View File

@ -18,6 +18,7 @@ define("APPS", [
"home" => [
"taskfloor_tasks",
"taskfloor_messages",
"inventory_link",
"account_security"
],
"security" => [

View File

@ -54,8 +54,10 @@ define('RECAPTCHA_SITE_KEY', '');
define('RECAPTCHA_SECRET_KEY', '');
// API URL and index URL for TaskFloor
define('TASKFLOOR_API', '');
define('TASKFLOOR_HOME', '');
define('TASKFLOOR_API', 'http://localhost/taskfloor/api.php');
define('TASKFLOOR_HOME', '/taskfloor/app.php');
define('INVENTORY_HOME', '/inventory/app.php');
// See lang folder for language options
define('LANGUAGE', "en_us");