Add inventory_link widget
This commit is contained in:
parent
9fab179325
commit
e6892ff6c6
14
apps/inventory_link.php
Normal file
14
apps/inventory_link.php
Normal 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) . ' <i class="fa fa-external-link-square"></i></a>';
|
||||||
|
$APPS["inventory_link"]["content"] = $content;
|
||||||
|
?>
|
@ -18,6 +18,7 @@ define("APPS", [
|
|||||||
"home" => [
|
"home" => [
|
||||||
"taskfloor_tasks",
|
"taskfloor_tasks",
|
||||||
"taskfloor_messages",
|
"taskfloor_messages",
|
||||||
|
"inventory_link",
|
||||||
"account_security"
|
"account_security"
|
||||||
],
|
],
|
||||||
"security" => [
|
"security" => [
|
||||||
|
@ -54,8 +54,10 @@ define('RECAPTCHA_SITE_KEY', '');
|
|||||||
define('RECAPTCHA_SECRET_KEY', '');
|
define('RECAPTCHA_SECRET_KEY', '');
|
||||||
|
|
||||||
// API URL and index URL for TaskFloor
|
// API URL and index URL for TaskFloor
|
||||||
define('TASKFLOOR_API', '');
|
define('TASKFLOOR_API', 'http://localhost/taskfloor/api.php');
|
||||||
define('TASKFLOOR_HOME', '');
|
define('TASKFLOOR_HOME', '/taskfloor/app.php');
|
||||||
|
|
||||||
|
define('INVENTORY_HOME', '/inventory/app.php');
|
||||||
|
|
||||||
// See lang folder for language options
|
// See lang folder for language options
|
||||||
define('LANGUAGE', "en_us");
|
define('LANGUAGE', "en_us");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user