mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Yuck, but added helper function to return the demo mode form warning
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b28a25f544
commit
5217141dfb
|
@ -1147,4 +1147,14 @@ class Helper
|
||||||
return $age;
|
return $age;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* I know it's gauche to return a shitty HTML string, but this is just a helper and since it will be the same every single time,
|
||||||
|
* it seemed pretty safe to do here. Don't you judge me.
|
||||||
|
*/
|
||||||
|
public function showDemoModeFieldWarning() {
|
||||||
|
if (app('demo_mode')) {
|
||||||
|
return "<p class=\"text-warning\"><i class=\"fas fa-lock\"></i>" . trans('general.feature_disabled') . "</p>";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue