snipe-it/app/Http/Controllers
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
..
Api Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Auth Authentication via REMOTE_USER (clean repull) (#5204) 2018-03-14 12:48:07 -07:00
AccessoriesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
ActionlogController.php Discussion: Moving to policies for controller based authorization (#3080) 2016-12-19 11:04:28 -08:00
AssetMaintenancesController.php Features/better table options (#5018) 2018-02-16 13:22:55 -08:00
AssetModelsController.php Fixed asset model permission not granted for edit 2018-03-07 18:22:49 -08:00
AssetsController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
CategoriesController.php Fixed misc UI permissions elements 2018-01-20 04:39:31 -08:00
CompaniesController.php Fixed handling deleting old images better 2017-11-07 11:28:13 -08:00
ComponentsController.php Fixed incorrect component not found string 2018-02-22 16:36:01 -08:00
ConsumablesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Controller.php Updated docblocks 2016-04-07 13:21:09 -07:00
CustomFieldsController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
CustomFieldsetsController.php Fixes #4027 - proper redirect on fieldset delete 2017-09-27 16:02:29 -07:00
DashboardController.php Call migrate before passport install 2017-10-11 12:42:31 -07:00
DepartmentsController.php Use ImageUploadRequest 2017-12-06 14:38:01 -08:00
DepreciationsController.php Depreciation view 2017-10-17 11:20:05 -07:00
GroupsController.php Prepopulate ther groups array on create 2017-12-05 18:17:11 -08:00
ImportsController.php Fixed #5217 - permissions error with importer for non-admins 2018-03-22 14:17:44 -07:00
LicensesController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
LocationsController.php Fixed misc UI permissions elements 2018-01-20 04:39:31 -08:00
ManufacturersController.php Fixed manufacturer restore 2018-03-03 19:14:27 -08:00
ModalController.php Added “new” buttons for manufacturer and category in asset model creation 2017-12-19 20:30:46 -08:00
ProfileController.php Use ImageUploadRequest $request on user profile update 2017-12-06 14:42:14 -08:00
ReportsController.php Do not try to show depreciation report if no depreciations are set up 2018-01-25 13:16:49 -06:00
SettingsController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
StatuslabelsController.php Fixed #5138 - added default_label flag to status labels 2018-03-05 22:04:16 -08:00
SuppliersController.php Fixed misc UI permissions elements 2018-01-20 04:39:31 -08:00
UsersController.php New First Admin Notification (#5147) 2018-03-03 14:37:42 -08:00
ViewAssetsController.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00