snipe-it/app/Http/Controllers/Api
snipe 46f5f21368
Notification improvements (#5254)
* Added “show fields in email” to custom fields

* Added “show images in email” to settings

* Added nicer HTML emails

* Break notifications out into their own, instead of trying to mash them all together

* Remove old notification for accessory checkout

* Janky fix for #5076 - “The asset you have attempted to accept was not checked out to you”

* Add method for image url for accessories

* Added accessory checkout email blade

* Make accessory email notification on checkout screen consistent with assets

* Added native consumables notifications

* Fixes for asset notification

* Updated notification blades with correct-er fields

* Updated notifications

* License checkin notification - does not work yet

Need to figure out whether the license seat is assigned to a person or an asset before we can pass the target

* Added alternate “cc” email for admins

* Only try to trigger notifications if the target is a user

* Fix tests

* Fixed consumable URL

* Removed unused notification

* Pass target type in params

* Show slack status

* Pass additional parameters

There is a logic bug in this :( Will send to slack twice, since the admin CC and the user are both using the same notification. Fuckity fuck fuck fuck.

* Pass a variable to the notification to supress the duplicate slack message

* Slack is broken :( Trying to fix

Will try a git bisect

* Put preview back into checkout

* Pulled old archaic mail

* Removed debugging

* Fixed wrong email title

* Fixed slack endpoint not firing

* Poobot, we hardly knew ye.

* Removed old, manual mail from API

* Typo :-/

* Code cleanup

* Use defined formatted date in JSON

* Use static properties for checkin/checkout notifiers for cleaner code

* Removed debugging

* Use date formatter

* Fixed target_type

* Fixed language in consumable email
2018-03-25 13:46:57 -07:00
..
AccessoriesController.php Constrain accessory by category ID if one is passed 2017-11-14 16:47:21 -08:00
AssetMaintenancesController.php Fixed #5151 - added asset tag to maintenances 2018-03-05 16:26:40 -08:00
AssetModelsController.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
AssetsController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
CategoriesController.php Add sorting and additional category types to dashboard categories 2017-11-21 20:33:30 -08:00
CompaniesController.php Fixes #4639 2017-12-15 18:54:38 -08:00
ComponentsController.php Api tests (#5096) 2018-02-24 19:01:34 -08:00
ConsumablesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
CustomFieldsController.php API for (dis)associating fields with fieldsets (#4881) 2018-01-22 13:14:04 -08:00
CustomFieldsetsController.php API for (dis)associating fields with fieldsets (#4881) 2018-01-22 13:14:04 -08:00
DepartmentsController.php Make department columns sortable 2018-02-21 05:04:20 -08:00
DepreciationsController.php Basic sanity checking on some of the API controllers 2017-03-11 08:03:16 -08:00
GroupsController.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
ImportController.php Change duplicate header check to return 1-based header indices 2018-03-22 19:40:12 -07:00
LicensesController.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
LocationsController.php Added - Order location by manager 2018-02-21 05:09:40 -08:00
ManufacturersController.php Fixed #2402 - add ability to restore manufacturers 2018-03-03 18:46:19 -08:00
ReportsController.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
SettingsController.php New Test Notification (#5137) 2018-03-02 18:01:20 -08:00
StatuslabelsController.php Fixed #5138 - added default_label flag to status labels 2018-03-05 22:04:16 -08:00
SuppliersController.php Removed gates from selectlist method 2017-11-09 10:51:55 -08:00
UsersController.php Fixed 2FA reset button 2018-02-26 15:43:49 -08:00