Compare commits

...

2127 Commits

Author SHA1 Message Date
snipe 9a84497fb0 Updated changelog 2016-01-21 19:37:30 -08:00
snipe e4cb237bfe Updated version for 2.1.0 2016-01-21 18:12:05 -08:00
snipe 28b89f3ddb Use location list helper for dropdown 2016-01-15 15:21:34 -08:00
snipe 9ad9e1d5a5 Fixes #1566 - use config url for upload images 2016-01-15 15:21:19 -08:00
snipe 39f40a3f6d Bumped version 2016-01-13 18:00:11 -08:00
snipe 0d3a4813ce Fixes #1631 - delete image on asset edit 2016-01-13 18:00:06 -08:00
snipe 51e480661d Fixes uploads directory for sub-dirctories 2016-01-13 17:59:48 -08:00
snipe 77632cdfb0 Allow optional status change on checkin 2016-01-13 08:04:52 -08:00
snipe 19d6f33770 RTD does NOT mean "Retired" - It means Ready to Deploy. 2016-01-13 07:51:40 -08:00
snipe c779034e41 Better fix for model uniqueness 2016-01-13 07:44:00 -08:00
snipe 8ff7a6ce21 Fixes #1572 - remove unique constraint for models 2016-01-13 07:41:11 -08:00
snipe 1908499379 Fixes #1626 - correctly show deleted models 2016-01-13 07:34:02 -08:00
snipe 348c8f62d1 Fixes #1610 - hide license keys if user doesn't have permission 2016-01-13 07:04:45 -08:00
snipe 7da0ffc325 Fixes #1623 - disallow admins to edit permissions on users 2016-01-13 06:51:56 -08:00
snipe 33b05b071d Shitty, hacky workaround for getting password managers to leave the form fields alone 2016-01-13 06:12:46 -08:00
snipe f98b4095a2 Better explanation of roles 2016-01-13 04:52:26 -08:00
snipe b30edfd9d6 Use locations dropdown 2016-01-13 04:50:55 -08:00
snipe b16ea61da8 Added license_keys as permission 2016-01-13 04:39:26 -08:00
snipe a5e2e7e285 Removed date field until I have time to handle this more efficiently 2016-01-13 04:11:23 -08:00
snipe 456e586e02 Bumped version 2016-01-13 03:58:08 -08:00
snipe 4c4e0ce5c5 Get assetlog with user 2016-01-13 03:58:01 -08:00
snipe 8ea23e6773 Hide extra fields by default (or else endless scrolling) 2016-01-13 03:57:28 -08:00
snipe c9feff0757 Fixes #1580 - license showing as asset in profile view 2016-01-13 03:56:28 -08:00
snipe f1b2ba5c51 Additional comments 2016-01-13 03:56:05 -08:00
snipe 76220b7884 Fixes #1601 - bulk update now honors un-requestable 2016-01-12 20:00:51 -08:00
snipe bb88b85a02 Removed erroneous blade that led to confusing UX 2016-01-11 18:48:49 -08:00
snipe dad816ba25 Removed debugging echo 2016-01-11 18:48:33 -08:00
snipe 4037200fad Additional fields for user import 2016-01-11 18:39:40 -08:00
snipe 326d0cc764 Bumped version 2016-01-11 18:17:01 -08:00
snipe 9800786485 Fixes #1597 and allows non-numeric employee number 2016-01-11 18:16:52 -08:00
snipe ce6b2f2e5f Merge pull request #1598 from ddreier/1597-ldap-email
Updated the LDAP import to get the correct email field setting.
2016-01-07 08:14:57 -08:00
Daniel Dreier 3e2fc13af5 Updated the LDAP import to get the correct email field setting. 2016-01-07 10:03:42 -06:00
snipe 73317f14a0 Bumped version 2016-01-06 21:05:11 -08:00
snipe 6bc2af6e71 Fix for missing company 2016-01-06 21:04:59 -08:00
snipe 962e7531a6 Fix for changing asset model from model with custom fields to one without 2016-01-06 18:04:55 -08:00
snipe e8e8e8f4f3 Bugfix for importer not recognizing existing entries with quotes 2016-01-06 16:21:10 -08:00
snipe 218fe72e16 Fixes #1500: Use the currency setting rather than the localization label 2016-01-05 19:45:40 -08:00
snipe 2b13641661 Fixes #1574 - added Chinese Yuan 2016-01-05 19:33:14 -08:00
snipe 66fe626d51 Fixes #1560 - added AED 2016-01-05 19:31:46 -08:00
snipe ca9ab681b9 Update url for #1566 2016-01-05 19:26:37 -08:00
snipe 0f07f12d35 Merge pull request #1582 from merid14/patch-1
Patch for #1561
2016-01-05 15:16:48 -07:00
snipe 03efe0b3e2 Merge pull request #1585 from snipe/null_custom_fieldset_ok
Allow setting 'no custom fields' from having a customfieldset enabled
2016-01-05 14:56:58 -07:00
Brady Wetherington d7b91d88d6 Allow setting 'no custom fields' from having a customfieldset enabled
in a model.
2016-01-05 13:53:09 -08:00
snipe 298a938db2 Fix for company scoping bug 2016-01-05 13:20:49 -08:00
snipe 6c389298f8 Suppress errors when the file doesn't exist 2016-01-05 13:20:38 -08:00
snipe d4685ec037 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2016-01-05 13:12:57 -08:00
snipe 602501b4a3 Bumped version 2016-01-05 13:12:14 -08:00
snipe e93aebc27b Make first user a super admin 2016-01-05 13:09:55 -08:00
Brady Wetherington e392c87250 Experimental fix for Company scope issue. 2016-01-05 13:08:14 -08:00
Walter 2707742518 Patch for #1561
Added -p back to the db setup to provide password input. #1561
2016-01-05 09:16:59 -05:00
snipe 738dc1fdf0 Bumped version to 2.1.0-pre 2015-12-30 17:08:34 -08:00
snipe 6f04cf9f61 Merge pull request #1554 from snipe/final_custom_fields_tweaks
Final custom fields tweaks
2015-12-30 16:32:16 -08:00
Brady Wetherington 4be3f2700c Make this migration run correctly in the past, before the schema has been changed 2015-12-30 16:23:13 -08:00
Brady Wetherington 4cb0e40abb Eager-Load CustomFieldsets and CustomFields with relations 2015-12-30 16:08:40 -08:00
Brady Wetherington ad144e127c Pertains to one of the elements in #1397 - timestamps and user_id's for Custom Fields 2015-12-30 15:58:51 -08:00
snipe 2f4e54c8a6 Merge remote-tracking branch 'origin/develop' 2015-12-30 15:47:00 -08:00
snipe 7c06cba647 More LDAP login fixes 2015-12-30 14:53:49 -08:00
snipe 5eb506b9c3 Bumped version 2015-12-30 12:57:55 -08:00
snipe 4aa376826f Added dashboard back as string 2015-12-30 12:57:49 -08:00
snipe 1d9e014bfa More auth tweaks :( 2015-12-30 12:57:41 -08:00
snipe 506af72d83 Superadmin check in bulk delete users 2015-12-29 20:03:08 -08:00
snipe 1ce205a579 Fixes #1502 - load tableexport and jquery base64 locally 2015-12-29 19:45:46 -08:00
snipe a7a82e5fbc Fixes #1541 2015-12-29 19:41:50 -08:00
snipe 23da312fff Put deleted_at back in users collection for restore functionality 2015-12-29 19:35:31 -08:00
snipe faf2e464fa Fixes #1526 2015-12-29 19:32:15 -08:00
snipe 79c5d3f7d6 Fixes #1537 and #1524 2015-12-29 19:21:54 -08:00
snipe 2888103d1a More updates for #1433
This is a paired down version of the previous auth. Rather than trying to authenticatr with Sentry at every turn, check for valid LDAP and then once all those LDAP additions/updates are set, then try to auth with the credentials the user provided.
2015-12-29 19:12:22 -08:00
snipe f89176d500 WTF I don't even. 2015-12-29 18:48:06 -08:00
snipe 5eb95272ee Merge pull request #1546 from snipe/docker_fix_2
Enable/Disable SSL based on existence of SSL cert data
2015-12-29 16:46:14 -08:00
Brady Wetherington 6c7e265921 Enable/Disable SSL based on existence of SSL cert data 2015-12-29 16:41:54 -08:00
snipe 76955ec064 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-12-29 15:46:52 -08:00
snipe de9a15a33b Bumped version 2015-12-29 15:46:37 -08:00
snipe f9cf2b2558 Updated translations 2015-12-29 15:46:20 -08:00
snipe e4627cee96 Updated language 2015-12-29 15:41:18 -08:00
snipe 36eb51d6e4 Fixed typo in string 2015-12-29 15:41:05 -08:00
snipe 689832036e Merge pull request #1517 from dmeltzer/for-asset-maintence-and-consum
Fix Asset Maintenance date and consumable counts
2015-12-29 15:10:14 -08:00
snipe 8cfcb2aed8 Merge pull request #1544 from snipe/docker_fix_2
Docker fix 2
2015-12-29 15:08:59 -08:00
Brady Wetherington 27962d5439 Merge branch 'develop' into docker_fix_2 2015-12-29 12:36:45 -08:00
Brady Wetherington f4af607d1a Point instead to the formal documentation, instead of having it here. 2015-12-29 12:35:14 -08:00
snipe 90340a7111 Merge pull request #1535 from dmeltzer/fix-1531-proper
Clear checkout and checkin fields when returning an asset.
2015-12-29 11:38:07 -08:00
snipe 8742bf26b4 Merge pull request #1521 from twistedR/enhancement/ldap-self-signed-cert-support
Add option to allow ignoring SSL Cert verification.
2015-12-29 11:34:07 -08:00
snipe 8eb31a9a82 Merge pull request #1523 from thehereward/fix-up-some-php-docs
Fix PHPDocs that contained incorrect params tags.
2015-12-29 11:32:50 -08:00
snipe aeeb273d4c Merge pull request #1423 from thehereward/develop
TidyUp: Remove unreachable code.
2015-12-29 10:15:36 -08:00
Daniel Meltzer 5f6ba2a148 Clear the expected checkin and last checkout dates when checking an item back in. Fixes #1531 2015-12-28 12:41:24 -05:00
Hereward Mills 0cb3a9265e Fix PHPDocs that contained incorrect params tags. 2015-12-24 11:20:05 +00:00
Raveesh 96a5f437f2 Add option to allow ignoring SSL Cert verification. 2015-12-24 02:17:06 -05:00
Daniel Meltzer 4b92cdf684 Use the same values/calculations in the view as the index. Should fix #1140 I believe 2015-12-23 20:32:48 -05:00
Daniel Meltzer 50be3eed4a Fix Two issues with Asset Maintenance.
1) If a start and end date were given when creating an asset, asset_maintenance_time was not set.
2) AssetMaintenancesController::getDataTable would return 'time' instead of 'asset_maintenance_time', causing the field not to display.
2015-12-23 20:02:20 -05:00
Daniel Meltzer 3b7da8f379 Fix consumable count in categories. This adds new methods to Category, consumables consumablesCount and a generic count. It also refactors CatgoriesController to use the count method rather than having it determine the category type. 2015-12-23 20:02:09 -05:00
snipe 90b00b02cc Merge pull request #1516 from dmeltzer/develop
Add Company name to Asset Importer.  Tested on one set of data.
2015-12-22 13:32:24 -08:00
Daniel Meltzer 9eee73d2e5 I accidentallyied a bracket. 2015-12-22 16:24:21 -05:00
snipe 6639bc1300 Fix overwriting of username if no first/last name 2015-12-22 13:21:51 -08:00
Daniel Meltzer e272cab82f Add Company name to Asset Importer. Tested on one set of data. 2015-12-22 16:13:30 -05:00
snipe 5967dbae64 Company helper, updated bulk view to show model number 2015-12-22 11:39:42 -08:00
snipe f42a3c8918 Added company to bulk edit 2015-12-22 11:12:26 -08:00
snipe d3b3ed0d16 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-12-22 10:56:37 -08:00
snipe 0484924490 Merge pull request #1513 from adamdunson/quantity_is_misspelled
Quantity is misspelled
2015-12-22 10:55:34 -08:00
Adam Dunson 894579314c s/([Qq])uanitity/\1uantity/g 2015-12-22 11:11:11 -05:00
snipe b76f014669 Better handling for invalid locations 2015-12-22 02:40:31 -08:00
snipe f03d1cd4cc Simplified currency display until we can fix it on a broader level 2015-12-22 00:25:30 -08:00
snipe a0db241ac8 Merge pull request #1504 from ddreier/1143-acceptance-by-incorrect-user
Added check and error message for trying to accept an asset that was not checked out to that user.
2015-12-18 16:18:34 -05:00
Daniel Dreier 0c27717c20 Added check and error message for trying to accept an asset that was not
checked out to that user.
2015-12-18 14:51:51 -06:00
snipe ce1565a545 Re-commented mac address - bad merge :-/ 2015-12-18 12:08:08 -05:00
snipe ac5527e7d3 Merge branch 'hotfixes/custom_reports_fix' into develop 2015-12-18 12:06:35 -05:00
snipe 865468d091 Fix for location error 2015-12-18 12:06:11 -05:00
snipe b20f4d245e Fixes #1494 - uncommented mac_address fields 2015-12-17 20:09:47 -05:00
snipe 927c368235 Fix for weird location info in asset report 2015-12-17 19:37:20 -05:00
snipe eacd4ee2b0 Fix for bad data in asset report 2015-12-17 18:59:58 -05:00
snipe 8dab50edc6 Fixes #1498 - better regex for characters in custom field name 2015-12-17 18:19:35 -05:00
snipe ee097dd1da Bumped version 2015-12-15 05:36:04 -08:00
snipe 775ea95458 Fix inability to edit models (unique constraint) 2015-12-15 05:35:14 -08:00
snipe 73f0a19adb Fixes #1459 - fieldset_id error if null 2015-12-15 05:34:54 -08:00
snipe a68cbcf767 Fixes #1472 - only fire DB seeder if the user inputs 'y' 2015-12-15 05:24:15 -08:00
snipe 5c698d7cfd Fixes #1469 - don't require currency at model level 2015-12-15 05:17:44 -08:00
snipe efc06f4b31 Bumped version 2015-12-15 04:15:51 -08:00
snipe bac1b313f6 Added the 2x2 gif to stop stupid 404s 2015-12-15 04:15:42 -08:00
snipe cac254ded6 Fixes #1371 - problem saving new models with non-latin characters 2015-12-15 04:15:28 -08:00
snipe e217d354dc Fixed bug in strict mode for fieldsets 2015-12-15 04:14:19 -08:00
snipe e1837069da Allow bulk model update for #1462, fixes #1442 2015-12-09 20:35:24 -08:00
snipe eb83d9c486 Add header banner if app is running in production mode with debug on 2015-12-09 16:37:34 -08:00
snipe 25338c00e5 Fixes #1456 - email notification when asset requested 2015-12-09 01:40:13 -08:00
snipe 599ea20d65 Fixes #1449 - full link to order number 2015-12-09 01:06:25 -08:00
snipe 72f3b459c5 Merge branch 'hotfixes/user_import_company_id' into develop
Conflicts:
	app/config/version.php
2015-12-08 23:00:27 -08:00
snipe c34c9438da Bumped version 2015-12-08 22:59:33 -08:00
snipe 3d8733c612 Comment out company ID for now until we can handle it more smartly 2015-12-08 22:59:22 -08:00
snipe cab1642ead Small extra logging for LDAP 2015-12-08 21:06:54 -08:00
Hereward Mills 6aa3e21b4c TidyUp: Surpress errors on unreachable statements with link to discussion on github. 2015-12-04 08:09:01 +00:00
snipe b1e48b7054 More debugging 2015-12-03 13:33:28 -08:00
snipe 2686dd640c Additional debugging info 2015-12-03 13:30:56 -08:00
snipe bb7b8f3964 Show error if LDAP failed and local auth failed because user doesn't exist 2015-12-03 04:14:05 -08:00
snipe 5bed0bd7ed Fixes #1437 - set expected checkout correctly 2015-12-03 03:14:29 -08:00
snipe be3c8e4515 Fixes #1440 - make employee number searchable/sortable 2015-12-03 02:07:20 -08:00
snipe 784d1995d8 Added auth login log note 2015-12-03 02:06:34 -08:00
snipe 7802af837b One more fix for LDAP and local users working together 2015-12-02 22:47:22 -08:00
snipe 6f8a76246e LDAP fix for local users 2015-12-02 21:22:56 -08:00
snipe 66e9203b97 Save fieldset on create 2015-12-02 19:21:09 -08:00
snipe b41461698d Fix for error on asset create 2015-12-02 19:03:08 -08:00
Brady Wetherington 8cdb032a14 Fixes error messages, and re-filling old input on failed asset create 2015-12-02 17:57:28 -08:00
snipe 3417d833ba Save on create for custom fields 2015-12-02 17:12:17 -08:00
snipe aff7b99d91 Nicer add/edit formatting putting required fields at the top 2015-12-02 16:31:57 -08:00
snipe 3944553bfc Commented out show_mac_address field in model creation 2015-12-02 16:11:45 -08:00
snipe 3dc79197c3 Fix for LDAP error if username is wrong 2015-12-02 15:59:01 -08:00
snipe f1b00853c6 Final localization and UI improvemets for #1397 2015-12-02 15:21:18 -08:00
snipe 7f46a48173 Attempting to fix #1430 - commented out FK drop to prevent collisions, remove FK creation for new installs 2015-12-02 13:59:20 -08:00
snipe ae8c9f420d Set table engine specifically to InnoDB
It's declasse to alter migrations after the fact, but for some folks with MyISAM set as a default
2015-12-02 12:23:54 -08:00
snipe aa385571cf Additional refinements for #1397 2015-12-01 20:50:54 -08:00
snipe 9920cb2744 Nicer detail view for #1397 2015-12-01 18:17:02 -08:00
snipe 179f96c8e8 More strings for #1397 2015-12-01 18:16:44 -08:00
snipe 7562552f7a More UI nice-ifications for #1397 2015-12-01 17:56:03 -08:00
snipe 5f9d5ae836 More laguage strings for #1397 2015-12-01 17:55:42 -08:00
snipe 639d6214d8 Switch to fa-icons from glyphicon 2015-12-01 17:55:02 -08:00
snipe dad492d131 Fixed back/cancel urls for #1397 2015-12-01 17:33:31 -08:00
snipe 6e78fc0a2d Merge pull request #1427 from snipe/ajax_custom_fields_asset
Add new form partial and AJAX endpoint for custom fields.
2015-12-01 17:27:11 -08:00
snipe e98020fa89 Starter UI improvements and localization for #1397 2015-12-01 17:26:20 -08:00
Brady Wetherington 6ec4f605f4 Handle selecting 'no model' without JS errors. 2015-12-01 17:22:09 -08:00
Brady Wetherington e88f5629df Add new form partial and AJAX endpoint for custom fields. 2015-12-01 17:17:32 -08:00
snipe 475fc4855c Merge pull request #1414 from madd15/patch-6
Fix incorrect routes for update and delete in Asset Maintenance
2015-12-01 14:38:17 -08:00
madd15 edb2a0b1b7 Readd <nobr> 2015-12-02 07:49:47 +10:30
snipe e81fe52aa8 Merge branch 'hotfixes/asset_maintenances_create' into develop 2015-12-01 11:59:49 -08:00
snipe 74ed75dd24 Fixes #1426 - use Asset class for asset maintenances 2015-12-01 11:59:10 -08:00
snipe 17e681ba7c Merge branch 'hotfixes/backup_CSRF' into develop
# Conflicts:
#	app/config/version.php
2015-12-01 11:47:56 -08:00
snipe 4e065e8df7 Bumped version 2015-12-01 11:47:27 -08:00
snipe 9e0f7089c4 Fixes #1415 - Added CSRF token to backup form 2015-12-01 11:47:13 -08:00
snipe c22dcdafa4 Show used in column regardless for Custom Fields 2015-12-01 04:16:31 -08:00
snipe e5cc6d32d1 More small UI tweaks for Custom Fields
Still lots of work to be done here, this is just a rough improvement
2015-12-01 04:14:36 -08:00
snipe 54655faf83 Bumped version 2015-12-01 04:11:13 -08:00
snipe 3b42738a2d Custom field enhancements for UI 2015-12-01 04:11:01 -08:00
snipe 65feb00ea4 Merge pull request #1420 from snipe/delete_custom_fields
Deletion support for fields and fieldsets
2015-12-01 03:12:41 -08:00
snipe 82a3560f27 Merge branch 'hotfixes/image_fix' into develop 2015-11-30 22:02:32 -08:00
snipe e8ca98a37d Fixes issue with assets without a model (which should never happen, but can occur from imports) 2015-11-30 22:01:42 -08:00
Brady Wetherington 9316af7ed8 Deletion support for fields and fieldsets 2015-11-30 17:09:57 -08:00
snipe bbdb576519 Merge branch 'hotfixes/remove_fk' into develop
# Conflicts:
#	app/config/version.php
2015-11-30 12:28:14 -08:00
snipe 43c26f853b Bumped version 2015-11-30 12:27:25 -08:00
snipe 1cd7f10f10 Remove foreign key constraint for #1411 2015-11-30 12:27:06 -08:00
snipe e4ceddd6ce Fix for merge conflict on routes 2015-11-30 10:19:37 -08:00
madd15 bb83a14707 Fix incorrect routes for update and delete 2015-11-30 12:41:37 +10:30
snipe fffc8ed644 Merge pull request #1412 from snipe/same_field_twice
Custom Fields - shouldn't be able to add the same field twice to the same fieldset
2015-11-29 17:25:11 -08:00
snipe c6db29e6c4 Merge pull request #1408 from snipe/custom_fields_adminify
Custom fields adminify
2015-11-29 17:24:54 -08:00
snipe 948e9c2a2b Merge branch 'develop' into custom_fields_adminify
# Conflicts:
#	app/routes.php
2015-11-29 17:24:26 -08:00
snipe 62fe4b8cd3 Merge branch 'hotfixes/1403' into develop 2015-11-29 17:20:42 -08:00
snipe 9b46a5b0f6 Fixes #1403 - hide checkout on asset model listing assets when nt deployable 2015-11-29 17:20:03 -08:00
snipe 8158c12242 Merge branch 'hotfixes/EOL' into develop
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-11-29 17:11:55 -08:00
snipe 36ecf3032f Fixes #1402 - remoe warranty date from EOL calc 2015-11-29 17:09:02 -08:00
snipe 19820db0cc Fixes #1406 - Fixes link to suppliers delete 2015-11-29 16:55:30 -08:00
snipe fc06caded5 Fixes #1406 - Fixes link to suppliers delete 2015-11-29 16:54:48 -08:00
snipe a44c56c937 Merge branch 'hotfixes/fix_1413' into develop
# Conflicts:
#	app/config/version.php
#	app/models/Company.php
2015-11-29 16:49:34 -08:00
snipe 2accfab79e Fixes #1413 - wrong link for manufacturers delete 2015-11-29 16:45:55 -08:00
Brady Wetherington 418be7f5de Fix to adding same custom field twice. Helps with #1397. Requires
PR #1408 to be merged first.
2015-11-29 13:16:03 -08:00
Brady Wetherington beeb28bf09 Fix routes for custom fields, fix admin access. Helps with #1397 2015-11-28 18:18:53 -08:00
snipe 92410ba054 Bumped version 2015-11-26 14:12:06 -08:00
snipe 078750726f Set default value for company_id to fix seeder 2015-11-26 14:11:56 -08:00
snipe 7d2ae0d10d CSRF for ajax 2015-11-26 14:11:38 -08:00
snipe d8a9d2d3eb Bumped version 2015-11-26 14:08:24 -08:00
snipe b925c5766f Set company_id to null if no logged in user to fix seeder 2015-11-26 14:03:29 -08:00
snipe 6bedaa903a CSRF token for ajax 2015-11-26 13:53:51 -08:00
Brady Wetherington 4f3cdc20f5 Start of moving custom fields to the /admin/ space 2015-11-26 13:47:09 -08:00
snipe 1efb1f7038 Remove MAC address fields since they are now custom fields 2015-11-26 13:42:13 -08:00
snipe 6708911d5d Remove mac address (now custom field) 2015-11-26 13:33:01 -08:00
snipe 3bbcbf5f47 Merge branch 'hotfixes/ldap_settings' into develop 2015-11-26 13:11:47 -08:00
snipe 989ce59a5b Fixes #1399 - Import LDAP config into database 2015-11-26 13:10:28 -08:00
snipe 774b1cb28b Merge pull request #1398 from snipe/custom_fields_erroring
Custom fields erroring
2015-11-25 20:45:02 -08:00
Brady Wetherington 10086479b7 Better erroring, return previous input on error. 2015-11-25 20:38:22 -08:00
Brady Wetherington c0e988b6b1 Basic validation on customFieldset 2015-11-25 20:14:26 -08:00
snipe 93cf37336d Merge pull request #1277 from snipe/custom_fields
Basic custom fields support - needs UI refinements
2015-11-25 19:14:53 -08:00
Brady Wetherington 924f61fce9 Cache custom field listing for assets, custom fields are sortable 2015-11-25 16:09:16 -08:00
Brady Wetherington c6f8d3e6f2 A little bit of basic, terrible navigation for Custom Fields. 2015-11-25 15:40:58 -08:00
Brady Wetherington a212abee1d Strip out stale comments 2015-11-25 15:30:06 -08:00
Brady Wetherington 4508225d65 Add default layout basic styling to custom fields 2015-11-25 15:16:20 -08:00
Brady Wetherington e3ec2ae3ec Style the drop-down for custom fieldset to match 2015-11-25 14:55:49 -08:00
Brady Wetherington d653126a2a Merge branch 'develop' into custom_fields
Conflicts:
	app/controllers/admin/AssetsController.php
	app/views/backend/hardware/index.blade.php
	app/views/backend/hardware/view.blade.php
2015-11-25 14:22:22 -08:00
snipe ba39cbb5e0 Merge remote-tracking branch 'origin/develop' 2015-11-25 03:50:08 -08:00
snipe 34276984f3 Bumped version 2015-11-25 03:49:47 -08:00
snipe 2195e27d61 Added company_list to license clone 2015-11-25 03:48:05 -08:00
snipe 948be5c74b Updated language strings 2015-11-25 03:37:48 -08:00
snipe 93c582970c Merge remote-tracking branch 'origin/develop' 2015-11-25 03:19:34 -08:00
snipe 9624388522 Added company_list to clone asset 2015-11-25 03:19:13 -08:00
snipe 6abfb1b968 Merge remote-tracking branch 'origin/develop' 2015-11-25 02:47:48 -08:00
snipe 59b2b8c63e Switch to hash version for more consistent cookie resets 2015-11-25 02:47:21 -08:00
snipe 658462cda5 Merge remote-tracking branch 'origin/develop' 2015-11-25 02:39:13 -08:00
snipe dad1ffb355 Specify table name in select to prevent id overwriting 2015-11-25 02:38:13 -08:00
snipe 12b82d6679 Merge remote-tracking branch 'origin/develop' 2015-11-25 00:22:31 -08:00
snipe 20490986c6 Fixes #1325 - zenbra striping and borders on table for money value clarity 2015-11-24 23:43:10 -08:00
snipe 64eecc8df7 Added image to model listing view for #1370 2015-11-24 23:24:20 -08:00
snipe 0f33bad1b6 Commented out version of export all
This still works sorta wonky, and only exports 50 per page. Possibly related to https://github.com/wenzhixin/bootstrap-table/issues/1576
2015-11-24 23:15:01 -08:00
snipe 632fa92f92 Fixes #1333 - hide checkout button if asset status is not deployable 2015-11-24 22:49:31 -08:00
snipe 99391d0179 Fixes #1332 - added location to accessories 2015-11-24 22:43:13 -08:00
snipe c6c6bd02bb Possible fix for weird UTF-8 issues 2015-11-24 22:30:00 -08:00
snipe 904ddddce9 Removed consumable search sicne it doesn't do anything yet 2015-11-24 22:20:13 -08:00
snipe d34e7178b3 Order consumable assignments by most recent 2015-11-24 22:18:28 -08:00
snipe 0428d21c5e Order consumable assignments by most recent 2015-11-24 22:18:16 -08:00
snipe d8b43215b0 Fix for missing admin ID 2015-11-24 22:00:29 -08:00
snipe b39c53a5ea Closes #1375 - More data in consumables detail view 2015-11-24 21:58:30 -08:00
snipe 67e968b032 Fixed attach() timestamps 2015-11-24 21:52:29 -08:00
snipe 032aabeadd Bumped version 2015-11-24 20:34:16 -08:00
snipe 1202ce4a81 Compound search for consumables 2015-11-24 20:34:10 -08:00
snipe 406e077c1e Fixed indenting 2015-11-24 20:34:00 -08:00
snipe 4be046a675 Fixes #1387 - adds server-side compound search 2015-11-24 20:33:51 -08:00
snipe 535263788d Fixed dumb indenting 2015-11-24 20:20:34 -08:00
snipe 29bb6a3c4f Fixed issue where deleted asset tags could not be re-used
This was by-design to start off with, since it would b weird to re-use an asset tag that legitimately belonged to someone else, however sometimes when assets are accidentally deleted and users don't restore them (or if there were weird duplicates), this can be problematic.
2015-11-24 20:20:28 -08:00
snipe f04e4b1fb4 Bumped version 2015-11-24 19:38:23 -08:00
snipe c8c755f8c3 Fixed filename renaming 2015-11-24 19:38:13 -08:00
snipe 287c7735b6 Added CSRF token for upload 2015-11-24 19:37:59 -08:00
snipe 2a28c73845 Importer fixes - check for asset before inserting 2015-11-24 19:37:37 -08:00
snipe 3dc0381e2b Updated contributing docs 2015-11-24 18:05:48 -08:00
snipe a3dbd87f9f Fixed weird company table styles 2015-11-24 13:47:43 -08:00
snipe 6d42d2c614 Fixed bootstrap class for button 2015-11-24 13:44:58 -08:00
snipe e910b532c7 Account for invalid categories 2015-11-24 13:31:54 -08:00
snipe a777499c0b Fixes #1376 - added new fields to consumables view 2015-11-24 13:30:05 -08:00
snipe b99c138cb0 Fixes #1369 - fixed searching/sorting on location 2015-11-24 12:48:41 -08:00
snipe cbb2151f1a Allow re-use of usernames 2015-11-24 12:29:25 -08:00
snipe 256f33e6b4 Company/category search on accessories 2015-11-24 12:08:49 -08:00
snipe 59315878c3 Bumped version 2015-11-24 11:47:40 -08:00
snipe f6e2654609 Added searching on company name, ordering on company name for PR #1321 2015-11-24 11:47:34 -08:00
snipe 4ad241e65e Merge pull request #1386 from RealEnder/develop
Add Bulgarian lev and replace tabs
2015-11-24 10:51:55 -08:00
snipe 808b66b9f5 Merge pull request #1384 from merid14/develop
Moved installer to snipeit.sh for logging
2015-11-24 10:50:46 -08:00
Walter edbfdc6eb1 pointed wget to snipe master 2015-11-24 09:13:01 -05:00
Alex Stanev 716c459985 Fix ident 2015-11-24 12:30:28 +02:00
Alex Stanev ef011cdf7e Add Bulgarian lev 2015-11-24 12:25:57 +02:00
snipe b93f36a856 Bumped version 2015-11-23 21:04:47 -08:00
snipe e60c0e3b4d Warning message about EOL 2015-11-23 21:04:41 -08:00
snipe 407b341510 Updated bootstrap tables 2015-11-23 20:57:18 -08:00
snipe 120c8394bb Fixes #1380 - groups pagination 2015-11-23 19:18:00 -08:00
snipe cc17862eae Back out the encryption constructor for now 2015-11-23 18:18:49 -08:00
snipe c24f1721d7 Bumped version 2015-11-23 17:44:00 -08:00
snipe c80f1789d4 Set default hasher in constructor 2015-11-23 17:43:53 -08:00
snipe 4a49e6f471 Added popover code 2015-11-23 17:43:43 -08:00
snipe e9f4be711a Added required fields 2015-11-23 17:43:35 -08:00
snipe 1bccb6127e Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-11-23 15:18:22 -08:00
snipe 61107769e8 Add user ID and make company name hidden by default 2015-11-23 15:18:10 -08:00
snipe 4e96a5a793 Merge pull request #1374 from vabue/features/ukrainian-currency
Add ukrainian and russian currencies for #1373
2015-11-23 15:17:24 -08:00
snipe f87a25bf3f Moved company down further, since it's not used as often 2015-11-23 14:44:08 -08:00
snipe 4ae02c1fb3 Merge pull request #1321 from Ahimta/multiple-companies
Add support for multiple companies
2015-11-23 14:40:37 -08:00
snipe 9ec132acde Small fixed for LDAP in settings table 2015-11-23 14:33:00 -08:00
snipe 318b4b48c6 Fixes null value for LDAP settings 2015-11-23 14:11:55 -08:00
snipe 329a2282e4 Merge pull request #1357 from merid14/features/ldap-settings
Features/ldap settings
2015-11-23 14:10:44 -08:00
Wahlstedt, Walter f8014c4677 Insure running as root. added comment
added comment to ubuntu installer so people know to wait.
2015-11-23 16:37:54 -05:00
Walter 7a07c07e29 removed password insert to database 2015-11-23 16:16:05 -05:00
Wahlstedt, Walter 4b926f015b fixed typo in installer 2015-11-23 16:08:02 -05:00
Wahlstedt, Walter aa834aa72b Merged changes to new snipeit.sh install file. 2015-11-23 16:04:12 -05:00
Wahlstedt, Walter 400b97c40a Merge remote-tracking branch 'refs/remotes/snipe/develop' into develop
Conflicts:
	install.sh
2015-11-23 16:02:59 -05:00
Wahlstedt, Walter 8394212df7 update tzone for centos7 2015-11-23 15:49:08 -05:00
Wahlstedt, Walter 2487ce42e3 remove installers 2015-11-23 15:22:39 -05:00
Wahlstedt, Walter fb59ad9fe6 remove force root 2015-11-23 15:15:08 -05:00
Wahlstedt, Walter 8af5fd0384 Merge remote-tracking branch 'origin/develop' into develop
Conflicts:
	snipeit.sh
2015-11-23 14:43:00 -05:00
Wahlstedt, Walter 4de42f69ba adding some IO redirection 2015-11-23 14:40:15 -05:00
Walter 620d4754c0 install epel repo before IUS 2015-11-22 23:15:01 -05:00
Walter 6ea3bedb9e set decryption and set pword in migraiton 2015-11-22 23:08:18 -05:00
Walter 840e5b1523 Revert "begin work on idap import button"
This reverts commit 3942fd1869.
2015-11-22 11:10:36 -05:00
Walter 1ee3f29d2e Revert "working on ldap import button"
This reverts commit 113dfc9c24.
2015-11-22 11:02:19 -05:00
Walter 6b26640077 Merge remote-tracking branch 'refs/remotes/snipe/develop' into features/ldap-settings 2015-11-22 11:01:07 -05:00
Val Budkin 964d2bc463 Add ukrainian and russian currencies for #1373 2015-11-22 17:50:08 +02:00
Abdullah Alansari e4a634a8a3 Merge remote-tracking branch 'upstream/develop' into multiple-companies 2015-11-21 11:27:00 +03:00
Abdullah Alansari 5445a7d16b Scope users like other companyables
Note that the User model doesn't use global scope,
global models can have unexpected results that
would very likely break many parts of the application
2015-11-21 11:23:42 +03:00
Abdullah Alansari 86a174201e Only users with no company or supers can manage users' companies 2015-11-21 04:30:15 +03:00
Abdullah Alansari 7a03a56498 Fix: company field required 2015-11-21 03:59:12 +03:00
snipe 01b574069a Fixes #1362 - status labels losing type on edit 2015-11-20 09:20:14 -08:00
snipe cc930fc5b8 Fixed links to getting help and common issues 2015-11-20 09:19:45 -08:00
snipe 67a58221eb Fixes #1368 - typos in installer 2015-11-20 07:30:40 -08:00
Bjarne K 31c4a63ec0 Added copy for apache SSL file and commands to enable SSL in apache 2015-11-20 11:55:57 +01:00
Walter a0f2ad5d54 point to dev 2015-11-19 21:32:58 -05:00
Walter 2c7553e81e Setting up logging for the install script 2015-11-19 21:15:47 -05:00
Abdullah Alansari e82ede5d44 Fix: some Company functions throw when seeding the DB 2015-11-19 09:44:06 +03:00
Abdullah Alansari e91a22fce0 Fix assumeng Setting::getSettings() is not null in Company
Breaks the TravisCI build:
> php artisan db:seed --no-interaction -vvv
[ErrorException]
Trying to get property of non-object
2015-11-19 09:32:36 +03:00
Abdullah Alansari 31ecd165a3 Merge remote-tracking branch 'upstream/develop' into multiple-companies 2015-11-19 09:24:57 +03:00
Abdullah Alansari fe44846c1b Fix: only super users can change multiple companies support option 2015-11-19 09:17:50 +03:00
Abdullah Alansari c708a24657 Restrict backups to super users 2015-11-19 09:13:20 +03:00
Abdullah Alansari dbdc2c8e64 Fix some typos (e.g: companayable) 2015-11-19 08:48:43 +03:00
Abdullah Alansari e66e2e42d3 Use global scope for companyable children 2015-11-19 08:42:17 +03:00
Abdullah Alansari a598fdcb59 Add global scope for companyable children 2015-11-19 08:03:19 +03:00
Abdullah Alansari 177fadba8a Add better scoping for companayable children 2015-11-19 07:41:32 +03:00
snipe 1fe5bd3770 Merge remote-tracking branch 'origin/develop' 2015-11-18 14:29:53 -08:00
snipe 2b26fd7e20 Fixed string in gh-changelog 2015-11-18 14:29:29 -08:00
snipe 7a0598dfc3 Pulled naughty language from changelog 2015-11-18 13:56:13 -08:00
snipe 5ebb267a53 Updated changelog script 2015-11-18 13:52:57 -08:00
Wahlstedt, Walter 638a7773bd syntax error 2015-11-18 16:36:02 -05:00
Wahlstedt, Walter 113dfc9c24 working on ldap import button
add route for button
added button and open/close for form
2015-11-18 16:22:04 -05:00
Walter 3942fd1869 begin work on idap import button 2015-11-18 12:11:42 -05:00
Abdullah Alansari d2423b2fc8 Show company name for the remaining entities 2015-11-18 19:15:56 +03:00
bmk a8e686cdf7 added SSL config for apache 2015-11-18 15:58:17 +01:00
Abdullah Alansari 08781a561b Fix: use global scope for companies support
Use Eloquent ORM global scope instead of using
Company::scopeCompanayables() all over the place.

In addition, this makes it harder to for a user
that is assigned to a company to access unauthorized
assets through other entities (e.g: license seats)
2015-11-18 16:49:34 +03:00
Abdullah Alansari 8fb7d82bab Fix no admin/consumables route 2015-11-18 16:46:29 +03:00
Abdullah Alansari ced2a99031 Add Eloquent global scope for companayables 2015-11-18 09:29:35 +03:00
Abdullah Alansari 0a97c626e7 Fix $inout used when undefined 2015-11-18 07:16:53 +03:00
Abdullah Alansari 6478425be6 Fix dashboard shows all companies
Fix dashboard page shows statistics of all companies
even when the user is assigned to a company
and full multiple companies support is enabled
2015-11-18 06:14:08 +03:00
Abdullah Alansari 999910f31f Fix 'use' used with non-compound
Fix "The use statement with non-compound name '{Lang,Sentry,Setting}' has no effect"
2015-11-18 05:35:27 +03:00
Wahlstedt, Walter 73a183677d Revert "add escaping to ldap fields in blades"
This reverts commit 1d24450dcd.
2015-11-17 16:12:24 -05:00
Wahlstedt, Walter 1d24450dcd add escaping to ldap fields in blades 2015-11-17 16:06:55 -05:00
Wahlstedt, Walter 6f338e573c set required_if ldap_enabled box has been checked. 2015-11-17 16:00:52 -05:00
Wahlstedt, Walter 8e44421788 added Crypt class and set ldap_pword field to longText 2015-11-17 15:20:55 -05:00
Wahlstedt, Walter e031239cf0 Removed escaping, add sometimes required, add encrypt ldap password 2015-11-17 13:49:59 -05:00
snipe 21a280676b Merge pull request #1356 from merid14/develop
Set default to not seed DB
2015-11-17 09:34:38 -08:00
Wahlstedt, Walter ac44140d83 fix edit blades 2015-11-17 10:50:39 -05:00
Wahlstedt, Walter c8ecddba54 Revert "Set required fields if ldap is enabled"
This reverts commit 2f69be03d3.
2015-11-17 10:47:59 -05:00
Wahlstedt, Walter 2f69be03d3 Set required fields if ldap is enabled 2015-11-17 10:46:29 -05:00
Wahlstedt, Walter 7e8a0af6e5 Set default to not seed DB 2015-11-17 10:12:26 -05:00
Wahlstedt, Walter 63cd0c1ae1 Merge remote-tracking branch 'refs/remotes/snipe/develop' into features/ldap-settings 2015-11-17 10:11:38 -05:00
Wahlstedt, Walter 8a014d4bd3 update ldap integration 2015-11-17 10:00:06 -05:00
Wahlstedt, Walter 8793a04869 add ldap integration to settings page. 2015-11-17 09:59:20 -05:00
Wahlstedt, Walter d72df21b3b Update migration and blades 2015-11-16 16:31:43 -05:00
Wahlstedt, Walter 08d0fe5118 change tables from text to string/int 2015-11-16 13:21:00 -05:00
Wahlstedt, Walter 2ec5f340e8 update validators and lang 2015-11-16 13:08:51 -05:00
Wahlstedt, Walter 3e1e9b0077 syntax errors 2015-11-16 12:48:41 -05:00
Wahlstedt, Walter 937249b960 enable ldap import if data exists in database 2015-11-16 12:38:47 -05:00
Wahlstedt, Walter 50ea6c66f9 LDAP Settings update
update ldap field names
add ldap fields to controllers
add ldap fields to migration
add lang fields
update edit page
2015-11-16 11:30:51 -05:00
Wahlstedt, Walter 0910d9cf8c correct name of migration 2015-11-16 09:44:06 -05:00
Walter 30e8555148 updating users controller to work with database fields 2015-11-15 22:48:56 -05:00
Walter 8f6c37c301 add ldap to en lang 2015-11-15 22:22:42 -05:00
Abdullah Alansari b202e01205 Add full multiple companies support
Added as an option in settings.
When enabled, users (including admins) who are assigned
to companies have access only to their companies' assets.
2015-11-16 06:03:27 +03:00
Walter 7f9fab0055 adjusted settings 2015-11-15 21:42:49 -05:00
snipe b210d90148 Merge remote-tracking branch 'origin/develop' 2015-11-13 12:07:34 -08:00
Abdullah Alansari 23d10a8f7f Make company field optional
Company field is now optional for the user,
although still required in the controllers.
2015-11-13 09:19:18 +03:00
Brady Wetherington 6d365157e7 Changed to using Entrypoint instead of CMD for better start/stop 2015-11-12 21:50:58 -08:00
Brady Wetherington 3a99136f73 More documentation fixes 2015-11-12 21:14:10 -08:00
Brady Wetherington 50170dd774 Improve start script, add entrypoint script 2015-11-12 20:05:39 -08:00
Brady Wetherington 5e1bec71f2 Start to move README over to emphasize running docker pull snipe/snipe-it 2015-11-12 14:07:05 -08:00
Brady Wetherington d73134f32d Merge branch 'develop' into docker_enhancements 2015-11-12 13:44:40 -08:00
Abdullah Alansari d8df61bd32 Merge remote-tracking branch 'upstream/develop' into multiple-companies
Conflicts:
	app/controllers/admin/UsersController.php
	app/views/backend/hardware/index.blade.php
2015-11-12 09:30:11 +03:00
Walter 12912b3e27 adjusting the migration 2015-11-11 23:43:02 -05:00
Walter d9cd4a4da0 setting up views for ldap 2015-11-11 23:03:46 -05:00
snipe 2afc252549 Link to category listing from accessories 2015-11-11 17:43:24 -08:00
snipe aa05d041bd Fixes #1324 - missing $inout variable when if/else not met 2015-11-11 17:22:28 -08:00
snipe bbe0189be2 CSS for max image size on asset view 2015-11-11 16:06:17 -08:00
snipe a0599712a6 Show model image if available and no asset image 2015-11-11 16:06:07 -08:00
snipe 1a4926ce13 Sort by asset image for PR #1330 2015-11-11 15:57:41 -08:00
snipe 3c8959e92d Bumped version 2015-11-11 15:56:10 -08:00
snipe ab3871f678 Small changes for PR #1330 2015-11-11 15:56:01 -08:00
snipe 7297a6031e Merge pull request #1330 from mtucker6784/develop
Images for devices on the Assets datatable page.
2015-11-11 15:51:31 -08:00
snipe 75bd29b027 Added cookie expiration for sorting/filtering 2015-11-11 14:50:17 -08:00
snipe b77b9c0434 Merge pull request #1323 from merid14/develop
Enhancements for installer
2015-11-10 18:02:47 -08:00
snipe b9c36f8638 Fixes #1335 - editing maintenance 2015-11-10 18:02:06 -08:00
Walter ecae451ebf form validation 2015-11-09 22:34:18 -05:00
Walter 9627f15412 update settings controller to add ldap field validation 2015-11-09 22:32:00 -05:00
Walter 464f11c398 setting up bones for ldap settings
add migration
add ldap settings to settings controller
add ldap fields edit settings views
2015-11-09 22:09:09 -05:00
mtucker6784 90009db1b5 Image is now recorded upon initial asset creation. 2015-11-09 12:01:31 -07:00
mtucker6784 d7f8d0fc04 Changed image save location in AssetsController 2015-11-09 09:35:10 -07:00
mtucker6784 effad46cc0 create assets image directory 2015-11-09 09:16:53 -07:00
mtucker6784 4509631921 Add image column migration 2015-11-09 08:47:05 -07:00
mtucker6784 d1a306cfd8 Yay, asset image progress! 2015-11-09 08:25:29 -07:00
Walter 2de4741170 Add password confirmation, hide password and set default database seed to no 2015-11-07 22:21:07 -05:00
Walter fc609ece12 Merge remote-tracking branch 'refs/remotes/snipe/develop' into develop 2015-11-07 22:13:48 -05:00
snipe ecfd1b2693 Merge remote-tracking branch 'origin/develop' 2015-11-07 15:54:37 -08:00
snipe a8da68d3fd Fixes #1320 - added name for cookie table 2015-11-07 15:53:39 -08:00
snipe 69970d1296 Merge remote-tracking branch 'origin/develop' 2015-11-07 15:44:27 -08:00
snipe ef7c7da4e5 Merge pull request #1302 from merid14/develop
Reworked the Installer
2015-11-07 15:42:06 -08:00
snipe 306d8ebaf7 Fixes #1317 - regression issue in bulk delete 2015-11-07 15:40:25 -08:00
snipe 250880c6f3 Include default text in status label helper 2015-11-07 15:39:03 -08:00
Abdullah Alansari 6bf2a2875f Add initial support for multiple companies
You can find screenshots and other files
related to the feature on Dropbox here:
https://www.dropbox.com/sh/wugnzqepwgzwlnh/AAAwNWA5hIKrP0y2VTu-LMHHa?dl=0

https://github.com/snipe/snipe-it/issues/23
2015-11-07 15:22:10 +03:00
Walter 9f43b6af9f fixed apache config file 2015-11-06 15:17:54 -05:00
Walter a47a4e83e2 fixed issues with sed command and / 2015-11-06 11:53:07 -05:00
Walter ca1384504a fixed tzone variable assignment 2015-11-06 10:03:58 -05:00
Walter fc6bb7f056 sets the timezone automatically 2015-11-06 09:02:51 -05:00
Walter 62cee46a83 update webdir for debian and fix the error logs 2015-11-06 08:30:51 -05:00
Walter c94ece2925 changed replace for sed command 2015-11-05 21:42:20 -05:00
Walter 5d5882ea5b moved the permissions changes to the end 2015-11-05 21:40:51 -05:00
Walter 61fc912c47 moving permisions block and some mysql stuff 2015-11-05 16:25:03 -05:00
Walter e54bbcd37f working on debian installer 2015-11-04 21:14:19 -05:00
snipe c1961c0e40 Merge pull request #1313 from mtucker6784/develop
Make Model column a hyperlink to access the model page.
2015-11-04 15:26:25 -08:00
Michael T 11c2fcd094 Remove new window target 2015-11-04 16:10:27 -07:00
Michael T b856e7f2c6 Make Model column a hyperlink to access the model page. 2015-11-04 15:55:41 -07:00
snipe 7a84d1061b Merge remote-tracking branch 'origin/develop' 2015-11-04 14:04:23 -08:00
Walter 56b50468d2 fixed packages for centos6 2015-11-04 16:01:25 -05:00
Walter c7057f550f removed a var 2015-11-04 10:08:04 -05:00
Walter 037cda36b2 formatting 2015-11-04 09:17:16 -05:00
Walter f3de39efd6 syncing centos 6 and centos 7
wasnt replacing production.yourserver.com with the fdqn. took out
http://
changed .conf file name to $name.conf instead of $fdqn.conf
2015-11-04 09:06:48 -05:00
snipe af5c221385 Updated language strings 2015-11-04 03:42:37 -08:00
snipe feb74806a8 Removed models override 2015-11-04 01:08:17 -08:00
snipe 14ba5a3b77 Fixes #1310 - adds version hash to table name to prevent cookie issues for folks who pull from dev 2015-11-04 01:08:05 -08:00
snipe bc8c8e4225 Fixes #1012 - more consistency in manufacturer view 2015-11-04 00:48:53 -08:00
snipe dc64ad55ee Fixed link to manufacturers view 2015-11-04 00:37:43 -08:00
snipe 7e2b4183f6 Added in/out to categories 2015-11-04 00:37:27 -08:00
snipe 0a843fa856 OMFG really? 2015-11-04 00:18:22 -08:00
snipe 5a687f280f One more currency tweak 2015-11-04 00:15:35 -08:00
snipe 4b2e7b9b06 Fixes #1013 - show location name on asset view page 2015-11-04 00:13:48 -08:00
snipe 1ac41a72ec Link to asset in asset maintenance screen 2015-11-04 00:07:00 -08:00
snipe 6e117efebd Fixed dumb indenting 2015-11-03 23:58:12 -08:00
snipe 17207ddea1 Fixed table cookie name 2015-11-03 23:57:58 -08:00
snipe 130b1b4f4a Converted category asset listing to bootstrap tables for #1266 2015-11-03 23:57:31 -08:00
snipe 8a7981a4ae Updated currency array 2015-11-03 22:49:34 -08:00
snipe 90513b06f5 Removed duplicate UK/GB 2015-11-03 22:23:33 -08:00
snipe 750fc84592 Updated seeder with currency 2015-11-03 22:22:10 -08:00
snipe 2a43491792 Fixes #1291 on the asset view as well 2015-11-03 22:19:58 -08:00
snipe f4331f4498 Fixes #1291 - use location currency and fall back to defaul currency for asset maintenances 2015-11-03 22:04:57 -08:00
Walter 0d1544c3d6 Fixing some package issues and syntax errors 2015-11-03 16:29:18 -05:00
Walter 958672dfd3 Fixed missing vars and typos 2015-11-03 14:12:21 -05:00
Walter 7355fd9ebe Merge remote-tracking branch 'origin/develop' into develop
Conflicts:
	install.sh
2015-11-03 13:39:12 -05:00
Walter 5df26f9b0a Fixed the ubuntu install portion that i broke 2015-11-03 13:33:03 -05:00
snipe a587b72c71 Fixed dumb indenting 2015-11-02 20:11:26 -08:00
snipe 0b0b55619b Fixes #1291 - Use current currency, or sane fallback 2015-11-02 20:06:06 -08:00
snipe a760a7575a Added user notes back in 2015-11-02 19:28:51 -08:00
snipe a86f0e6178 Bumped version 2015-11-02 19:27:23 -08:00
snipe 577c193661 Fixed bug in location import 2015-11-02 19:27:07 -08:00
snipe f147a0ff02 Fixed user table name 2015-11-02 19:26:33 -08:00
snipe 0745ec1502 Fixed scope for users 2015-11-02 19:26:10 -08:00
snipe 5bed0482b6 Bumped version 2015-11-02 19:17:33 -08:00
snipe 9731727095 Sorting for #1266 2015-11-02 19:17:20 -08:00
snipe 769fb13282 Search on manager name for #1266 2015-11-02 18:37:16 -08:00
snipe a9e1283a17 Added search on location parent for #1266 2015-11-02 18:36:49 -08:00
snipe 5bb94c4b4e Added fields to location assets display 2015-11-02 17:42:47 -08:00
snipe 67a113cbf4 Additional fields for location assets display 2015-11-02 17:41:58 -08:00
snipe d0eed67c42 Fixed relationship to return actual assets 2015-11-02 17:41:33 -08:00
snipe 9cc542aea9 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-11-02 16:45:44 -08:00
snipe 725ca04ac8 Bumped version 2015-11-02 16:45:30 -08:00
snipe e07dcf2598 Added location detail view 2015-11-02 16:45:19 -08:00
snipe 712e415f4d Updated deleted seats language 2015-11-02 16:45:02 -08:00
snipe c8551367cb Moved sample file so people can't accidentally import it 2015-11-02 16:44:46 -08:00
snipe 5c820d49a6 Fixes #1305 2015-11-02 16:44:17 -08:00
Walter 9f12b6a084 Should be read to merge! 2015-11-01 11:35:33 -05:00
Walter 187ab53c18 centos > ubuntu :) 2015-11-01 11:03:02 -05:00
Walter e35de90806 Version checking should work now 2015-11-01 10:57:25 -05:00
Walter 800100c0cc working on centos 6 switch case 2015-10-30 21:26:59 -04:00
snipe fbd79fc943 Merge pull request #1298 from MicaelRodrigues/snipeMike
Create user on the fly from sucessful LDAP authentication, if it does not already exist.
2015-10-30 16:22:12 -07:00
Walter 7e6d142c1f Moving more stuff to the tmp dir 2015-10-30 00:00:07 -04:00
Walter da17603be1 use tmp dir and set mariadb root pass
use /tmp/snipeit for working with files and clean that up at the end.
also use mysql_secure_installation to set the root password instead of
setting it and making the user input it again.
2015-10-29 23:41:22 -04:00
Walter 34530b209f working on case statement 2015-10-29 22:54:26 -04:00
Walter 760e2fca01 Changed from if/else to case statement
I changed the if/else statement to a case statement so that we can do
multiple os/versions. Also added the working code for CentOS 7 that I
will backport to CentOS 6. Need to add OS version detection.
2015-10-29 22:31:45 -04:00
Walter d1e977b85a force sudo 2015-10-29 22:10:56 -04:00
Walter 21cc1e9aec more formatting 2015-10-29 22:04:28 -04:00
Walter 346090ebff removing un-needed echo 2015-10-29 21:51:44 -04:00
Walter 40ca02481d Working on formatting
Added a banner and made the formatting a little easier to follow
2015-10-29 20:54:49 -04:00
Micael Rodrigues b39944b2d7 Create user on the fly from sucessful LDAP authentication, if it does not already exists. 2015-10-28 23:01:45 +00:00
snipe e0fccc8fc9 Possible fix for #1296? Can't reproduce locally 2015-10-28 05:53:28 -07:00
snipe 76968f7d48 Fixes asset model table sorting 2015-10-28 03:23:55 -07:00
snipe 5436d54aa0 Fixes #1290 - datatable broken for assets in model 2015-10-28 02:10:04 -07:00
snipe b6f4080b97 Fixes consumable detail view 2015-10-26 14:36:55 -07:00
snipe 09bcb137c4 Ugly fix for preventing errors if there is an invalid model (therefore no category) 2015-10-23 21:22:42 -07:00
snipe 8ec6b7e03a Basic location ordering for #1266 2015-10-23 21:19:22 -07:00
snipe efddda8665 Fixed expected_checkin error on asset view 2015-10-23 18:28:06 -07:00
snipe 48e6ebe306 Make EOL not sortable anymore, since that sort doesn't work 2015-10-23 18:15:27 -07:00
snipe eb1335405b Order by last_checkout and expected_checkin for #1266 2015-10-23 17:59:21 -07:00
snipe 8a1ffb9014 Save de-normed values for last checkout and expected_checkin 2015-10-23 17:55:03 -07:00
snipe ec4b2f114d Merge pull request #1283 from snipe/features/checkout_time
Migration to add last_checkout and expected_checkin fields to Asset
2015-10-23 17:47:45 -07:00
Brady Wetherington 9a5edb3db7 Migration to add last_checkout and expected_checkin fields to Asset 2015-10-23 17:40:04 -07:00
snipe f0557f8e1c Added expected Checkin scope
Neither this nor the methd above actually work tho. Need to spend some time on the complex joins and sorting
2015-10-23 15:25:02 -07:00
snipe 2953b395f2 Added order number to allowed sort columns 2015-10-23 15:12:06 -07:00
snipe e9050826ec Added order number if one is being searched on 2015-10-23 14:49:58 -07:00
snipe 20e7888bd9 Fixed expected checkin on view 2015-10-23 14:36:20 -07:00
snipe e93b53ad4c Updated maintenance mode message 2015-10-23 14:35:42 -07:00
snipe 0a3843393d Addec expected_checkout, fixed language calls to use blade syntax 2015-10-23 14:35:31 -07:00
snipe 60f403f555 Expected checkin is a date, not a datetime 2015-10-23 14:29:00 -07:00
snipe cf49920564 Fixes #1235 - 24 hour format for log 2015-10-23 12:39:22 -07:00
Brady Wetherington a955d57c20 When edit blade is used for New Asset, need to account for no model
being selected.
2015-10-22 11:21:15 -07:00
Brady Wetherington 63eca44789 Custom fields can be shown on the hardware list page. They can also
be searched for.
2015-10-22 03:33:27 -07:00
snipe aaf2c6fbce Updated licenses and unaccepted assets to use bootstrap tables for #1266 2015-10-22 03:28:12 -07:00
snipe 9a63cbbd6c Removed download button 2015-10-22 03:22:59 -07:00
snipe 0aeab1ab7e Remove CSV export button 2015-10-22 03:13:30 -07:00
snipe 4c3a5a99df Use client-side bootstrap tables for reports 2015-10-22 03:11:34 -07:00
snipe 60370b9627 Added acceptance methods back in 2015-10-22 03:10:43 -07:00
snipe df986c7cfe Minor indenting edits 2015-10-22 03:10:25 -07:00
Brady Wetherington a67951fbce Merge branch 'develop' into custom_fields
Conflicts:
	app/controllers/admin/AssetsController.php
	app/views/backend/hardware/index.blade.php
2015-10-22 02:30:30 -07:00
snipe a3f5dc331d Fixes #1007 and #1053 2015-10-22 02:11:39 -07:00
snipe af6a3dcccd Updated sample data 2015-10-22 01:14:21 -07:00
Brady Wetherington 0f6de6a477 Asset editing works. 2015-10-22 01:06:35 -07:00
Brady Wetherington 5890d26545 Terribly rough Custom Fields creation 2015-10-22 00:38:07 -07:00
snipe 7901b49503 Updated sample file 2015-10-22 00:18:44 -07:00
snipe 8ea40d4e6d Fixes default value for strict mode 2015-10-22 00:17:45 -07:00
snipe 1bdd5886e6 Select * because reasons 2015-10-21 23:58:07 -07:00
snipe 9c71d34761 Merge pull request #1276 from madd15/patch-5
return getEdit to correct method
2015-10-21 23:40:53 -07:00
madd15 79a69d7633 return getEdit to correct method 2015-10-22 17:10:02 +10:30
snipe 27799dc78a Nicer activity report display
(This needs the API/Bootstrap tables treatment soon)
2015-10-21 23:39:45 -07:00
snipe 4cb19d1aae More eager loading, pass $statuslabel_types to view 2015-10-21 23:31:28 -07:00
snipe c91113ac95 Eager load accessories 2015-10-21 23:25:33 -07:00
snipe eb5649d0b3 Eager load assets 2015-10-21 23:25:23 -07:00
snipe f06af97364 Account for no limit or offset passed 2015-10-21 23:23:22 -07:00
snipe b1d5812ae2 Fixed categorys page 2015-10-21 23:19:27 -07:00
snipe 2e044bf0a3 Fixed category bug 2015-10-21 23:18:40 -07:00
snipe bd418d1422 Eager load some models 2015-10-21 23:17:22 -07:00
snipe 440bc1a4b4 Fixes bug in people display 2015-10-21 23:15:35 -07:00
snipe dba7983189 Added new fields to index view 2015-10-21 23:07:23 -07:00
snipe 5ff75e7f42 Merge remote-tracking branch 'origin/develop-bootstrap-tables-integration' into develop
# Conflicts:
#	app/controllers/admin/CategoriesController.php
#	app/views/backend/accessories/view.blade.php
#	app/views/backend/categories/index.blade.php
#	app/views/backend/settings/edit.blade.php
2015-10-21 23:06:43 -07:00
snipe 69c95f1f73 Merge pull request #1225 from ddreier/1088-acc-prices
Accessory and Consumable Price info #1088
2015-10-21 22:44:14 -07:00
snipe 30bbc9ad46 Merge pull request #1238 from Miliamber/develop
Added fixed icon width in navbar and new branding options
2015-10-21 22:43:30 -07:00
snipe 059993b064 Make groups table responsive 2015-10-21 22:41:50 -07:00
snipe ed612287ee Merge pull request #1273 from ddreier/ldap-auth-harden
Change LDAP auth to better handle no user found
2015-10-21 22:38:02 -07:00
snipe ba7b56f5d7 Merge pull request #1274 from patgmac/patch-2
Typo in package name
2015-10-21 22:37:07 -07:00
snipe 5b5d262d3c Merge pull request #1275 from ddreier/custom-report-purchase-cost
Fixes Purchase Cost not showing up on custom reports
2015-10-21 22:36:38 -07:00
snipe 9d6608c8f1 Asset maintenances for #1266 2015-10-21 22:19:02 -07:00
snipe 28fcd2b8ab Fixed indenting 2015-10-21 21:31:38 -07:00
snipe 7087e86ca5 Nicer (tho non-ajaxy) table 2015-10-21 21:23:58 -07:00
snipe bf32e89e0c Corrected delete modal string for #1266 2015-10-21 19:46:50 -07:00
snipe 7a306cd0f0 Depreciations bootstrap tables for #1266 2015-10-21 19:43:09 -07:00
snipe 95b033bdb8 Load table export helpers locally 2015-10-21 19:33:22 -07:00
snipe ea4dfdd50c Status labels for #1266 2015-10-21 19:24:01 -07:00
snipe 0b87357f3b Search text method for #1266 2015-10-21 19:10:00 -07:00
snipe 9c914e7ef5 New API routes for #1266 2015-10-21 19:09:47 -07:00
snipe 68e7941c21 Added hidden ID field for #1266 2015-10-21 19:09:35 -07:00
snipe f761b2e953 Suppliers for #1266 2015-10-21 19:09:20 -07:00
snipe e03f07bb44 Manufacturers for #1266 2015-10-21 19:09:02 -07:00
snipe 0c830fa564 Added hidden ID column 2015-10-21 19:08:30 -07:00
Daniel Dreier 8ad220701e Fixes Purchase Cost not showing up on custom reports 2015-10-21 20:24:07 -05:00
Patrick Gallagher 7087a191c6 Typo in package name
php-gd should be php5-gd.
2015-10-21 21:18:06 -04:00
snipe d1192095d0 Fix for showing deleted items 2015-10-21 18:05:27 -07:00
snipe 348a566f89 More responsive fixes 2015-10-21 18:05:03 -07:00
Daniel Dreier 9724d118e6 Changing the comparison to not care about type allows for auth to fail when no user is found in the LDAP directory. 2015-10-21 19:17:55 -05:00
snipe b18be5aee8 Fixed relationshop again? 2015-10-21 16:14:15 -07:00
snipe 7dc0039c3b Fixed parent relationship 2015-10-21 16:01:54 -07:00
snipe 218c76592c Added currency to display table for #1266 2015-10-21 16:01:44 -07:00
snipe b5b8865b36 Locations in bootstrap tables for #1266 2015-10-21 15:43:12 -07:00
snipe a896bb0eff Updated categories with cookie and export stuff for #1266 2015-10-21 15:42:59 -07:00
snipe 36a3d655ad Added cookie name to make column cookies work 2015-10-21 15:15:04 -07:00
snipe e12e2f2c7c Updated BS tables library 2015-10-21 14:49:58 -07:00
snipe cab5dba7c2 Only show manager name if a manager is listed 2015-10-21 14:49:39 -07:00
snipe b25b3321f9 Fixes skip/offset for #1266 2015-10-21 14:49:24 -07:00
snipe 4e3c196664 Manager search for #1266 2015-10-21 14:49:09 -07:00
snipe 27735a8821 Asset model text search for #1266 2015-10-21 14:48:59 -07:00
snipe 6800559596 Fixed dumb braces 2015-10-21 14:41:00 -07:00
snipe 47d6682098 Updated cookie.js for #1266 2015-10-21 14:40:46 -07:00
snipe def6b4ff50 Categories for accessories in #1266 2015-10-21 13:48:52 -07:00
snipe d9ea718d51 Added back missing div 2015-10-21 13:36:35 -07:00
snipe cf7571d3a6 Fixed inline display od checkboxes 2015-10-21 13:27:40 -07:00
snipe 21982a1d51 Additional fields for text search on licenses 2015-10-21 13:14:56 -07:00
snipe 87adb5e0ca Use old Datatables for maintenances until we can build the bootstrap tables API 2015-10-21 13:11:27 -07:00
snipe dfca1386ac Accessories bootstrap tables for #1266 2015-10-21 13:05:14 -07:00
snipe 1d12104eef Merge remote-tracking branch 'origin/develop' 2015-10-21 12:40:18 -07:00
snipe 03e36736c2 Nicer responsive display 2015-10-20 22:11:06 -07:00
snipe 644cfee086 Merge branch 'develop-bootstrap-tables-integration' of github.com:snipe/snipe-it into develop-bootstrap-tables-integration 2015-10-20 21:51:23 -07:00
snipe c346dbaff6 Location search, deleted users for #1266 2015-10-20 21:50:58 -07:00
snipe fc458e571b Merge pull request #1269 from madd15/patch-4
Change Models tables and category text search
2015-10-20 21:08:38 -07:00
madd15 d61983efdf Change to Bootstrap Table 2015-10-21 14:35:51 +10:30
madd15 07f1c5774e Add scopeTextSearch 2015-10-21 14:31:26 +10:30
madd15 f96e4ebd4c Add scopeTextSearch 2015-10-21 14:30:32 +10:30
madd15 de0e1627c7 Change Models Datatables - #1266 2015-10-21 14:28:20 +10:30
madd15 46a02b25da Update getDatatable and getDataView 2015-10-21 14:24:25 +10:30
snipe 3095af4a8e Merge pull request #1268 from madd15/patch-3
Categories Index table view
2015-10-20 20:46:41 -07:00
snipe a90f7218de Revert "Change Categories Datatables - #1266"
This reverts commit ca625418fe.
2015-10-20 20:45:52 -07:00
snipe 84c12e5f01 Revert "Change Categories Datatables - #1266"
This reverts commit 4beb3b024d.
2015-10-20 20:45:52 -07:00
snipe 8f02e0e26f Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-10-20 20:42:10 -07:00
snipe 50abb87276 Merge pull request #1267 from madd15/patch-3
Categories Index table view
2015-10-20 20:34:05 -07:00
Brady Wetherington 20c35fd0bb Okay, most migrations are kinda-sorta working now, but validations aren't 2015-10-20 20:26:18 -07:00
madd15 ca625418fe Change Categories Datatables - #1266 2015-10-21 13:54:05 +10:30
madd15 4beb3b024d Change Categories Datatables - #1266
Convert categories index to new table.

EULA is still not working correctly
2015-10-21 13:49:30 +10:30
snipe b39e617e96 Added inelegant nobr for actions column for #1266 2015-10-20 20:02:18 -07:00
snipe 93bd9120cc Updated orderby for #1266 2015-10-20 19:57:31 -07:00
snipe 2171e668fe Bumped version 2015-10-20 19:51:52 -07:00
snipe 103c61d936 Updated users view with bootstrap tables 2015-10-20 19:51:46 -07:00
snipe f4d882606a New getDataTable method for Bootstrap tables 2015-10-20 19:51:28 -07:00
snipe b56aba3cc2 Added basic text search - this needs to be fleshed out more with more search options 2015-10-20 19:51:10 -07:00
snipe 377e4c06a1 Standardizing BS tables options for #1266
(should be made into a macro)
2015-10-20 18:58:21 -07:00
snipe 58911cd10e Use moar_scripts to limit unnecessary loading 2015-10-20 18:51:21 -07:00
snipe 9264e7bdc4 Fixed missing limit 2015-10-20 18:08:53 -07:00
snipe 78143cbd1c Bumped version 2015-10-20 17:52:20 -07:00
snipe 01f00cfe51 Updated ignore for LDAP 2015-10-20 17:52:14 -07:00
snipe b492ac4950 Merge branch 'bootstrap-table-experiment' into develop-bootstrap-tables-integration
# Conflicts:
#	.gitignore
#	app/controllers/admin/AccessoriesController.php
#	app/controllers/admin/AssetsController.php
#	app/controllers/admin/LicensesController.php
#	app/models/Accessory.php
#	app/models/Asset.php
#	app/routes.php
#	app/views/backend/accessories/index.blade.php
#	app/views/backend/accessories/view.blade.php
#	app/views/backend/hardware/index.blade.php
#	app/views/backend/licenses/index.blade.php
2015-10-20 17:52:02 -07:00
Brady Wetherington bdc0619016 Merge branch 'develop' into custom_fields
Conflicts:
	app/helpers.php
2015-10-20 17:11:04 -07:00
Brady Wetherington 273d838a42 Wide swing at custom fields 2015-10-20 17:06:07 -07:00
snipe 03daecdfed Merge remote-tracking branch 'origin/develop' 2015-10-19 14:11:26 -07:00
snipe 2dcb59dd8f Bumped version 2015-10-19 14:10:46 -07:00
snipe e7f14f66dc Fixes #1260 - removed domain from cli list
The web upload form is still in beta, and shouldn't be used in production. Still need to add email/username formatting options to the form.
2015-10-19 11:23:02 -07:00
snipe d0aab3e2c7 Merge pull request #1261 from patgmac/patch-1
Include installation of php-gd for Ubuntu
2015-10-19 11:08:01 -07:00
Patrick Gallagher 58f323721c Include installation of php-gd for Ubuntu
php-gd is installed for RH distros, but not Ubuntu.
2015-10-19 11:50:38 -04:00
snipe 923d1d34de Merge remote-tracking branch 'origin/develop' 2015-10-16 01:27:33 -07:00
snipe cf767d255d Bumped version 2015-10-16 01:26:44 -07:00
snipe daa6943cfc Added username column to sample CSV 2015-10-16 01:26:34 -07:00
snipe 707e5c50e4 Merge remote-tracking branch 'origin/develop' 2015-10-16 01:21:05 -07:00
snipe a7ea98ad93 Use domain from config 2015-10-16 01:20:38 -07:00
snipe 52a60bd6a5 Removed extra method 2015-10-16 01:20:31 -07:00
snipe e75cebafeb Added domain config option for email 2015-10-16 01:08:38 -07:00
snipe 26c0e96e56 Merge remote-tracking branch 'origin/develop' 2015-10-16 00:36:00 -07:00
snipe 58c497adb7 Updated language strings 2015-10-16 00:35:39 -07:00
snipe d0ebaf3cb9 Merge remote-tracking branch 'origin/develop' 2015-10-16 00:33:04 -07:00
snipe c4f85fb74d Bumped version 2015-10-16 00:32:42 -07:00
snipe 71b85732b0 Updates to importer 2015-10-16 00:32:35 -07:00
Stefan 0db075cb13 fixes lang option for remote script 2015-10-12 21:00:27 +02:00
Stefan a6586b5919 Added option to select brand type text or logo or text + logo 2015-10-12 20:34:12 +02:00
Stefan 485b34b66e fixed layout and added branding option 2015-10-12 19:14:05 +02:00
Stefan Kittner e9e04e86da added fixed width for navbar icons (fa-fw) 2015-10-12 10:26:27 +02:00
snipe 66fd0c2315 Fixes #1232 - adds category to accessory listing view 2015-10-09 13:22:36 -07:00
Daniel Dreier 73d4c65daf Finished work on #1088. Added info to view, translation strings and logic to controllers. 2015-10-06 19:29:44 -05:00
snipe 0287821d44 Brought sidenav up higher for better layout 2015-10-06 16:30:18 -07:00
snipe 00b93883e4 Updated translations 2015-10-06 16:14:38 -07:00
snipe 89816d90b4 Corrected consumable string 2015-10-06 16:09:10 -07:00
snipe 4f74ad077a Fixes #1136 - allow consumables to be deleted, even if they have been assigned 2015-10-06 16:08:32 -07:00
snipe 75af50def1 Accessories fix for #1204 2015-10-06 15:58:03 -07:00
snipe ec80c99a48 Fixes #1204 2015-10-06 15:50:49 -07:00
snipe f6b57adda3 Fixes #1211 and duplicate column in view 2015-10-06 14:58:13 -07:00
snipe 76dc518846 Better output filename 2015-10-06 14:39:58 -07:00
snipe d149fb1a0f Change output file to text 2015-10-06 14:36:00 -07:00
Daniel Dreier 3ecfff94ef Created the migration, copied view stuff from asset edit to acc. and consumable. 2015-09-30 22:44:55 -05:00
snipe d15ef5c79d Addd user_id to suppliers seeder 2015-09-28 16:32:56 -07:00
snipe 10909a21cd Fixes #1206 - updated seeder with is_warranty value 2015-09-28 16:30:51 -07:00
snipe 141c77fed7 Fixed #1205 set default nullable in purchase order for strict mode 2015-09-28 14:08:45 -07:00
snipe 9027ed8864 More aggressive autocomplete blocking on user edit/create 2015-09-27 21:39:38 -07:00
snipe 4c662b7136 Fixes #1196 - added licensed to name and email in list view 2015-09-25 16:56:12 -07:00
snipe 9ba2779e5f Simpler results output for now 2015-09-23 20:37:30 -07:00
snipe 6500af5125 Temp placeholder file - need to ajaxify this 2015-09-23 20:37:06 -07:00
snipe ff6fe331f3 Add the newly uploaded row to the table 2015-09-23 19:18:28 -07:00
snipe 567cd4847b Added sample CSV 2015-09-23 18:37:29 -07:00
snipe 97d0d789f0 Updated gitkeep and gitignore for new dirs 2015-09-23 18:11:37 -07:00
snipe ba9f00365a Error checking on filetype 2015-09-23 16:57:27 -07:00
snipe 6f6427a298 fa-icon instead of glyphicon 2015-09-23 16:56:58 -07:00
snipe b943ace21b Fixed wrong model type reference 2015-09-23 09:58:09 -07:00
snipe 4abe93ae2e Call the artisan command to do import, show output 2015-09-23 02:36:16 -07:00
snipe 64c5ea033c Bumped version 2015-09-22 20:23:46 -07:00
snipe bedb97c0d8 jQUery File Upload libraries 2015-09-22 20:23:35 -07:00
snipe 586c04354e Starter asset import routes 2015-09-22 20:23:00 -07:00
snipe e13bbb1b6b Updated composer 2015-09-22 20:22:43 -07:00
snipe 999b237ed7 Added asset import to nav 2015-09-22 20:22:36 -07:00
snipe 505d46d49f Fixed typo 2015-09-22 20:22:21 -07:00
snipe 515e70b97c Merge pull request #1180 from hawk554/patch-1
Set replace for http on url in app.php
2015-09-21 20:23:47 -07:00
snipe 53b5ec64e0 Fixes #514 - adds RM as currency 2015-09-21 20:07:36 -07:00
Brady Wetherington 22ea008bb4 New documentation on Docker method of running Snipe-IT. New environment
variables available to customize how Snipe-IT ought to work under
Docker. Locale, timezone, and custom-URL support. Documentation pushes
users to move more towards 'env-files' rather than environment variables.

Fixes #1020
2015-09-21 16:44:17 -07:00
Brady Wetherington 86c620df3d Typo in the word 'language' 2015-09-21 16:41:48 -07:00
snipe 2df8c6a3d1 Merge pull request #1186 from snipe/docker_fix2
Fix for #1052 - hopefully make it less brittle in future as well.
2015-09-21 14:00:47 -07:00
Brady Wetherington 49a20c75ed Fix for #1052 - hopefully make it less brittle in future as well. 2015-09-21 13:15:26 -07:00
snipe 49a8b7b83c Merge branch 'bootstrap-table-experiment' of github.com:snipe/snipe-it into bootstrap-table-experiment 2015-09-21 00:17:30 -07:00
snipe 6bfa5837c5 Updated gitignore to ignore sql dumps 2015-09-21 00:17:22 -07:00
snipe d41c3fde10 Updated bulgarian and thai translation strings 2015-09-20 23:58:00 -07:00
snipe 8fcf907050 Updated demo url to https 2015-09-20 23:54:55 -07:00
snipe 0cb4b9e00b Fixes #1181 - add title to maintenances in asset view 2015-09-20 23:51:56 -07:00
snipe 7a57fd73e5 Merge remote-tracking branch 'origin/develop' 2015-09-20 18:11:08 -07:00
snipe 41b3f5b5c8 Bumped version 2015-09-20 18:10:37 -07:00
snipe fbbe24f197 Fixes #1184 because package authors can't seem to keep their stuff from breaking 2015-09-20 18:10:30 -07:00
snipe 9b0495453d Merge pull request #1147 from jotterbot/develop
Adding Purchase Cost to AssetImporterCommand
2015-09-18 16:17:59 -07:00
hawk554 0511b0777f Set replace for http on url in app.php
The script keeps the "url" variable set as https in $dir/app/config/production/app.php but the script sets up the apache for http. The only problem this caused for me was the "Dashboard" and "Snipe-IT" button's href was set to https.
2015-09-18 09:13:29 -05:00
snipe fe765b3c9c Fixed not found error message string 2015-09-17 13:59:43 -07:00
snipe 740967e4f2 Additional translations 2015-09-17 11:02:43 -07:00
snipe cffd87c5a3 Fix user display if no location was provided 2015-09-15 10:52:12 -07:00
snipe c8526a6be0 Merge remote-tracking branch 'origin/develop' 2015-09-15 09:59:55 -07:00
snipe abd0acbe9d Add username to user's list view 2015-09-15 09:58:56 -07:00
snipe 3719f9a5a8 Added supplier ID to asset seeder 2015-09-15 03:45:00 -07:00
snipe f9dc5766a7 Suppliers seeder 2015-09-15 03:41:37 -07:00
snipe c6b6ccc814 More seeders 2015-09-15 03:31:20 -07:00
snipe bd7a043ab0 Merge remote-tracking branch 'origin/develop' 2015-09-15 03:00:49 -07:00
snipe 611da2ffbd Only show location map if $user->userloc is valid 2015-09-15 02:59:19 -07:00
snipe 911e9092f9 Prevent group altering from trolling douchebags 2015-09-15 02:46:40 -07:00
snipe 06c9076c2f Prevent generating backups, deleting files and file downloads in demo mode 2015-09-15 02:32:19 -07:00
snipe b8fa5abadf Disable manual backup on demo 2015-09-15 02:25:53 -07:00
snipe dac2747c01 Updated localization for new backup strings 2015-09-15 02:10:01 -07:00
snipe db44430870 Generate button localization 2015-09-15 02:08:39 -07:00
snipe c12139e624 Added generate and delete backups 2015-09-15 02:05:51 -07:00
snipe a2f6d8f72e Change to #1174 - pull other functions out of if statement 2015-09-14 21:52:51 -07:00
snipe 39f82e546f Fixes #1174 - broken migration if asset_logs table has uploads 2015-09-14 21:40:05 -07:00
snipe 6e6661a72b Merge remote-tracking branch 'origin/develop' 2015-09-14 16:47:43 -07:00
snipe d79e2a0864 Allow > tags for custom CSS to modify bootstrap 2015-09-14 16:47:16 -07:00
snipe 0110cd3c55 Merge remote-tracking branch 'origin/develop' 2015-09-14 15:50:02 -07:00
snipe 3b359d7c6e Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-09-14 15:49:00 -07:00
snipe 3da5c15249 Bumped version 2015-09-14 15:48:49 -07:00
snipe fcec12f3b2 Allow asset-level EOL to override model level if given 2015-09-14 15:48:42 -07:00
snipe 924c23b5ae Merge pull request #1173 from jbirdkerr/jbirdkerr-checkin-template
Update checkin-asset.blade.php
2015-09-11 19:51:08 -07:00
jbirdkerr d70aa42cc9 Update checkin-asset.blade.php 2015-09-11 21:48:05 -05:00
snipe aecc98b8a3 Merge remote-tracking branch 'origin/develop' 2015-09-11 16:14:20 -07:00
snipe 2c54c93859 Fixes #1170 - barcode alternative 2015-09-11 16:13:44 -07:00
snipe b6b0a5ac58 Merge pull request #1168 from mtucker6784/develop
Modified readme.md and install.sh
2015-09-10 16:20:52 -07:00
Michael T 2291dda425 Add info w/install.sh for fresh Ubu/CentOS install 2015-09-10 15:11:16 -07:00
Michael T b402a68bc2 Install Snipe-It on a clean Ubuntu/CentOS install
This script is designed to install Snipe-It on a fresh install of Ubuntu or CentOS.  You will receive minimal options regarding setting passwords and the script should take care of the rest.  The purpose of this script is to install Snipe-It on a server that will be dedicated to the application.

This was tested on Ubuntu 14.04 and CentOS 7, YMMV with different OS versions.
2015-09-10 15:08:07 -07:00
snipe 97ecdba262 Bumped version 2015-09-10 11:49:47 -07:00
snipe 8c2ee9e96c Fixes #1167 - don't allow double checkin 2015-09-10 11:49:43 -07:00
snipe e05baf1df4 Fixed language strings for accessories 2015-09-10 11:49:26 -07:00
snipe 141bba490f Merge remote-tracking branch 'origin/develop' 2015-09-09 16:40:42 -07:00
snipe 416be43061 Added the fideveloper service provider to app.php 2015-09-09 16:36:50 -07:00
snipe 2c89d05156 Smaller font size for labels to prevent them from getting cut off 2015-09-09 14:11:15 -07:00
snipe 680b189709 Fixes #1151 - additional LDAP option 2015-09-09 14:01:17 -07:00
snipe 29d5682956 Updated language strings, added Bulgarian 2015-09-09 13:56:10 -07:00
snipe 32604f0715 Fixes #1154 - DL CVS string 2015-09-09 13:40:14 -07:00
snipe d1fc48d82e Disable CSS edits for demo 2015-09-09 13:27:50 -07:00
snipe 650f86406d Added custom CSS field in settings 2015-09-09 13:17:36 -07:00
snipe 9b353ae0d8 Fixes #1150 - added note about lowercasing 2015-09-09 11:47:18 -07:00
snipe cbcc43828e Removed required indicator for serial 2015-09-09 11:19:43 -07:00
James Otter c59122a125 Adding Purchase Cost to AssetImporterCommand 2015-09-04 16:03:20 +10:00
snipe 6a08ee1597 Merge remote-tracking branch 'origin/develop' 2015-09-03 19:24:22 -07:00
snipe 7bd5ddc516 Fixes incorrect title for unaccepted assets report 2015-09-01 16:41:47 -07:00
snipe ed05a32f0b Merge pull request #1061 from vsposato/feature/setupCodeception
DO NOT MERGE - testing codeception
2015-08-31 13:57:37 -07:00
snipe f3e7f06dc5 Merge pull request #1116 from madd15/bootstrap-table-experiment
Add base for Licenses with bootstrap tables
2015-08-31 13:57:18 -07:00
snipe 780226a612 Merge pull request #1127 from madd15/patch-1
Fix #1109 - Asset names are missing when viewing user history
2015-08-31 13:57:12 -07:00
snipe ca37c63649 Merge pull request #1128 from madd15/patch-2
Fix #1123 - fix new lines in serial not being recognised
2015-08-31 13:57:04 -07:00
Vincent Sposato c3e4b579d3 Merge branch 'feature/setupCodeception' of github.com:vsposato/snipe-it into feature/setupCodeception 2015-08-28 20:11:29 -04:00
Vincent Sposato 217caf3002 Cleaning up the tweaks to finalize the testing! 2015-08-28 20:11:02 -04:00
Vincent Sposato c870933125 More tweaks to get environment working 2015-08-28 20:11:02 -04:00
Vincent Sposato 3698b107d6 More tweaks 2015-08-28 20:11:01 -04:00
Vincent Sposato 703fd9ba8f More tweaks 2015-08-28 20:11:01 -04:00
Vincent Sposato 9107784746 More tweaks 2015-08-28 20:11:01 -04:00
Vincent Sposato b1776a2816 Another tweak to the config 2015-08-28 20:11:00 -04:00
Vincent Sposato 9f993fa16c Even more tweaks... 2015-08-28 20:11:00 -04:00
Vincent Sposato 7555b97f80 More tweaks, more prayers... 2015-08-28 20:11:00 -04:00
Vincent Sposato 784238f2de Made changes to travis.yml to see if I can get codeception tests passing 2015-08-28 20:10:59 -04:00
Vincent Sposato 0d76ea5050 Putting app.php back to production state 2015-08-28 20:10:59 -04:00
Vincent Sposato 3199dfd1d8 Checking testing issue to see if wrong environment is loading 2015-08-28 20:10:58 -04:00
Vincent Sposato ceac5a59ff More tweaks to the travis 2015-08-28 20:10:58 -04:00
Vincent Sposato 309ce7d0bd Another tweak - getting close 2015-08-28 20:10:58 -04:00
Vincent Sposato 129e45c817 Updated travis yaml to add a permissions change for the storage directory 2015-08-28 20:10:57 -04:00
Vincent Sposato e8f3b27141 Added a sleep statement to make things work possibly 2015-08-28 20:10:57 -04:00
Vincent Sposato 2eb64b3105 Last change for detecting correct environment 2015-08-28 20:10:57 -04:00
Vincent Sposato c48ae56e2f Last tweak before I head to begin drinking heavily... 2015-08-28 20:10:56 -04:00
Vincent Sposato 8d5033c4e5 A tweak to make this work with an app environment variable 2015-08-28 20:10:56 -04:00
Vincent Sposato fd78fd8d24 This is getting old... 2015-08-28 20:10:56 -04:00
Vincent Sposato 1f6874f0af One last tweak - this may be it 2015-08-28 20:10:55 -04:00
Vincent Sposato fdde048f11 More tweaks / changes 2015-08-28 20:10:55 -04:00
Vincent Sposato 8fd50e9524 Adding more debug tweaks 2015-08-28 20:10:55 -04:00
Vincent Sposato f836f88e38 Another tweak getting closer 2015-08-28 20:10:55 -04:00
Vincent Sposato 775239e2ed Almost there... 2015-08-28 20:10:54 -04:00
Vincent Sposato 16d1875157 A change to my previous tweak for background serving 2015-08-28 20:10:54 -04:00
Vincent Sposato af6d9b462b A couple more tweaks to make everything work 2015-08-28 20:10:53 -04:00
Vincent Sposato bfeb4560ca Got some more tweaks, and changes to make things work 2015-08-28 20:10:53 -04:00
Vincent Sposato 194e43d206 More tweaks for debugging 2015-08-28 20:10:53 -04:00
Vincent Sposato 13830b5c09 More tweaking of the travis yaml file trying to get more out of the results 2015-08-28 20:10:52 -04:00
Vincent Sposato 855a155178 Tweaking the configuration to work with travis - attempting hostname tweaks 2015-08-28 20:10:52 -04:00
Vincent Sposato 3975555503 One more stupid mistake in travis yaml file - 2015-08-28 20:10:52 -04:00
Vincent Sposato b1d6d4da37 Fixed stupid mistake in the travis yaml file 2015-08-28 20:10:51 -04:00
Vincent Sposato be402a9d7d Fixed issue in travis yaml file 2015-08-28 20:10:51 -04:00
Vincent Sposato 00aba507f7 Fixed acceptance suite yaml to make it work for travis-ci as well as local testing 2015-08-28 20:10:50 -04:00
Vincent Sposato 0cadab8fc6 Initial changes to allow travis-ci to run codeception tests 2015-08-28 20:10:50 -04:00
Vincent Sposato cc14eee161 Adding setup for Codeception 2015-08-28 20:10:50 -04:00
Vincent Sposato 9d4f7193ae Cleaning up the tweaks to finalize the testing! 2015-08-28 20:04:42 -04:00
Vincent Sposato 2f62925d85 More tweaks to get environment working 2015-08-28 20:01:29 -04:00
Vincent Sposato f40d4dfbf4 More tweaks 2015-08-28 19:53:47 -04:00
Vincent Sposato fd9f6f615f More tweaks 2015-08-28 19:48:40 -04:00
Vincent Sposato c7618bd31e More tweaks 2015-08-28 19:46:37 -04:00
Vincent Sposato 4e831a6396 Another tweak to the config 2015-08-28 19:44:36 -04:00
Vincent Sposato 0492fad3ab Even more tweaks... 2015-08-28 19:42:45 -04:00
Vincent Sposato 1db2a84dcb More tweaks, more prayers... 2015-08-28 19:41:05 -04:00
Vincent Sposato 913e7f7803 Made changes to travis.yml to see if I can get codeception tests passing 2015-08-28 19:31:50 -04:00
snipe da10a9a2aa Fixes #1130 - don't try to send email if email is not provided with the user 2015-08-28 12:15:07 -07:00
snipe cf7ef5e8b0 Merge pull request #1131 from irasnyd/docker-fixes
Add LDAP support to Docker image
2015-08-28 10:02:18 -07:00
Ira W. Snyder 3f08258bf0 Add LDAP support to Docker image
This adds LDAP support to the Docker image. All parameters are specified
using environment variables named following the convention in the
configuration files themselves.
2015-08-28 09:10:28 -07:00
Ira W. Snyder f7ce7060eb Allow Docker users to set the server URL
This change allows Docker users to set the server URL by setting the
SERVER_URL environment variable. This is done in the same way as the
database and mail settings.
2015-08-28 09:03:06 -07:00
madd15 6e13da6293 Fix #1123 - fix new lines in serial not being recognised
Hope this is the right way to fix this
2015-08-28 16:28:17 +09:30
madd15 dd2b9e15a6 Fix #1109 - Asset names are missing when viewing user history 2015-08-28 14:44:10 +09:30
Brady Wetherington 49e898fd26 Merge pull request #1122 from irasnyd/docker-fixes
Fix broken Docker build
2015-08-26 14:43:10 -07:00
Ira W. Snyder 1927f131aa Fix broken Docker build
The Dockerfile now includes the php5-curl package, which is needed to
satisfy a missing dependency.

The docker/app_start.patch was updated to match changes to the source
code.
2015-08-26 14:09:03 -07:00
snipe d3bcf727fb Merge remote-tracking branch 'origin/develop'
# Conflicts:
#	.gitignore
#	app/commands/LicenseImportCommand.php
#	app/config/version.php
#	app/start/artisan.php
2015-08-25 19:48:16 -07:00
snipe a4a29be868 Bumped version 2015-08-25 19:40:08 -07:00
madd15 0074e1abcc Add name text search 2015-08-25 16:37:10 +09:30
madd15 3f5dad7789 Change to Bootstrap Table 2015-08-25 16:36:32 +09:30
madd15 a365cdc2cc Switch to new method 2015-08-25 16:34:51 +09:30
snipe 2e7fd02f42 Updated language strings 2015-08-24 12:59:35 -07:00
Vincent Sposato 1d9bf26194 Putting app.php back to production state 2015-08-22 13:23:43 -04:00
Vincent Sposato 7a813b2a45 Checking testing issue to see if wrong environment is loading 2015-08-22 13:13:33 -04:00
snipe da6770c9d9 Fixes #1102 - default currency stored as htmlentities in the DB 2015-08-21 18:11:23 -07:00
snipe 7dd2b3d580 Fixes #1104 2015-08-21 16:00:03 -07:00
snipe e5b80ab423 Merge pull request #1105 from aalaily/develop
Remove hardcoded location in favour of a selection dropdown
2015-08-21 12:19:25 -07:00
Aladin Alaily 27efae93ac Add some explanation about the location field. 2015-08-21 10:42:37 -04:00
Aladin Alaily 960be7c5ae Replace hardcoded location with a user selection. 2015-08-21 10:40:18 -04:00
Aladin Alaily 0b5f83fc56 add a drop down of locations 2015-08-21 10:39:45 -04:00
snipe 89564b3d2a Merge pull request #1099 from kobie-chasehansen/fix-for-#1098
fix for #1098
2015-08-20 21:39:00 -07:00
Chase Hansen 610392777b fix 2015-08-21 00:30:55 -04:00
snipe e916fdcc89 Fixes #1092, setting LDAP_OPT_REFERRALS to 0 for Active Directory 2015-08-20 15:54:42 -07:00
snipe 70f7f65394 Fixed path for windows 2015-08-20 15:38:50 -07:00
Vincent Sposato 9904f664be More tweaks to the travis 2015-08-20 18:38:36 -04:00
snipe 8892feea62 Fixed typo 2015-08-20 15:38:35 -07:00
Vincent Sposato 41c257829e Another tweak - getting close 2015-08-20 18:36:39 -04:00
Vincent Sposato cf649fcd12 Updated travis yaml to add a permissions change for the storage directory 2015-08-20 18:21:47 -04:00
Vincent Sposato 4ac79f5e12 Added a sleep statement to make things work possibly 2015-08-20 17:46:59 -04:00
snipe c7b0ecfac8 Slack notification for requested assets 2015-08-19 17:51:35 -07:00
snipe 7b0fd2c8f4 Squashed commit of the following:
commit 3dbc9becbc7a5cfe94aae968e52e7c7ed902591b
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 19 17:28:25 2015 -0700

    bumped version

commit e66e2f1ba226274f4d4af4e0772b46762b400653
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 19 17:28:17 2015 -0700

    Added notes to license search
2015-08-19 17:29:42 -07:00
snipe a2bd4250cf Ignore LDAP config 2015-08-19 17:26:08 -07:00
snipe d47198086f Added notes search to licenses 2015-08-19 17:23:55 -07:00
snipe 89f7f50901 Merge pull request #1074 from mtucker6784/develop
Installer modified for 2.0 (develop currently)
2015-08-19 17:16:53 -07:00
snipe 2aac977d57 Merge pull request #1072 from madd15/bootstrap-table-experiment
Add base for Consumables with bootstrap tables
2015-08-19 17:16:31 -07:00
snipe 8339dd3db2 Fixes #1089 - checkout button on accessory view page 2015-08-19 17:13:14 -07:00
snipe e63d62d2c8 Fixes #1083 2015-08-19 12:33:16 -07:00
snipe 45c4624d5f Fixes #1081 2015-08-19 11:14:03 -07:00
snipe a27a98f4b3 Fixes #1081- include asset name on checkout 2015-08-19 11:13:51 -07:00
snipe 70a7a11324 Switched to user list 2015-08-19 10:54:50 -07:00
snipe e8f11919f7 Fixes #1077 - ordering of dropdown menus 2015-08-19 10:43:52 -07:00
snipe 1d976ff926 Fixes #1078 2015-08-19 10:23:01 -07:00
madd15 5aff3d9380 remove search explode 2015-08-18 16:17:46 +09:30
madd15 a1c6ea798a matching wording.....so damn picky :P 2015-08-18 16:15:41 +09:30
madd15 e0bf6ee390 Change to Bootstrap Table 2015-08-18 16:14:10 +09:30
madd15 93fe9a2799 Change to Bootstrap Table 2015-08-18 16:13:49 +09:30
madd15 611f59b507 Add name text search 2015-08-18 16:13:05 +09:30
madd15 899e543173 Switch to new method 2015-08-18 16:12:23 +09:30
snipe 132f17b0af Merge pull request #1071 from madd15/bootstrap-table-experiment
Add base for Accessories with bootstrap tables
2015-08-17 22:01:19 -07:00
madd15 5568f7fc5f Add name text search 2015-08-18 14:15:03 +09:30
madd15 d35f8e6244 Change to Bootstrap Table 2015-08-18 14:13:59 +09:30
madd15 6a2016685e Change to Bootstrap Table 2015-08-18 14:13:28 +09:30
madd15 567ad6c3bb Switch to new method 2015-08-18 14:11:03 +09:30
snipe 4a086cecfd Updated composer lock 2015-08-17 11:49:19 -07:00
snipe 890ef1eb1d Fixes #1038 - clickable links in dashboard 2015-08-17 11:24:10 -07:00
snipe 94e8b5f783 Fixed bug in expected checkin 2015-08-17 11:14:01 -07:00
snipe 21bb2f8b44 Updated language string for asset request 2015-08-17 11:11:09 -07:00
snipe aae7d4523f Don't need to float left there 2015-08-17 10:11:03 -07:00
snipe f7cc9036ea Added password generator to user creation 2015-08-17 10:06:37 -07:00
Vincent Sposato 26ede441a4 Last change for detecting correct environment 2015-08-15 20:39:31 -04:00
Vincent Sposato afac18ea1b Last tweak before I head to begin drinking heavily... 2015-08-15 20:36:18 -04:00
Vincent Sposato da187ff07a A tweak to make this work with an app environment variable 2015-08-15 20:33:47 -04:00
Vincent Sposato 9849bbec70 This is getting old... 2015-08-15 20:29:18 -04:00
Vincent Sposato 3aaed2600e One last tweak - this may be it 2015-08-15 20:26:42 -04:00
Vincent Sposato 8e316611c0 More tweaks / changes 2015-08-15 20:21:51 -04:00
Vincent Sposato 0a97135578 Adding more debug tweaks 2015-08-15 20:20:46 -04:00
Vincent Sposato 1bed711f0e Another tweak getting closer 2015-08-15 20:15:55 -04:00
Vincent Sposato 1f1c1cb546 Almost there... 2015-08-15 20:08:20 -04:00
Vincent Sposato f2e7af498e A change to my previous tweak for background serving 2015-08-15 20:05:47 -04:00
Vincent Sposato afdb958955 A couple more tweaks to make everything work 2015-08-15 20:03:41 -04:00
Vincent Sposato 06966d52bf Got some more tweaks, and changes to make things work 2015-08-15 20:00:48 -04:00
Vincent Sposato 723a6260f5 More tweaks for debugging 2015-08-15 19:40:30 -04:00
Vincent Sposato a98a0a2f77 More tweaking of the travis yaml file trying to get more out of the results 2015-08-15 19:37:43 -04:00
Vincent Sposato 59e755c5df Tweaking the configuration to work with travis - attempting hostname tweaks 2015-08-15 19:05:01 -04:00
Vincent Sposato 55b2fce876 One more stupid mistake in travis yaml file - 2015-08-15 19:01:03 -04:00
Vincent Sposato 1fadabaf2f Fixed stupid mistake in the travis yaml file 2015-08-15 18:59:22 -04:00
Vincent Sposato 33178adeed Fixed issue in travis yaml file 2015-08-15 18:57:10 -04:00
Vincent Sposato 46fb12f5dc Fixed acceptance suite yaml to make it work for travis-ci as well as local testing 2015-08-15 18:50:46 -04:00
Vincent Sposato 12e6a721f0 Initial changes to allow travis-ci to run codeception tests 2015-08-15 18:48:20 -04:00
Vincent Sposato 0cbc9d266e Adding setup for Codeception 2015-08-15 15:10:17 -04:00
snipe 7dd50eddfa Nicer error messages on validation fail for LDAP 2015-08-14 22:57:32 -07:00
snipe c1642e3fe9 Examples included in example config files, moved email and employee number out of required fields 2015-08-14 22:27:10 -07:00
snipe 2036402742 Added filter string to default config 2015-08-14 22:20:22 -07:00
snipe e9e62fbfaf Updated sample LDAP config to include LDAP version number 2015-08-14 22:10:34 -07:00
snipe e49cfb4bde Fixed validation on LDAP 2015-08-14 22:10:05 -07:00
snipe db8ea88207 Updated example configs with acrive flag text 2015-08-14 21:38:42 -07:00
snipe 729795364b Merge branch 'develop' of https://github.com/aalaily/snipe-it into aalaily-develop
# Conflicts:
#	app/controllers/admin/UsersController.php
2015-08-14 21:36:09 -07:00
snipe ee46b223c9 Added LDAP options 2015-08-14 21:33:48 -07:00
snipe e7d7cc6fc2 Added space after error intro 2015-08-14 21:33:39 -07:00
Aladin Alaily 23bde13665 Corrected a typo and remove some testing code 2015-08-15 00:29:38 -04:00
Aladin Alaily 3dfbd8a4f0 Added a check for the "active" LDAP flag. Since this field is optional, it's important to check whether or not it's set, otherwise, the functionality will be unusable. 2015-08-15 00:27:56 -04:00
snipe 80fb7a4c13 Fixed author's name :P 2015-08-14 21:22:49 -07:00
Aladin Alaily b8ef6dfba4 Wrote more information about an optional field 2015-08-15 00:16:29 -04:00
snipe a57a465147 Removed port number 2015-08-14 20:58:47 -07:00
snipe e14ebd0daa Improved error messages and error handling 2015-08-14 20:50:01 -07:00
snipe 676bedc9be LDAP UI language strings 2015-08-14 20:15:24 -07:00
snipe 6b85bbfe65 Ignore the ldap config file 2015-08-14 19:41:36 -07:00
snipe b629fd36a0 Pull out LDAP config file. Derp 2015-08-14 19:41:12 -07:00
snipe 260abfc2d7 Only show LDAP stuff if the LDAP config has been set up in the config 2015-08-14 19:40:17 -07:00
snipe eb7017d5cb Example LDAP configs 2015-08-14 19:25:59 -07:00
snipe 4e86b590d4 Removed typo example script 2015-08-14 19:25:49 -07:00
snipe 95af577353 Merge pull request #1059 from aalaily/develop
User import with LDAP and LDAP authentication hook
2015-08-14 19:12:14 -07:00
snipe c4ba69b4b6 Only assign the first seat to the user 2015-08-14 15:08:18 -07:00
snipe 67e0e14a12 License importer, small fixes for asset imporer 2015-08-14 14:18:51 -07:00
snipe 920708fb6c Merge branch 'features/license-import' 2015-08-14 14:09:22 -07:00
snipe 4b59a6cb5a License importer, small tweaks to asset importer 2015-08-14 14:08:34 -07:00
Aladin Alaily 229432af5e LDAP authentication hook 2015-08-14 14:30:38 -04:00
Aladin Alaily 43efe4e80b LDAP authentication hook 2015-08-14 14:29:32 -04:00
Aladin Alaily 286df911c0 LDAP authentication add query string 2015-08-14 14:29:14 -04:00
Aladin Alaily 54d95c510b Update the code to reflect a possible active flag in LDAP 2015-08-14 10:31:40 -04:00
Aladin Alaily 61a4b03aba Added the active flag. Some LDAP instances might have this flag set. 2015-08-14 10:31:22 -04:00
Aladin Alaily bebd569490 updated the sample config doc 2015-08-14 00:23:23 -04:00
Aladin Alaily 470b543910 Updated the view to match the controller 2015-08-14 00:17:50 -04:00
Aladin Alaily 07171498a9 Modified the code so that the LDAP field names can now be defined and fetched from the configuration file 2015-08-14 00:17:26 -04:00
Aladin Alaily 2dbeb1aeb5 Merge remote-tracking branch 'upstream/develop' into develop 2015-08-13 16:34:20 -04:00
snipe 4fcf70872f Fixes #1054 2015-08-13 13:24:38 -07:00
snipe ac7b5da711 Removed comments 2015-08-13 13:24:33 -07:00
Aladin Alaily 1fc83443db Check if the variables coming in from LDAP are set. 2015-08-13 15:48:03 -04:00
Aladin Alaily c17bbe9dfe Commented out the loop break. 2015-08-13 15:10:40 -04:00
Aladin Alaily 59617083c9 Fixed the break portion 2015-08-13 15:07:15 -04:00
Aladin Alaily d167f31af0 Fixed indents 2015-08-13 15:06:04 -04:00
Aladin Alaily 1343c09cd7 Made the user interface a little more neat. 2015-08-13 15:05:15 -04:00
Aladin Alaily 8e6621f332 Removed the ldap.php config file and added the example ldap config file. 2015-08-13 13:40:02 -04:00
Aladin Alaily 34b14f67c6 Fixed the formatting 2015-08-13 13:39:31 -04:00
Aladin Alaily 5574ea89bb Removed the references to the LOG class 2015-08-13 13:39:20 -04:00
Aladin Alaily d780f0f3cf Added some space between the Import and LDAP buttons 2015-08-13 13:32:19 -04:00
Aladin Alaily 03f5af29f2 Ignore netbeans config files 2015-08-13 13:29:20 -04:00
Aladin Alaily a531ea34bb Cleaned up the code 2015-08-13 13:27:24 -04:00
Aladin Alaily aa72b9c107 Added a button to the LDAP functionality 2015-08-13 13:27:05 -04:00
Aladin Alaily 176469294b Added routes to LDAP 2015-08-13 13:20:30 -04:00
Aladin Alaily afd94ff52a Added functions for LDAP 2015-08-13 13:20:13 -04:00
Aladin Alaily b2c2c1ee15 LDAP Sync 2015-08-13 13:14:11 -04:00
Aladin Alaily b004a7448b Merge remote-tracking branch 'upstream/develop' into develop 2015-08-13 12:26:10 -04:00
snipe c5e5930c1b Make sure lock passwords isn't true before emailing 2015-08-13 00:54:57 -07:00
snipe ed2d7310f8 Fixed unsuspend icon 2015-08-13 00:39:52 -07:00
snipe 547de2b9e3 Placeholder phpunit test 2015-08-13 00:26:26 -07:00
snipe 58abd15d93 Require_once (again) to try to handle local phpunit testing 2015-08-12 23:55:53 -07:00
snipe dd60976d51 Set errors to true 2015-08-12 23:52:44 -07:00
snipe 07b045007b Revert "Reverting to phpunit again"
This reverts commit 1159cdeab2.

# Conflicts:
#	.travis.yml
2015-08-12 23:39:16 -07:00
snipe 1f7e0a2893 Revert "More donking with testing"
This reverts commit 7f3ceea77b.

# Conflicts:
#	.travis.yml
2015-08-12 23:37:37 -07:00
snipe 1159cdeab2 Reverting to phpunit again 2015-08-12 23:32:38 -07:00
snipe 7f3ceea77b More donking with testing 2015-08-12 23:30:27 -07:00
snipe 1d89b78315 Nicer validation display 2015-08-12 22:34:44 -07:00
snipe 463469e7c7 Added validation for notes 2015-08-12 22:34:35 -07:00
snipe c839f0cbc8 Added ability to select status type 2015-08-12 22:33:56 -07:00
snipe a832346bfb Added statuslabel type helper 2015-08-12 22:33:31 -07:00
snipe 3d77666ad1 Nicer required field display 2015-08-12 21:55:23 -07:00
snipe 6ad7a9bb70 Replaced missing route from previous cleanup 2015-08-12 21:50:35 -07:00
snipe 7fa9e49880 Activate user created on modal create 2015-08-12 21:50:04 -07:00
snipe e2e070d5e1 Smaller min-height for tighter layout 2015-08-12 21:25:48 -07:00
snipe 9f4fca4238 Fixes #522 2015-08-12 21:25:36 -07:00
snipe b366dec983 Fix display for NULL entries created by previous model modal 2015-08-12 21:09:32 -07:00
snipe e91c1942f8 Save modelno in API 2015-08-12 20:58:44 -07:00
snipe 6f6b74b82c Add modelno to modal 2015-08-12 20:58:30 -07:00
snipe 315f02905a Pull all lists into helper functions for consistency 2015-08-12 20:58:18 -07:00
snipe 738e253375 Fixed Slack notifier 2015-08-12 18:37:48 -07:00
snipe 358cd1eaf9 More consistent formatting for maintenances 2015-08-12 18:24:38 -07:00
snipe e4284d20f3 Fixed error reporting 2015-08-12 18:19:59 -07:00
snipe f7874ec106 Refactored assets controller and model for cleaner code 2015-08-12 18:19:53 -07:00
Brady Wetherington 4b68efb80b use CustomModel; is stupid, and doesn't mean anything. 2015-08-12 15:52:25 -07:00
snipe ad802cfead Squashed commit of the following:
commit 7ec9bec089408d5ec5e195b851b94568bee44627
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:43:11 2015 -0700

    Additional notes

commit 6c9d4c1b782c65f496828b289296304cdd75e01a
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:36:28 2015 -0700

    Deleted unused unit test

commit 9b1f0a8096c156927adf6cc8dad1df253b79707b
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:36:21 2015 -0700

    Switching back to require from require_once

commit 15db5e126d219e23180481d4559a7fd5e5d7e0d2
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:32:26 2015 -0700

    Commenting out the unit test for user because it's throwing hasher errors. Need to come back to this.

    This test is used when you call straight phpunit.

commit bc224f48e326babb4cd12296217e7665286102e9
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:29:31 2015 -0700

    Fuckit. phpunit it is.

commit e42801e436e3108e4db6ce38bec91be1ad8643f5
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:26:24 2015 -0700

    This will probably just trigger that damned curl error again :(

commit 8ad56fe92d6d86d78d8690a7a43ca17ea1ea6134
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 14:18:27 2015 -0700

    Removed phpbrowser

commit b72fc14cf4675523e7db9827602a9e6fbb1f1cfb
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 13:40:10 2015 -0700

    I don't know why route filters aren't working in the laravel module

commit 3226c687ac6538fd838710b601ba20a97bb23cb4
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 13:31:35 2015 -0700

    Require once in start?

commit 1cea92c4414689be7b411826ed4ce4e2b1768e61
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 13:16:32 2015 -0700

    Trying require_once

commit c8b9a2853cbb8bd65685c51b93fabccb15069b1a
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 13:13:35 2015 -0700

    Poking and hoping

commit e906d4daba8eb12be8b615dfadcedc3ea19eb58f
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 13:10:50 2015 -0700

    I cannot imagine that this will help, but whatever

commit 279be63f5a0c90278f961fde7228edddd65db612
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:53:11 2015 -0700

    Removing the laravel module returns the curl host error

commit ce3a2fc074fd597ebd274ad42925bcaebcd25ea4
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:51:25 2015 -0700

    Pulling laravel just to see

commit bd27268539b377d03031485e4e2c133ab02b4a1f
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:50:02 2015 -0700

    Turn off email notifications

commit 73d6f5cc6a2a5721acf686ad6a434a06cddcea38
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:49:14 2015 -0700

    Reverting the revert

commit 51a2f8f40e1b0240af2778076b21beb518b8909d
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:47:07 2015 -0700

    Reverting

commit aa36aff57fe734b0accd71eefe9b2f6b50b1f169
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:45:16 2015 -0700

    sigh.

commit a7241c0cf6b050768379e9b36c53584c29e1268a
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:38:14 2015 -0700

    Trying gitter again

commit 22b3190e0a
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:31:16 2015 -0700

    Missing a fucking semicolon

commit 637e4f03f3
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:26:23 2015 -0700

    Trying to fix parsefloat error

commit 70e086fb3d
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:22:51 2015 -0700

    Removed gitter

commit 65e6b1ad43
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:12:38 2015 -0700

    Removed extra comments, added route filter back in

commit c18e8747df
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:07:58 2015 -0700

    Removing sudo from codecept

commit 2c9c2fb2d6
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:06:18 2015 -0700

    Comment out ping debugging

commit 6eb57e43dc
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 12:04:23 2015 -0700

    Don't require sudo

commit 0c13c9e7bc
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 11:58:16 2015 -0700

    Use the Laravel 4 options instead of bootstrap

commit 8a3c672a82
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 11:51:30 2015 -0700

    Remove -vvv and -d for codeception

commit bd1e3cbc2a
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 11:50:12 2015 -0700

    Add gitter integration

commit 4eae1eb447
Author: snipe <snipe@snipe.net>
Date:   Wed Aug 12 11:46:34 2015 -0700

    Try setting the hostname again and see if that fails

commit 01a6fbe19d
Merge: 8cdd44e f357e71
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 23:08:40 2015 -0700

    Merge branch 'travic-ci-misery' of github.com:snipe/snipe-it into travic-ci-misery

commit 8cdd44e650
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 23:08:34 2015 -0700

    Output dir

commit f357e71e20
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:54:32 2015 -0700

    blech

commit db2552ac2f
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:32:59 2015 -0700

    blech

commit 9a3d2c5130
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:29:52 2015 -0700

    wat

commit dd7864ac54
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:24:08 2015 -0700

    blech

commit 754aa2d0d8
Merge: 0ec8c87 d6d685c
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 22:19:14 2015 -0700

    Merge branch 'travic-ci-misery' of github.com:snipe/snipe-it into travic-ci-misery

commit 0ec8c87e8a
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 22:18:36 2015 -0700

    Slightly improved scenario description

commit d6d685c15e
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:15:32 2015 -0700

    blech

commit 58ac3b3fa4
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:10:00 2015 -0700

    blech

commit 89844a4017
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:05:13 2015 -0700

    blech

commit 4ccf1a513f
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 22:02:07 2015 -0700

    blech

commit 6ca0f6bdc4
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 21:59:45 2015 -0700

    blech

commit 1caa7fe28d
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 21:56:45 2015 -0700

    yuck

commit 24f7f3a892
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 21:52:53 2015 -0700

    try something else

commit f0c83ee253
Author: Brady Wetherington <uberbrady@gmail.com>
Date:   Tue Aug 11 21:47:51 2015 -0700

    trying to get phpinfo

commit 32336e7370
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 21:10:05 2015 -0700

    Verbose on coceception

commit ba29a13249
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 21:07:52 2015 -0700

    Remove codecoverage stuff just in case it's messing things up

commit 519ed11fc3
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 21:03:17 2015 -0700

    More poking and hoping

commit 9949d68341
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 20:55:24 2015 -0700

    Try forcing test env in codeception.yml

commit 4726639f85
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 20:49:23 2015 -0700

    Try switching back to the old instances

commit ce6e417a02
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 20:45:59 2015 -0700

    ...

commit c3767e25e4
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 20:42:32 2015 -0700

    Changed hostname for travis

commit d059511840
Author: snipe <snipe@snipe.net>
Date:   Tue Aug 11 20:40:05 2015 -0700

    Try to echo out the hostname so I can have some idea of WTF is happening
2015-08-12 14:45:43 -07:00
snipe 41838f1e89 Trying worker-linux-docker- because why the hell not 2015-08-11 20:26:44 -07:00
snipe 8624931a88 Comment out initial test for now 2015-08-11 20:23:16 -07:00
snipe 8840e57ae7 Trying 'testing-worker-linux*' as hostname since nothing else is working 2015-08-11 20:23:00 -07:00
snipe 16cb4f6d05 Removed AlisonMPB hostname 2015-08-11 19:54:14 -07:00
snipe aa304375a6 Set default key 2015-08-11 19:54:03 -07:00
snipe b22789aa59 Unbreaking the dashboard :( 2015-08-11 19:44:02 -07:00
snipe f93e140ce1 Updated changelog 2015-08-11 19:43:51 -07:00
snipe de238f1551 Set testing hostname 2015-08-11 19:00:08 -07:00
snipe 4247904f19 Resolving hostname problems 2015-08-11 18:52:42 -07:00
snipe 75852bdb8b Derp 2015-08-11 18:40:16 -07:00
snipe 5cc1e7d3fe Trying to set hostname back so tests won't fail 2015-08-11 18:37:37 -07:00
snipe a98f4883be Merge branch 'develop' of github.com:snipe/snipe-it into JoeFaux-AccessoryReport 2015-08-11 18:27:35 -07:00
snipe d5a709a836 Improved testing stuff 2015-08-11 18:27:28 -07:00
snipe 4243270e7d Merge pull request #1049 from JoeFaux/AccessoryReport
Accessory report
2015-08-11 17:31:37 -07:00
root b576fce1f7 Modified files for accessory report. 2015-08-11 16:35:18 -07:00
root d7313543ef Changes to support an accessory report. 2015-08-11 16:32:48 -07:00
snipe 2636474120 Improved Welcome test 2015-08-11 15:57:58 -07:00
snipe 0c3b55a8b5 Upgrade to newer travis infrasructure 2015-08-11 15:49:25 -07:00
snipe d7dd35a2f2 Removed generated test files accidentally commited 2015-08-11 15:30:43 -07:00
snipe 0c8e3809f2 Starter acceptance tests 2015-08-11 15:29:44 -07:00
snipe 4538bca29f Allow 0 qty consumable 2015-08-11 14:34:54 -07:00
snipe eeda4366a3 Removed cruft from debugging 2015-08-11 14:32:14 -07:00
snipe fc31a828bc Exclude Snipe-IT from search engines 2015-08-11 14:19:51 -07:00
snipe 88e10516a9 Updated footer links 2015-08-11 14:19:13 -07:00
snipe 481b905331 Fixes #1045 - allow 0 value for accessories 2015-08-11 14:01:13 -07:00
snipe 959df613ae Updated language strings 2015-08-11 13:39:09 -07:00
snipe c476eda868 Removed link on location until location view is fixed 2015-08-11 13:20:58 -07:00
snipe b3249dcf48 Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/controllers/admin/UsersController.php
#	app/models/Model.php
#	app/views/backend/hardware/edit.blade.php
#	app/views/backend/users/index.blade.php
#	composer.lock
2015-08-11 13:20:25 -07:00
snipe 242e6ff030 Updated composer lock 2015-08-11 12:40:13 -07:00
snipe f026f886ae Removed unique constraint on model no 2015-08-11 12:37:57 -07:00
snipe 936d7dab1b Fixes #1043 2015-08-11 12:36:03 -07:00
snipe ccc20cbf18 Merge pull request #1032 from madd15/patch-4
additional search and order functionality
2015-08-11 11:58:07 -07:00
snipe 38d774eb6a Merge pull request #1033 from vsposato/feature/865_fixIssuesFromSnipe
Feature/865 fix issues from snipe
2015-08-11 11:57:56 -07:00
Vincent Sposato d363a0deec Merge branch 'feature/865_fixIssuesFromSnipe' of github.com:vsposato/snipe-it into feature/865_fixIssuesFromSnipe 2015-08-07 18:52:58 -04:00
Vincent Sposato 3ebbd030e7 Fixed issue with Asset model 2015-08-07 18:52:19 -04:00
Brady Wetherington 7ae226635f First rough pass at asset acceptance report 2015-08-07 18:50:55 -04:00
Vincent Sposato afbe23c214 Attempting to make the unaccepted assets report use more Eloquent features rather than a raw query
Updated the migration to include the migration of existing data - still have issue with a fresh load, as seeded data isn't there until after the migrations occur
Removed the artisan command
2015-08-07 18:50:55 -04:00
Vincent Sposato 7f91f6e349 Completed the changes from uberbrady to make the report work correctly 2015-08-07 18:00:23 -04:00
Vincent Sposato 6db7001dd5 Merge pull request #1 from uberbrady/feature_865_plus_denorm
First rough pass at asset acceptance report
2015-08-07 17:39:47 -04:00
Aladin Alaily 9a763db2d9 Revert "added a simple change"
This reverts commit 99a591c970.
2015-08-06 23:49:02 -04:00
Aladin Alaily 99a591c970 added a simple change
added a simple change
2015-08-06 23:47:36 -04:00
madd15 fd9cf29459 Additional changes for search and order functions 2015-08-07 09:44:23 +09:30
madd15 b9e3dd10b4 Additional Search and Order 2015-08-07 09:42:49 +09:30
snipe 9540db424a Fixes #948 - validate on model name+modelno+manufacturer combination 2015-08-06 05:58:50 -07:00
snipe 84d81184fa Fixes #1009 - Add MAC address to search 2015-08-06 05:13:27 -07:00
snipe 3c0cc94652 Fixed route
TODO:

- add modal button
2015-08-06 04:53:23 -07:00
snipe 5dcc795aa2 Fixes #1024 - delete option added to user dropdown 2015-08-06 04:33:34 -07:00
snipe 85a64f9dfd Merge remote-tracking branch 'origin/develop' 2015-08-06 04:00:46 -07:00
snipe 106ed6a9a0 Added location to user listing 2015-08-06 03:59:23 -07:00
Brady Wetherington daff0dbccb First rough pass at asset acceptance report 2015-08-06 01:55:17 -07:00
snipe 56f490cef9 Merge pull request #1029 from madd15/patch-4
Fix #1022 - Missing Lang on viewing deleted user
2015-08-05 18:06:17 -07:00
Vincent Sposato 145cf1093c Attempting to make the unaccepted assets report use more Eloquent features rather than a raw query
Updated the migration to include the migration of existing data - still have issue with a fresh load, as seeded data isn't there until after the migrations occur
Removed the artisan command
2015-08-05 20:50:35 -04:00
madd15 336858e4ed Fix #1022 - Missing Lang on viewing deleted user 2015-08-06 09:33:53 +09:30
snipe e3c1a9f80c Merge branch '2.0' of github.com:snipe/snipe-it into 2.0 2015-08-05 13:57:29 -07:00
snipe 66991ea663 Fixes #1018 - allow name re-use if deleted 2015-08-05 13:57:04 -07:00
snipe e253d611b4 Merge pull request #1027 from balticer/fix-validation-ampersand-and-sharp-s
Modifying validator to support & and ß
2015-08-05 13:27:24 -07:00
Kai Korla 7e76d8858e Modifying validator to support & and ß 2015-08-05 18:13:47 +02:00
snipe dc265ba2a8 Fixed back button on user create 2015-08-04 20:48:54 -07:00
snipe eb00acddfd Trying to fix the broken migration 2015-08-04 14:55:10 -07:00
snipe 449ad4f86b Fixes #1014 - error if no assets are unaccepted 2015-08-04 13:22:13 -07:00
snipe 77bff707fa English is hard :( 2015-08-04 12:54:45 -07:00
snipe 183f8ae1bf Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/commands/ImportCommand.php
#	app/lang/en/admin/users/message.php
#	app/lang/en/general.php
2015-08-04 12:51:35 -07:00
snipe fda6d60225 Merge pull request #1011 from goetzk/route-not-to
Change to using route in error message
2015-08-04 12:46:31 -07:00
snipe 3c730c691b Fixes #1010 - better errors on large file uploads 2015-08-04 12:45:17 -07:00
Karl Goetz cf4f178485 Change to using route in error message
When I've broken things and wound up with a 500 error the link back to home
produces a 404 error. I believe its because it uses 'to' instead of 'route' but
I'm not familiar enough with php to be sure of my theory.
2015-08-04 10:40:40 +10:00
snipe b20fecc2de Make thread_id default null 2015-08-03 12:35:54 -07:00
snipe 03e294b6d0 Merge pull request #1006 from mtucker6784/patch-1
Create install.sh
2015-08-03 12:23:13 -07:00
Michael T 85ba7c3a15 Create install.sh
This script will

1. Ask for Snipe it version 1.2.8 or 2.0
2. Detect distro version (between CentOS and Debian/Ubuntu)
3. Install all software and dependencies, create vhosts.

This isn't the smartest script, and it needs a little love, and I'm on the fence about SMTP settings.  Would love feedback about the SMTP part, and the whole script in general.  I'll be glad to fine tune it some more,  I just need a point in the right direction. Hopefully if this is merged in 2.0, it won't cause a huge influx of tickets.  This is the first time I've contributed to a project like this, so I don't know the social norms; if having my name at the top isn't appropriate (or fit in with the scope of Snipe It), we can remove it. No big deal, just wanted to have my name somewhere, but it's not a make-it-or-break-it thing for me :o)
2015-08-02 20:59:04 -07:00
snipe 889fa6b74d Merge pull request #1001 from vsposato/feature/865_AssetsNotAcceptedReport
Feature/865 assets not accepted report
2015-08-02 11:06:42 -07:00
snipe e63a07800f Merge pull request #994 from madd15/patch-4
Fix logo url
2015-08-02 11:05:07 -07:00
Vincent Sposato 4082957c85 Added phpdocs to the model 2015-08-01 14:41:09 -04:00
Vincent Sposato 24edf81b27 Merge branch 'feature/865_AssetsNotAcceptedReport' of github.com:vsposato/snipe-it into feature/865_AssetsNotAcceptedReport 2015-08-01 12:29:29 -04:00
Vincent Sposato 03818adc14 Added the new report to the sidebar of reports 2015-08-01 12:23:41 -04:00
Vincent Sposato b195934a4a Finished building out the report, and refactoring to make the code more expressive
Need to finish writing the code to track threads
2015-08-01 12:20:49 -04:00
Vincent Sposato 82a80b9ac8 Added ThreadAssetLogs to the available artisan commands 2015-08-01 12:20:48 -04:00
Vincent Sposato 7c7edcd191 Created a threading command that will allow all of the asset logs to be threaded into groups 2015-08-01 12:20:48 -04:00
Vincent Sposato 794dc5998a Working on the Actionlog and ReportsController - still having issues getting data back the way I want 2015-08-01 12:20:48 -04:00
Vincent Sposato a2aa05fcf9 Fixed the migration for adding thread_id to correct the table name and make thread_id nullable 2015-08-01 12:20:47 -04:00
Vincent Sposato 8f68bdb318 Working through getting the dataset correctly from the asset logs so that we can generate a report 2015-08-01 12:17:13 -04:00
Vincent Sposato 239f438a98 Added a scope to the Category model to pull back only categories that required acceptance 2015-08-01 12:14:21 -04:00
Vincent Sposato 41127bf5dd Added scope to the Asset model to pull all assets that belonged to a list of models 2015-08-01 12:14:21 -04:00
Vincent Sposato 64bff852bd Added a scope to the Model model to allow for selecting only models that belong to a list of categories 2015-08-01 12:14:20 -04:00
Vincent Sposato d0a8dda14f Added ThreadAssetLogs to the available artisan commands 2015-07-31 20:25:36 -04:00
Vincent Sposato cc5bec07ea Created a threading command that will allow all of the asset logs to be threaded into groups 2015-07-31 20:24:34 -04:00
Vincent Sposato e560cc2ee2 Working on the Actionlog and ReportsController - still having issues getting data back the way I want 2015-07-31 19:29:44 -04:00
snipe 37d4a0105e Fix for strict mode 2015-07-31 11:15:17 -07:00
Vincent Sposato c74c89a171 Fixed the migration for adding thread_id to correct the table name and make thread_id nullable 2015-07-30 21:02:57 -04:00
snipe 3bb296db78 Fixed language string for notes (when the hell did THAT break?) 2015-07-30 15:10:59 -07:00
snipe 305c22f72d Added request to dashboard 2015-07-30 14:59:24 -07:00
snipe 9f81792e70 Request button strings 2015-07-30 14:52:55 -07:00
snipe 57e21193c9 Added language strings for not requestable 2015-07-30 14:50:06 -07:00
snipe ce9d728c2d Updated controller to make sure the asset exists and is requestable 2015-07-30 14:48:32 -07:00
snipe 6bc2128c3e Added requestable button 2015-07-30 14:48:19 -07:00
snipe 78835a8b1f Add requestable as bulk-edit option 2015-07-30 14:32:25 -07:00
madd15 5297d699b3 Fix logo url 2015-07-30 18:32:43 +09:30
snipe 75c073ee51 Merge pull request #992 from madd15/patch-4
MOAR SEARCH
2015-07-29 23:13:43 -07:00
madd15 0fcf33ed8c MOAR SEARCH 2015-07-30 15:22:58 +09:30
snipe 39da217a9e Fixed table nane for asset_logs in migration 2015-07-29 22:47:24 -07:00
snipe 0cf3ae95d4 Merge pull request #991 from madd15/patch-5
Fix user firstname/lastname search
2015-07-29 21:47:02 -07:00
madd15 78e0af383d Fix user firstname/lastname search 2015-07-30 14:08:03 +09:30
snipe 8bedaf7439 Merge pull request #990 from madd15/patch-4
Table search experiments
2015-07-29 21:18:52 -07:00
madd15 032d79593a quick fix $inout/$action issue 2015-07-30 13:47:43 +09:30
madd15 f152841e81 quick fix $inout/$action issue 2015-07-30 13:46:59 +09:30
madd15 e66ea4dcd1 Build out search and add Model order scope 2015-07-30 13:45:46 +09:30
madd15 c513007b36 Add sort to table, missing most columns still 2015-07-30 13:44:32 +09:30
snipe 948c443829 Fix for edit/clone 2015-07-29 20:50:23 -07:00
snipe 1a3bf10753 Merge pull request #989 from vsposato/feature/865_ThreadIdAddition
Feature/865 thread id addition
2015-07-29 16:22:19 -07:00
Vincent Sposato 7876ae462c Added the migration for the thread_id on the asset_logs table
Added the relationships for the self-referential links on thread_id
2015-07-29 19:16:57 -04:00
Vincent Sposato 8fbc77a844 Merge branch 'feature/865_AssetsNotAcceptedReport' of github.com:vsposato/snipe-it into feature/865_AssetsNotAcceptedReport 2015-07-29 19:13:12 -04:00
Vincent Sposato 87c493bf12 Added the migration for the thread_id on the asset_logs table
Added the relationships for the self-referential links on thread_id
2015-07-29 19:10:59 -04:00
Vincent Sposato 8c30c5d879 Fixed issue in routes file 2015-07-29 19:09:32 -04:00
Vincent Sposato d8df6a0982 Added a scope to the Category model to pull back only categories that required acceptance 2015-07-29 19:05:56 -04:00
Vincent Sposato d6382fb4a3 Added scope to the Asset model to pull all assets that belonged to a list of models 2015-07-29 19:05:56 -04:00
Vincent Sposato 9772039c4f Added a scope to the Model model to allow for selecting only models that belong to a list of categories 2015-07-29 19:05:56 -04:00
Vincent Sposato ad6cec080c Merge branch '2.0' of https://github.com/snipe/snipe-it into 2.0 2015-07-29 19:04:51 -04:00
snipe 028cde8738 Merge pull request #987 from mdaniels5757/2.0
Added Code128 Label Compatibility (to 2.0)
2015-07-29 12:06:14 -07:00
Michael Daniels 20f94ce418 Closing brackets are helpful 2015-07-29 14:27:03 -04:00
Michael Daniels cced7a93a5 Update AssetsController.php 2015-07-29 14:25:49 -04:00
Michael Daniels 6430f7a4a7 Update AssetsController.php 2015-07-29 14:24:30 -04:00
Michael Daniels 1fff9f6048 Update macros.php 2015-07-29 14:23:17 -04:00
Michael Daniels 85a9f1b71f Merge pull request #1 from snipe/2.0
2.0
2015-07-29 14:21:57 -04:00
mtucker6784 dfa0ddb49f Installer modified for 2.0 (develop currently) 2015-07-29 01:03:56 -07:00
snipe 43af451709 Merge pull request #971 from madd15/patch-3
Small EOL fix if no value returned
2015-07-28 20:59:42 -07:00
snipe 480fd78c51 Disllow delete if parent 2015-07-28 20:45:32 -07:00
snipe 0c9018289b Fixes #970 2015-07-28 20:24:58 -07:00
snipe 65bf156da1 Better spacing for modal for elements 2015-07-28 18:40:06 -07:00
snipe 9122b49ecc Merge pull request #984 from madd15/patch-2
Fix missing lists causing modal errors
2015-07-28 18:20:02 -07:00
madd15 35f97cceb7 Fix missing lists causing modal errors 2015-07-29 10:34:21 +09:30
snipe a8624a736d Merge pull request #983 from madd15/patch-1
Fix #972 - Change back button to work
2015-07-28 17:59:59 -07:00
madd15 c1ae844308 Fix #972 - Change back button to work 2015-07-29 10:13:18 +09:30
snipe 6c3d9048cf Merge pull request #982 from madd15/patch-4
Correct Asset Count
2015-07-28 16:57:17 -07:00
madd15 2507c1aa70 Correct Asset Count 2015-07-29 09:26:44 +09:30
snipe bb450e6bb6 Merge pull request #980 from snipe/inline_layout_fix
Fix to nicen up the layout for the inline-adding and Bootstrapify it.
2015-07-28 14:39:12 -07:00
Brady Wetherington 20eb2df9be Fix to nicen up the layout for the inline-adding and Bootstrapify it. 2015-07-28 14:25:47 -07:00
snipe 1e38ced885 Nicer display of "add new" inline functionality.
TODO:

Handle validation failures in a less fugly way
2015-07-28 11:58:45 -07:00
snipe fe2fb63007 Localization strings for inline modals 2015-07-28 11:31:08 -07:00
snipe b79841d481 Fix for @uberbrady's missing route on inline adding 2015-07-28 11:18:18 -07:00
madd15 679b9f6def Small EOL fix 2015-07-28 17:03:39 +09:30
snipe 87cd77b4df Merge remote-tracking branch 'origin/2.0' into bootstrap-table-experiment
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-07-27 23:41:22 -07:00
snipe e4ad1011da Merge pull request #969 from snipe/inline_adding
Inline adding of dependent drop-down contents on asset-creation
2015-07-27 23:39:07 -07:00
snipe d235ae19dc Merge pull request #968 from madd15/patch-3
Remove remnants of dataTables
2015-07-27 23:29:44 -07:00
Brady Wetherington de8180ec70 Abililty to inline-add things when you are creating a new asset 2015-07-27 23:27:45 -07:00
madd15 ed02d7daae Remove remnants of dataTables 2015-07-28 15:57:21 +09:30
snipe a28481cd8f Merge remote-tracking branch 'origin/develop' 2015-07-27 23:10:40 -07:00
snipe 5455abfd16 Fix for importer 2015-07-27 23:10:03 -07:00
snipe 4af635df28 NEVERMIND. 2015-07-27 22:59:36 -07:00
snipe a6d4b30df8 Make checkall work 2015-07-27 22:50:01 -07:00
snipe 4a51ff9ba5 Duh 2015-07-27 22:46:13 -07:00
snipe 22be076504 More experiments 2015-07-27 22:39:47 -07:00
madd15 b85e9bb97f Add bootstrap extensions and export libs 2015-07-28 13:59:34 +09:30
madd15 5eedd7810f Create bootstrap-table.js 2015-07-28 13:55:06 +09:30
madd15 1ba798a35d Add bootstrap-table.css 2015-07-28 13:53:29 +09:30
madd15 fc22c3884b Add bootstrap table js and css 2015-07-28 13:51:53 +09:30
madd15 0dc2a0ffac Change to bootstrap table compatable method 2015-07-28 13:50:48 +09:30
madd15 ae91f829e1 Change to bootstrap table compatable method 2015-07-28 13:50:10 +09:30
snipe 80145c699e One more because I have teh dumb and cannot brain today 2015-07-27 18:18:41 -07:00
snipe f99cafc101 Fix for 0000-00-00 purchase date 2015-07-27 17:16:28 -07:00
snipe 4014f5e15b Bug in purchase date 2015-07-27 17:11:46 -07:00
snipe 3460016c94 Another small readme tweak 2015-07-27 17:04:15 -07:00
snipe e49c33b56b Minor documentation updates 2015-07-27 17:02:55 -07:00
snipe fdb31ac19e Small tweaks to import script 2015-07-27 16:50:14 -07:00
snipe 9184dd5303 Fix for sad action column with button wrapping 2015-07-27 15:28:41 -07:00
snipe 26e081a2cb Fixes #909 again, because math is super hard 2015-07-27 15:26:53 -07:00
snipe 66a198a175 Merge pull request #966 from madd15/patch-2
Request #961 - Clone button on license list view
2015-07-27 15:07:52 -07:00
madd15 7aba5f3a84 Request #961 - Clone button on license list view 2015-07-28 07:33:51 +09:30
Vincent Sposato 78dcdb4dce Working through getting the dataset correctly from the asset logs so that we can generate a report 2015-07-27 16:31:53 -04:00
Vincent Sposato 3fdafe30c1 Added a scope to the Category model to pull back only categories that required acceptance 2015-07-27 15:48:36 -04:00
Vincent Sposato 39022c9766 Added scope to the Asset model to pull all assets that belonged to a list of models 2015-07-27 15:48:02 -04:00
Vincent Sposato e3a9145459 Added a scope to the Model model to allow for selecting only models that belong to a list of categories 2015-07-27 15:43:51 -04:00
snipe 8d48fddac4 Merge pull request #956 from madd15/patch-1
Fix missing ]
2015-07-27 10:27:53 -07:00
snipe 8b101b10ec Updated language files 2015-07-27 10:25:35 -07:00
snipe 8b5de894df Updated language files 2015-07-27 10:24:21 -07:00
snipe 5781a01311 Added English, Indonesian 2015-07-27 10:24:08 -07:00
snipe de1adf227b New language files 2015-07-27 10:18:40 -07:00
madd15 5e7bfe314a Fix missing ] 2015-07-27 21:20:19 +09:30
snipe 08ce08db62 Missing language strings for accept/decline 2015-07-26 23:01:31 -07:00
snipe 56504e07c9 More consistent language 2015-07-26 22:55:09 -07:00
snipe a901a648af Fixes #875 - allow user to decline asset and check asset back in if declined 2015-07-26 22:53:48 -07:00
snipe a099d16714 Only send email if an email address was given 2015-07-26 22:08:26 -07:00
snipe 464c83599b Nicer validation display on login screen 2015-07-26 22:01:45 -07:00
snipe c78355e39a Cleaned up login screen layout 2015-07-26 21:58:03 -07:00
snipe bc7c456f99 Added decline route 2015-07-26 21:22:28 -07:00
snipe 4f07818a2d Only activate "email users" checkbox if there is an email address given for the user 2015-07-26 21:22:09 -07:00
snipe 979212b2ed Sans serif in emails 2015-07-26 21:21:52 -07:00
snipe b32e3a3475 Shwo username instead of email 2015-07-26 21:21:42 -07:00
snipe 67e18cb110 Updates for switch to username 2015-07-26 19:56:03 -07:00
Brady Wetherington 28304556a9 First pass at this, the ugly way. Just to see wha it looks like. 2015-07-26 18:15:06 -07:00
snipe 6a5777816c Pulled extra route resources that weren't being used 2015-07-26 17:51:18 -07:00
snipe 2b2e6a8829 Additional localization strings 2015-07-25 00:20:17 -07:00
snipe 5701b4d38e Return accessories as well 2015-07-25 00:05:59 -07:00
snipe 23866bce26 Use redirect to route instead of back because POST 2015-07-24 23:08:33 -07:00
snipe ac5dd0dbf9 Remove unique constraint on email 2015-07-24 23:05:11 -07:00
snipe 0f0dab556d Fixes #807 - bad link for subfolders 2015-07-24 22:48:29 -07:00
snipe 6dea227c3e Fixes #851 - bulk user delete 2015-07-24 22:37:15 -07:00
snipe cf3619d766 Fixes #937 - bug in which type of asset 2015-07-24 18:09:11 -07:00
snipe 59b739c1c4 Fixes #902 - redirect to group listing page after group create 2015-07-24 17:43:33 -07:00
snipe 59963b88f5 Fixes #941 - looser restrictions on alpha_space custom validator 2015-07-24 17:29:47 -07:00
snipe 7d67b6a9ae Fixed forgotten password 2015-07-24 17:16:50 -07:00
snipe e944b2d1c3 Fixed blade path 2015-07-24 16:56:55 -07:00
snipe 442db4b5c8 Removed duplicate routes from previous merge 2015-07-24 16:56:44 -07:00
snipe 991a364a3d Updated form to use username 2015-07-24 16:56:31 -07:00
snipe eaf077f807 Fixes #946 - navbar custom color not working in FF 2015-07-24 16:29:54 -07:00
snipe fbb55c14d6 Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-07-24 15:56:10 -07:00
snipe e4bee3d372 Merge pull request #951 from madd15/fixes-1
Fix asset view duplicate file uploads and layout
2015-07-24 15:12:04 -07:00
snipe 42694f2e9f Merge pull request #950 from madd15/Feature-Checkin-Emails
Feature Checkin Emails #709
2015-07-24 15:11:22 -07:00
madd15 2835905398 Fix dup file uploads and layout 2015-07-24 12:24:10 +09:30
madd15 f9c7022bcc Add checkin_email() 2015-07-24 12:01:21 +09:30
madd15 60d05e1ae1 Add checkin_email() 2015-07-24 11:58:09 +09:30
madd15 b918ea88cc Add checkin email template 2015-07-24 10:29:44 +09:30
madd15 e8c8509ed3 Add checkin_email Lang 2015-07-24 10:25:52 +09:30
madd15 42e101291e Add Email on Checkin Field 2015-07-24 10:25:11 +09:30
madd15 00bcae7feb Add email to postCheckin 2015-07-24 10:24:14 +09:30
madd15 6d96d6cba4 Add email to postCheckin 2015-07-24 10:22:54 +09:30
madd15 e3f0815012 Add Checkin_email to Create and Edit 2015-07-24 10:21:51 +09:30
madd15 f154692dad Add Checkin_email to Catergories Table 2015-07-24 10:20:50 +09:30
Vincent Sposato b4e79592c4 Merge branch '2.0' of https://github.com/snipe/snipe-it into 2.0 2015-07-23 20:17:01 -04:00
snipe e779bf52d1 Merge pull request #949 from madd15/patch-1
Added on #944 - Additional Email Info
2015-07-23 17:03:43 -07:00
madd15 d62d6ebf05 Add extra fields for email 2015-07-24 09:28:17 +09:30
madd15 e4277b47e8 Add extra fields for email 2015-07-24 09:27:44 +09:30
madd15 fd9e8b712b Add flexibility if values not present 2015-07-24 09:26:34 +09:30
snipe 0de1d45492 Merge pull request #944 from madd15/Feature/Additional-Email-Info
WIP - Feature #709/#606 - Additional Email Info / Expected Checkin Date
2015-07-23 16:16:19 -07:00
snipe fdee3ee93e Merge pull request #933 from madd15/patch-4
#916 - Change Userlist identifier from email to username
2015-07-23 16:16:02 -07:00
snipe ef045c61ca Merge pull request #931 from madd15/patch-3
Fix #930 - Add reassignable to create
2015-07-23 16:15:53 -07:00
snipe 212800b074 Merge pull request #947 from madd15/patch-6
Fix edit model cat list showing deleted categories
2015-07-23 16:15:36 -07:00
madd15 6d1197a144 Fix edit model cat list showing deleted categories 2015-07-24 08:44:53 +09:30
snipe a5b2dbfaf0 Merge remote-tracking branch 'origin/develop' 2015-07-23 12:33:26 -07:00
snipe e455b2af6e Only update email if password locking isn't set to true 2015-07-23 12:30:44 -07:00
snipe d26c40b26e Fixed issue where email not saved on edit 2015-07-23 12:28:26 -07:00
madd15 8ba55b4bf2 Fix missing checkedout_at 2015-07-23 12:40:22 +09:30
madd15 4f1f21287c Add Expected Checkin Date 2015-07-23 12:37:45 +09:30
madd15 878a163d11 Create Expected Checkin Date Column 2015-07-23 11:55:35 +09:30
madd15 dea23bef45 Add Expected Checkin Date 2015-07-23 11:53:07 +09:30
madd15 d12d1f161f Add Expected Checkin Date 2015-07-23 11:52:04 +09:30
madd15 7afcd09651 Add Expected Checkin Date 2015-07-23 10:07:04 +09:30
madd15 4375d66d09 Add Expected Checkin Date 2015-07-23 10:05:16 +09:30
Vincent Sposato e2bb6cf6c6 Merge branch '2.0' of https://github.com/snipe/snipe-it into 2.0 2015-07-21 19:57:29 -04:00
Vincent Sposato 2e11a68c0d Merge branch 'feature/857_AssetRepairUpgradeTrackingFrom2.0' into 2.0 2015-07-21 19:57:16 -04:00
snipe 27fe904970 Merge pull request #936 from vsposato/feature/857_AssetRepairUpgradeTrackingFrom2.0
Feature/857 asset repair upgrade tracking from2.0
2015-07-20 22:45:59 -07:00
Vincent Sposato 130a041be0 Added Carbon to the uses statement for reports controller 2015-07-20 21:42:07 -04:00
Vincent Sposato a7a2f5f974 Minor change to reports controller to include the View facade 2015-07-20 21:41:29 -04:00
Vincent Sposato e47146faee Moved link for asset maintenances to the asset menu with the other items related to assets / hardware 2015-07-20 21:35:37 -04:00
Vincent Sposato d1d6fe26a6 Fixed all issues that were reported by @leobg
Also, renamed and fixed items of concern by @snipe
Renamed Improvements to Asset Maintenances
2015-07-20 21:34:19 -04:00
Vincent Sposato 3df0550b19 Built the report and the export for the Improvements report
Added the links on the navigation
2015-07-20 21:26:23 -04:00
Vincent Sposato 6eb296303f Working through attempts to get footer callback working 2015-07-20 21:17:04 -04:00
Vincent Sposato 5a2ca33d0f Minor changes to the index attempting to get footer callback to work 2015-07-20 21:16:54 -04:00
Vincent Sposato 215c21891b Updated start file to include my staging site 2015-07-20 21:16:25 -04:00
Vincent Sposato 4c37dcf5bb Finished off the edit and view pages 2015-07-20 21:16:15 -04:00
Vincent Sposato 2457003deb Fixed issue found with date being handled incorrectly
Updated multiple views to reflect this issue
2015-07-20 21:16:06 -04:00
Vincent Sposato 5ee4eb5871 Update the migration to fix an issue with the improvement_time so it would be an integer
Created the view for improvements
Updated messages in language pack for additional items needed
Updated the asset view and supplier view to fix an issue
2015-07-20 21:15:46 -04:00
Vincent Sposato c253000af1 Updated the ImprovementsController to support date formatting for start and completion date on the data table
Updated the supplier and hardware view views to include the date formatting for start and completion date
2015-07-20 21:15:33 -04:00
Vincent Sposato f0d9ba89df Created and built out the index and create functionality - still need to do the view and update 2015-07-20 21:15:17 -04:00
Vincent Sposato 05219e69c4 Created and updated the add / edit form for the Improvement 2015-07-20 21:15:08 -04:00
Vincent Sposato c3439b41b8 Updated the view for a hardware asset so that we could see the improvements on an asset 2015-07-20 21:14:51 -04:00
Vincent Sposato e479575825 Added all of the functionality for the Improvement to be linked to the Asset 2015-07-20 21:11:17 -04:00
Vincent Sposato 0282169703 Added all of the routing for the added improvement section 2015-07-20 21:10:59 -04:00
Vincent Sposato 0da0998e44 Made sure that all language files were there, even though they were blank 2015-07-20 21:04:46 -04:00
Vincent Sposato 60d3af7bb7 Added all of the language items needed 2015-07-20 21:03:51 -04:00
Vincent Sposato 8ddf035a9b Updated the left sidebar of the layout to include the new Improvements area 2015-07-20 21:03:36 -04:00
Vincent Sposato 0f5b8b5a90 Needed to fix nullable issues 2015-07-20 21:03:22 -04:00
Vincent Sposato 69a5c99396 Fixed the datetime fields to be date fields only 2015-07-20 21:03:12 -04:00
Vincent Sposato 3aa3d67675 Fixed the need to only be a date instead of a date time 2015-07-20 21:03:00 -04:00
Vincent Sposato cf46e322b9 Created the index page using datatables 2015-07-20 21:02:50 -04:00
Vincent Sposato 3a3c021a6a One last fix to the migration to add the supplier relationship 2015-07-20 21:02:41 -04:00
Vincent Sposato 4b3267649a Updated the Improvement and Supplier relationship 2015-07-20 21:02:31 -04:00
Vincent Sposato 1c4190bf22 Added the relation to the improvement to the model, so that we can reference these items 2015-07-20 21:02:21 -04:00
Vincent Sposato 3e2bd02ce5 Fixed issue with migration that left off the deleted_at field 2015-07-20 21:02:04 -04:00
Vincent Sposato 2f83f2aa52 Updated migration to reflect relation to the asset 2015-07-20 21:01:48 -04:00
Vincent Sposato 914b1cb628 Added the improvements table migration to create the improvements table 2015-07-20 21:01:33 -04:00
Vincent Sposato 6dae07be7d Updated start.php to reflect my local configuration 2015-07-20 21:00:45 -04:00
Brady Wetherington c683c1c57e Revert "Merge branch 'feature/857_AssetRepairUpgradeTracking' of https://github.com/vsposato/snipe-it into vsposato-feature/857_AssetRepairUpgradeTracking"
This reverts commit 41b711740a, reversing
changes made to 55309bfaef.

It also un-reverts reversions that were done inadvertently.
2015-07-20 17:12:28 -07:00
snipe 775a38880e Revert "Starter controller for bulk edit/delete"
This reverts commit 55309bfaef.
2015-07-20 16:35:16 -07:00
snipe 9d949a5b89 Merge branch '2.0' of github.com:snipe/snipe-it into 2.0 2015-07-20 16:34:55 -07:00
snipe 01c2968388 Revert "Fixes #863 - clickable order number in asset view"
This reverts commit 0c842fc772.
2015-07-20 16:34:14 -07:00
snipe 41b711740a Merge branch 'feature/857_AssetRepairUpgradeTracking' of https://github.com/vsposato/snipe-it into vsposato-feature/857_AssetRepairUpgradeTracking
# Conflicts:
#	app/controllers/admin/ReportsController.php
#	app/lang/en/general.php
#	app/routes.php
#	app/views/backend/hardware/view.blade.php
#	app/views/backend/layouts/default.blade.php
#	composer.lock
2015-07-20 16:12:35 -07:00
madd15 0d0589800a Add additional data for email fields 2015-07-20 14:35:07 +09:30
madd15 2f0f2c5002 Add additional Fields 2015-07-20 14:33:50 +09:30
madd15 abfb5bcd2e Change user list from email to username 2015-07-20 10:19:03 +09:30
madd15 5ff84d80b4 Change user list from email to username 2015-07-20 10:16:58 +09:30
madd15 e29ab6b0d6 Change user list from email to username 2015-07-20 10:16:26 +09:30
madd15 89df6fc6da Change user list from email to username 2015-07-20 10:15:28 +09:30
madd15 78a45d72d7 Add reassignable to create 2015-07-18 10:53:51 +09:30
snipe abb970fe39 Merge remote-tracking branch 'origin/develop' 2015-07-17 16:25:55 -07:00
snipe f8ecbed829 Added purchase date to importer 2015-07-17 16:25:20 -07:00
snipe 9ac093e0be Merge remote-tracking branch 'origin/develop' 2015-07-17 14:18:20 -07:00
snipe 38c9d8d6ca Added notes/order number to asset view 2015-07-17 14:18:08 -07:00
snipe 4557502b1d Added notes/order number to controller 2015-07-17 14:15:08 -07:00
snipe 55309bfaef Starter controller for bulk edit/delete 2015-07-17 14:13:27 -07:00
snipe 0c842fc772 Fixes #863 - clickable order number in asset view 2015-07-16 21:21:09 -07:00
snipe 5210d7621e Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	.gitignore
#	app/config/version.php
2015-07-16 20:34:01 -07:00
snipe b85d972488 Added mod rewrite to force SSL 2015-07-16 20:32:10 -07:00
snipe 919df7ed56 Part of #863 - adds order number to asset listing 2015-07-16 19:54:56 -07:00
snipe de62db5e18 Fixes #901 - added notes field to list view 2015-07-16 19:45:10 -07:00
snipe 24b0d83387 Fixes #912 - added clon button to list view 2015-07-16 19:33:39 -07:00
snipe dec3f290d0 Merge branch '2.0' of github.com:snipe/snipe-it into 2.0 2015-07-16 19:28:07 -07:00
snipe 190b4cd010 Ignore couscous dir 2015-07-16 19:27:48 -07:00
snipe 61e16a4668 Merge remote-tracking branch 'origin/develop' 2015-07-16 16:25:15 -07:00
snipe e447159d4a Added checks for missing fields, added email column, asset notes 2015-07-16 16:23:35 -07:00
snipe b191406a0c Ignore couscous 2015-07-16 14:58:22 -07:00
snipe d732b60a38 Merge pull request #921 from madd15/Unique-Identifier-User-Lists
#916 - Email as unique identifier in user lists
2015-07-15 18:00:52 -07:00
madd15 ba94a57e08 Adjust Manager and Location width 2015-07-16 10:26:53 +09:30
madd15 1fcd36e4ac Change user list to include email address 2015-07-16 10:25:13 +09:30
madd15 31362f3e07 Change user list to include email address 2015-07-16 10:23:54 +09:30
madd15 0fbccef759 Change user list to include email address 2015-07-16 10:23:28 +09:30
madd15 2659521dc9 Change user list to include email address 2015-07-16 10:22:57 +09:30
madd15 0f489b34b5 Change user list to include email address 2015-07-16 10:22:19 +09:30
snipe 0642b4b830 Merge pull request #920 from madd15/patch-3
Update for change to username on sign in
2015-07-15 17:34:59 -07:00
madd15 8b77be9da3 Update for change to username on sign in 2015-07-16 10:04:20 +09:30
snipe 56345b5743 Fixes #909 - expired licenses showing in email report 2015-07-13 20:59:02 -07:00
snipe f09ee24975 Merge pull request #908 from madd15/license-delete-modal
Add title and content to delete modal for License File Uploads
2015-07-13 09:22:51 -07:00
snipe aed7036595 Merge pull request #907 from madd15/user-fileuploads
Feature #746 - Add File Uploads to Users
2015-07-13 09:22:39 -07:00
snipe 9fbb9746bc Merge pull request #895 from madd15/patch-1
Add Checkout of first available license to license list view
2015-07-13 09:22:18 -07:00
snipe 0154f240f3 Fixes JavaScript for edited assets 2015-07-10 22:48:21 -07:00
snipe dacbdd9aa5 Delete book.json 2015-07-10 19:46:17 -07:00
Vincent Sposato a7abea692d Moved link for asset maintenances to the asset menu with the other items related to assets / hardware 2015-07-10 10:25:32 -04:00
madd15 f04b3f9b09 Change to LicenseSeat 2015-07-10 10:02:46 +09:30
madd15 2841eadc91 Add title and content to delete modal 2015-07-10 09:57:03 +09:30
madd15 616af831a7 Add title and content to delete modal 2015-07-10 09:54:14 +09:30
madd15 1e730078c1 Add file uploads to Users 2015-07-10 09:23:34 +09:30
snipe e1eb2da5f3 Create book.json 2015-07-09 13:32:26 -07:00
snipe 0132360e49 Added spinner to show activity during ajax
TO DO:

- Account for the default state when the page is loaded on edit (currently using onchange)

- If no status or model is selected, return false or something else so that it doesn't try to make the ajax call with no ID
2015-07-09 08:45:06 -07:00
snipe 1c2a409e6a Check that there is an assetstatus 2015-07-09 07:08:33 -07:00
snipe 15e1774a13 Centered checkboxes for select all 2015-07-09 03:57:20 -07:00
snipe 16b49c25e1 Bringing back the spinner on processing screen 2015-07-09 03:56:18 -07:00
snipe c61adc7041 Partial fix for #851 datatables. Because clear error reporting is apparently for suckers 2015-07-09 03:20:57 -07:00
snipe 6524ac3678 Beginning of #851 - no controller methods yet, but still troubleshooting stupid datatables errors.
[Error] TypeError: undefined is not an object (evaluating 'f.nTf=a[b].cell')
	jb (jquery.dataTables.min.js, line 24)
	ga (jquery.dataTables.min.js, line 45)
	(anonymous function) (jquery.dataTables.min.js, line 92)
	each (jquery-latest.js, line 383)
	each (jquery-latest.js, line 136)
	o (jquery.dataTables.min.js, line 82)
	(anonymous function) (users, line 371)
	fire (jquery-latest.js, line 3119)
	fireWith (jquery-latest.js, line 3231)
	ready (jquery-latest.js, line 3443)
	completed (jquery-latest.js, line 3474)
2015-07-09 03:09:18 -07:00
snipe c8842a85ee Bumped version 2015-07-09 01:24:43 -07:00
snipe 7255a8bb0c Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-07-09 01:24:34 -07:00
snipe f5d4eb5842 Merge pull request #897 from madd15/patch-2
Fix #896 - Only show Checkout/Checkin if deployable
2015-07-09 01:19:57 -07:00
snipe 7e5f32c9d8 Merge pull request #898 from madd15/Default-Layout-fix
Small UI fixes
2015-07-09 01:17:02 -07:00
snipe e1724cf25f Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	.gitignore
#	app/config/production/session.example.php
#	app/config/staging/session.example.php
#	app/config/version.php
#	app/models/User.php
2015-07-09 01:02:49 -07:00
snipe 9936cf4a43 Better production default for #903 2015-07-09 00:53:58 -07:00
snipe e9443a244c Small fix to config value 2015-07-09 00:52:05 -07:00
snipe f8be47dfbf Fixes #903 - adds config variable for multi_login, overrides Sentry method 2015-07-09 00:41:46 -07:00
snipe 2d10931d6c Use league/csv for export 2015-07-08 23:42:17 -07:00
snipe 4a5066054b Display bugfixes for #819 2015-07-08 22:38:35 -07:00
snipe 84ffc1a728 Migration for location-specific currency, updated views for #819
This isn't done yet though. All kinds of busted stuff.
2015-07-08 20:35:40 -07:00
snipe 74429d9075 Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/lang/en/general.php
#	app/start/artisan.php
#	app/views/backend/hardware/edit.blade.php
#	app/views/backend/layouts/default.blade.php
2015-07-08 18:07:53 -07:00
snipe c2d63915c3 Fixed insecure font call 2015-07-08 17:48:59 -07:00
snipe fd59ca0802 Fixed spacing 2015-07-08 17:33:51 -07:00
snipe de23ec5785 Fixes #544 - disable checking an asset out to a user if it is not a deployable status 2015-07-08 17:18:46 -07:00
snipe 05f0b94bf6 Fixed language string 2015-07-08 13:05:17 -07:00
snipe f54c86db87 Command line asset importer 2015-07-08 13:05:05 -07:00
madd15 e714def74a Fix Reports showing class="active" 2015-07-08 11:46:11 +09:30
madd15 a9e169261c Add 5px margin to left of search box 2015-07-08 11:41:14 +09:30
madd15 665ffa6571 Update Hardware Submenu
Correctly identify the status from the url
2015-07-08 11:37:20 +09:30
madd15 a22687abc5 Fix #896 - Only show Checkout/Checkin if deployable 2015-07-07 14:38:28 +09:30
Brady Wetherington 2645acd827 First stab at custom fields - model side only, to start 2015-07-06 20:09:47 -07:00
madd15 8335f10f8c Add Checkout Button 2015-07-07 12:38:53 +09:30
madd15 518680f23c Add freecheckout for getting first available seat 2015-07-07 12:33:53 +09:30
madd15 38c36699a7 Add freeSeat function 2015-07-07 12:32:33 +09:30
madd15 f363e742e6 Add getFreeLicense
Picks free seat for license and redirects to checkout specific seat
2015-07-07 12:30:55 +09:30
snipe 1edce0a4fa Merge branch '2.0' of github.com:snipe/snipe-it into 2.0 2015-07-06 19:29:22 -07:00
snipe 7da7907fbd Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-07-06 19:29:06 -07:00
snipe 32a0f6eb92 Merge pull request #892 from madd15/patch-4
Fix Model Validation for create and edit
2015-07-06 18:07:30 -07:00
madd15 1301119c9a Remove unique from modelno validation rule 2015-07-07 09:50:43 +09:30
madd15 c7f2dc83db Remove $new and replace with Input::all() 2015-07-07 09:50:00 +09:30
snipe 82892a38b8 Merge pull request #891 from madd15/patch-3
Fix #873 - Remove serial, assigned_to & macaddress when cloning asset
2015-07-06 16:50:58 -07:00
madd15 3664e75c47 Change validation to work correctly 2015-07-07 08:51:38 +09:30
madd15 61836f20c5 Clear Mac Address on Clone 2015-07-07 08:23:51 +09:30
madd15 62d382d704 Remove serial and assigned_to when cloning asset 2015-07-07 08:19:58 +09:30
snipe 3746bc333b Better checking for model name and category name 2015-07-06 14:12:49 -07:00
snipe ccde517c88 Use showAssetName to get asset name 2015-07-06 14:10:24 -07:00
snipe f855bfd4ef Better error checking for eol data 2015-07-06 14:09:48 -07:00
snipe 674348b5a5 Smaller text requirement for address2 2015-07-06 14:06:31 -07:00
Vincent Sposato 1b423f5b54 Fixed all issues that were reported by @leobg
Also, renamed and fixed items of concern by @snipe
Renamed Improvements to Asset Maintenances
2015-07-06 10:36:54 -04:00
snipe 7d5810b656 Merge remote-tracking branch 'origin/develop' into 2.0
# Conflicts:
#	app/config/version.php
#	app/controllers/admin/AssetsController.php
2015-07-02 17:23:06 -07:00
snipe 1601bdd4eb Added rtd_location_id back into selected columns 2015-07-02 16:52:08 -07:00
snipe 552bdfdc2d Switched defaultLoc to belongsTo relationship 2015-07-02 16:51:52 -07:00
snipe d4af197b0e Merge pull request #886 from madd15/Fix---Edit-user
Fix - Edit User
2015-07-01 19:51:33 -07:00
snipe be685467eb Merge pull request #883 from madd15/patch-2
Update Category Types Array to include Consumable
2015-07-01 19:50:36 -07:00
madd15 7a0b3a7350 Allow saving of Username and Email changes
I noted that i was unable to change the username or email fields, but also that the username validation would not allow the form to save as it was checking against itself for being unique.
2015-07-02 12:16:01 +09:30
madd15 55f544829d Update Category Types Array to include Consumable 2015-07-01 17:28:58 +09:30
snipe bb7ce83c48 Merge remote-tracking branch 'origin/develop' into 2.0 2015-06-30 22:42:00 -07:00
snipe 1d4cfcfd58 Only save uploaded logo if not in demo mode 2015-06-30 22:38:40 -07:00
snipe 6915987239 Added demo language string 2015-06-30 22:38:19 -07:00
snipe 3a44a7e8bb Disable logo upload for demo 2015-06-30 22:38:12 -07:00
snipe f2abbd0e8f Deny editing users on demo 2015-06-30 22:10:23 -07:00
snipe 62f8d002e3 Temp commented out some stuff 2015-06-30 22:05:21 -07:00
snipe 0766ae2d17 Disallow group edit for demo 2015-06-30 22:04:48 -07:00
snipe 95920be8ea Fixed weird commenting 2015-06-30 22:04:05 -07:00
snipe 588ff742fe Add manufacturer to models listing for clarity 2015-06-30 19:15:43 -07:00
snipe a8cb5c1e7d Beginning QR mobile interface 2015-06-30 19:07:44 -07:00
Vincent Sposato 269f73205a Built the report and the export for the Improvements report
Added the links on the navigation
2015-06-28 15:00:55 -04:00
Vincent Sposato 8147e64c48 Working through attempts to get footer callback working 2015-06-28 14:02:53 -04:00
Vincent Sposato d321dcf20b Minor changes to the index attempting to get footer callback to work 2015-06-28 14:02:09 -04:00
Vincent Sposato 59e72cd1c2 Updated start file to include my staging site 2015-06-28 07:40:42 -04:00
Vincent Sposato d67fe22b8d Finished off the edit and view pages 2015-06-27 19:47:05 -04:00
Vincent Sposato b2847811ef Fixed issue found with date being handled incorrectly
Updated multiple views to reflect this issue
2015-06-27 17:42:15 -04:00
Vincent Sposato b7f050aa3b Update the migration to fix an issue with the improvement_time so it would be an integer
Created the view for improvements
Updated messages in language pack for additional items needed
Updated the asset view and supplier view to fix an issue
2015-06-27 17:15:23 -04:00
Vincent Sposato cc67569425 Updated the ImprovementsController to support date formatting for start and completion date on the data table
Updated the supplier and hardware view views to include the date formatting for start and completion date
2015-06-27 15:55:56 -04:00
Vincent Sposato 7657d8680e Created and built out the index and create functionality - still need to do the view and update 2015-06-27 14:39:59 -04:00
Vincent Sposato 26927907cf Created and updated the add / edit form for the Improvement 2015-06-27 14:38:45 -04:00
Vincent Sposato e406dd02ed Updated the view for a hardware asset so that we could see the improvements on an asset 2015-06-27 14:38:12 -04:00
Vincent Sposato c90ea92a4e Added all of the functionality for the Improvement to be linked to the Asset 2015-06-27 14:37:40 -04:00
Vincent Sposato c28feb56a8 Added all of the routing for the added improvement section 2015-06-27 14:37:11 -04:00
Vincent Sposato 78f1c0f11f Made sure that all language files were there, even though they were blank 2015-06-27 14:36:07 -04:00
Vincent Sposato 95f8e9fbe8 Added all of the language items needed 2015-06-27 14:35:37 -04:00
Vincent Sposato 1befbfee6f Updated the left sidebar of the layout to include the new Improvements area 2015-06-27 13:51:39 -04:00
Vincent Sposato 9316b2bed0 Needed to fix nullable issues 2015-06-27 13:42:42 -04:00
Vincent Sposato 58ce44c935 Fixed the datetime fields to be date fields only 2015-06-27 13:16:25 -04:00
Vincent Sposato c59c5e35f8 Fixed the need to only be a date instead of a date time 2015-06-27 13:15:08 -04:00
Vincent Sposato 90da6ba364 Created the index page using datatables 2015-06-27 12:47:43 -04:00
Vincent Sposato 0f190e094d One last fix to the migration to add the supplier relationship 2015-06-27 12:41:40 -04:00
Vincent Sposato 0c63dac5e7 Updated the Improvement and Supplier relationship 2015-06-27 12:41:16 -04:00
Vincent Sposato 3a86c53b49 Added the relation to the improvement to the model, so that we can reference these items 2015-06-27 12:27:15 -04:00
Vincent Sposato a5292d4b71 Fixed issue with migration that left off the deleted_at field 2015-06-27 12:26:40 -04:00
Vincent Sposato cd7a7fa3d2 Updated migration to reflect relation to the asset 2015-06-27 11:02:41 -04:00
Vincent Sposato 255a492db6 Added the improvements table migration to create the improvements table 2015-06-27 10:51:22 -04:00
Vincent Sposato 6cff270d3d Updated start.php to reflect my local configuration
Also updated composer packages to latest versions
2015-06-26 17:13:03 -04:00
snipe 1fb2878772 Updated activity report for consumables 2015-06-25 18:47:03 -07:00
snipe 84e130d6aa Fixes #869 - compatibility mode for IE 2015-06-25 16:22:07 -07:00
snipe edfa064fd4 Disable emailing imported users if demo mode 2015-06-23 18:38:21 -07:00
snipe 3caded990a Added parent string 2015-06-23 18:32:06 -07:00
snipe 3bca2566d7 Added missing create/update consumable string 2015-06-23 16:35:38 -07:00
snipe 1aa4841868 Remove extra debugging 2015-06-23 16:30:29 -07:00
snipe fc1e8a4e4e Minor comment tweak 2015-06-23 15:05:21 -07:00
snipe bf3cb73070 Include location ID on user import 2015-06-23 15:05:11 -07:00
snipe d77e763f86 Change badge to label 2015-06-23 15:04:35 -07:00
snipe 8ef3d00f22 Fixed language string for users 2015-06-23 14:10:15 -07:00
snipe 5266c22890 Show consumable checkout date 2015-06-23 14:10:04 -07:00
snipe 26540b1aac Updated bad data string 2015-06-23 14:02:01 -07:00
snipe 39a3b93537 Pagination on user history 2015-06-23 14:01:48 -07:00
snipe ba13101f64 Bad data language string 2015-06-23 13:48:56 -07:00
snipe ce55b7ab2f Tightened up history snapshot on dashboard 2015-06-23 13:46:06 -07:00
snipe 28a9f90a72 Lazy eager load history for optimized queries 2015-06-23 13:44:49 -07:00
snipe f2a2ccdab4 Nicer display for profile 2015-06-23 12:59:55 -07:00
snipe f2e1ec0928 Fixed QR simple view route 2015-06-23 12:59:33 -07:00
snipe 17ca66f4a2 Added update string 2015-06-23 12:59:19 -07:00
snipe a43f075ff0 Wider profile box view 2015-06-23 12:46:08 -07:00
snipe c87d4ad801 Eager load dashboard queries 2015-06-23 11:52:18 -07:00
snipe d94cc1f17d Add consumables log 2015-06-23 11:52:07 -07:00
snipe f30285eaea Added text string for consumable name 2015-06-23 11:39:28 -07:00
snipe 20d35953f1 Remove consumable category 2015-06-23 11:39:17 -07:00
snipe 537630bae4 Removed unneeded stylesheet 2015-06-23 11:33:31 -07:00
snipe 85d6b062f3 Fixed checkbox alignment 2015-06-23 11:32:32 -07:00
snipe 74a9a176e9 New language strings 2015-06-23 10:25:44 -07:00
snipe 94f8c61720 Fixes #280, #64 and #860 - added license expiration alert 2015-06-23 01:52:06 -07:00
snipe 75b9b70a86 Fix email field so it's nullable, fix app command to add user 2015-06-23 00:11:54 -07:00
snipe 2e585f9cd2 Fixes #839 - bad seed data 2015-06-23 00:11:06 -07:00
snipe edddf6ae80 Fixes #833 - remove status label field if asset is checked out 2015-06-22 20:01:02 -07:00
snipe ea0f2c5f34 Fixes #833 - remove status label field if asset is checked out 2015-06-22 20:00:28 -07:00
snipe 826d3ccae8 Eager loading user info 2015-06-22 17:57:55 -07:00
snipe fd7d4eb3f2 Removed checkin for consumables 2015-06-22 17:57:44 -07:00
snipe e8e0c7bfe4 Missing filetype info string 2015-06-22 17:57:21 -07:00
snipe ccdda7b8e8 Missing reassignable string 2015-06-22 17:57:09 -07:00
snipe 9abafba180 Updates to consumables view 2015-06-22 17:56:58 -07:00
snipe 2ed47a6089 Removed old file 2015-06-22 17:56:42 -07:00
snipe 818d1769b8 Automated backup to dump SQL and zip uploaded files
Usage:

`php artisan snipeit:backup`

This can be set on a cron or scheduled task
2015-06-22 15:52:26 -07:00
snipe bf6674f6a0 Added table prefix for raw queries 2015-06-19 18:03:28 -07:00
snipe ee08586279 Trying to regain compatibility with PHP 5.4 2015-06-19 17:59:10 -07:00
snipe ef75880398 Added backups to topnav 2015-06-19 17:58:53 -07:00
snipe 221ae62ea5 Example configs 2015-06-19 17:38:06 -07:00
snipe 40c59e664b Backup language string 2015-06-19 17:37:58 -07:00
snipe 61e3381b24 Backup routes 2015-06-19 17:37:49 -07:00
snipe 3dfa1e1ea7 Backups blade 2015-06-19 17:37:40 -07:00
snipe c0fab2f425 Updated deps to still allow for 5.4 (I hope?) 2015-06-19 17:37:32 -07:00
snipe ffdd437e47 Ignore SQL dumps 2015-06-19 17:31:51 -07:00
snipe 76825441b9 Added session config to allow for forced SSL 2015-06-19 14:46:16 -07:00
snipe 8e83206556 Added dumps directory 2015-06-19 14:40:23 -07:00
snipe 2aa357f315 Added fideveloper proxy and DB backup 2015-06-19 14:28:40 -07:00
snipe df59e7f699 New strings 2015-06-19 11:44:19 -07:00
snipe 5084836737 Merge pull request #861 from strand/patch-1
Update Code of Conduct to Contributor Covenant 1.1.0
2015-06-19 09:16:08 -07:00
Strand McCutchen 063e3bbea6 Update Code of Conduct to Contributor Covenant 1.1.0 2015-06-19 10:15:05 -06:00
snipe d0216d76f8 Updated to generic strings 2015-06-18 15:00:41 -07:00
snipe ec10526d69 Center envelope in user listing 2015-06-18 15:00:32 -07:00
snipe 49b746a811 QTY strings 2015-06-18 15:00:23 -07:00
snipe 1013580236 Fixed typo 2015-06-18 15:00:16 -07:00
snipe 98d9a2e6f9 Bold current page number 2015-06-18 14:36:32 -07:00
snipe e4217af1ec Minified 2015-06-18 14:36:23 -07:00
snipe 3d4607ebd3 Fixes #858 - find admin group by name instead of ID for consideration of clustered DBs 2015-06-17 17:16:05 -07:00
snipe 2be1d64de3 Merge remote-tracking branch 'origin/develop' into 1.3.0 2015-06-16 12:56:14 -07:00
snipe c3c4e9def2 Fixes #852 - localized string for file types, added zip and rar for asset upload 2015-06-16 12:54:53 -07:00
snipe 16ec68e0b6 Hide email icon if no email address is provided 2015-06-16 01:45:34 -07:00
snipe 3ce9500d75 Moved password up with other required fields 2015-06-16 00:20:43 -07:00
snipe c699452473 Bumped version 2015-06-15 18:39:42 -07:00
snipe d943408f44 Location and email not required, username required 2015-06-15 18:39:34 -07:00
snipe a7aee2fe1c Location no longer required for users 2015-06-15 18:39:02 -07:00
snipe 32f3740eda Update email for #165 to reflect username 2015-06-15 18:38:52 -07:00
snipe f42540fedf More fixes for #165 - added username field 2015-06-15 12:40:27 -07:00
snipe f25b90ee27 Set https as default app url 2015-06-15 12:39:43 -07:00
snipe fdef266089 Addresses #577 and fixes #165 - switch from email to username 2015-06-15 12:16:39 -07:00
snipe c4375f9fbc Merge remote-tracking branch 'origin/develop' into 1.3.0
# Conflicts:
#	app/controllers/admin/UsersController.php
2015-06-15 11:30:40 -07:00
snipe 7820efc121 Fixes #822 and #847 - added notes field on import for MySQL strict mode 2015-06-15 11:20:09 -07:00
snipe d0189fb076 Added consumables to user matrix for #782 2015-06-09 20:05:24 -07:00
snipe e4517a8782 Removed checkin for #782, since that doesn't exist in consumables 2015-06-09 19:58:22 -07:00
snipe 19604480bb Consumables section
TODO:

- Add checkout to location
- Drop Checkin (doesn't really exist in this context)
- Add missing strings - consolidate where possible. Lots of dupes :-/
2015-06-09 19:50:34 -07:00
snipe 704d66b6f3 Raw DB migration for nullable user notes 2015-06-09 17:45:11 -07:00
snipe 6315c343a7 Add consumables table 2015-06-09 17:44:59 -07:00
snipe 766b4b901f Fixes #822 - make user notes field nullable default null 2015-06-09 17:34:52 -07:00
snipe f671c89b14 Composer update for bin path 2015-06-09 17:31:28 -07:00
snipe 03bd1498e8 Added codeception 2015-06-09 16:52:08 -07:00
snipe f743bacd0f Updated language strings 2015-06-09 16:14:37 -07:00
snipe 309158352e Added Korean translation 2015-06-09 16:14:28 -07:00
snipe 2540ac09ec Fixes #822 2015-06-09 16:02:10 -07:00
snipe 5a6fe6ccf8 Fixes #806 2015-06-09 02:20:00 -07:00
snipe af2decea9d Merge remote-tracking branch 'origin/master' into 1.3.0
# Conflicts:
#	app/controllers/admin/AssetsController.php
2015-06-09 02:10:29 -07:00
snipe c69038d3ae Fixes #836 2015-06-09 02:00:55 -07:00
snipe 9ea8316d74 Merge remote-tracking branch 'origin/develop' into 1.3.0
# Conflicts:
#	app/config/version.php
2015-06-01 17:52:39 -07:00
snipe 5939e46eee Bumped version for fixed 1.2.7 2015-06-01 17:52:03 -07:00
snipe a8a0a59982 Fixes #825 - title bar spacing issue 2015-06-01 17:51:20 -07:00
snipe 73a08c031c Fixes #818, and randomizes password for dummy user 2015-05-27 11:45:44 -07:00
snipe 123caf42c2 Merge remote-tracking branch 'origin/develop' into 1.3.0
# Conflicts:
#	app/views/backend/hardware/labels.blade.php
#	app/views/backend/layouts/default.blade.php
2015-05-27 11:17:14 -07:00
snipe 5997dd9387 Missing string for action 2015-05-27 11:13:42 -07:00
snipe 9cf03e2e60 Better escaping on activity report page 2015-05-27 10:16:06 -07:00
snipe c77e7bf725 Merge pull request #816 from tomcastleman/develop
Reassignable should default to true on create form
2015-05-24 10:49:41 -07:00
Tom Castleman 7a4299c724 Reassignable should default to true on create form 2015-05-24 13:35:28 +01:00
snipe b9b0239837 Merge pull request #813 from tomcastleman/develop-1
Update develop following PR #809
2015-05-22 11:51:50 -07:00
snipe a43ae71afd Merge pull request #812 from tomcastleman/develop
Reassignable License Setting
2015-05-22 11:50:44 -07:00
Tom Castleman c4339a5d94 Merge branch 'master' into develop
* master:
  Removed debugbar:publish
2015-05-22 14:37:01 +01:00
Tom Castleman b161a38e9b Add licenses.reassignable migration
Implement licenses.reassignable

View edit for licenses.reassignable

Add licenses.reassignable to LicensesController

Disable Check In when !license->reassignable

Validate license check-in post
2015-05-22 14:11:36 +01:00
snipe 735268034d Merge pull request #809 from tomcastleman/patch-1
Removed debugbar:publish
2015-05-21 18:56:49 -07:00
snipe aad473486f Merge pull request #798 from DanielNemanic/patch-8
Generating Asset Name to Label Print
2015-05-21 18:56:36 -07:00
Tom Castleman 08970f2b7b Removed debugbar:publish
As per:
```
NOTICE: Since laravel-debugbar 1.7.x, publishing assets is no longer necessary. The assets in public/packages/barryvdh/laravel-debugbar and maximebf/php-debugbar can be safely removed.
```
2015-05-21 16:59:20 +01:00
snipe 212f09dd31 Fixes #806 2015-05-19 19:39:05 -07:00
snipe 8334e7b863 Removed extra open sans call 2015-05-19 19:37:34 -07:00
snipe a80d67c1ff Escaping on labels 2015-05-19 19:37:22 -07:00
snipe 7c95f4231e Fixes #799 - missing text in file delete confirmation 2015-05-14 20:52:19 -07:00
Daniel Nemanic 6e8ad5b085 Generating Asset Name to Label Print
Added the Asset Name to the Label printing page.
2015-05-13 10:51:06 +02:00
snipe 145d386ce2 Updated lock file 2015-05-12 15:13:18 -07:00
snipe 496a768013 Fixes #795 - add model name if no asset name 2015-05-11 19:23:11 -07:00
snipe 7415a5898f Twiddling column widths 2015-05-08 11:39:51 -07:00
snipe f1486bfee3 Nicer locations listing layout 2015-05-07 19:20:05 -07:00
snipe bc8521043b Bumped version 2015-05-07 18:21:48 -07:00
snipe 3597d71230 Eager load assigned asset locations 2015-05-07 18:21:39 -07:00
snipe d92e2eaebc Method for assigned asset locations 2015-05-07 18:21:27 -07:00
snipe 8cdea8a384 Fix for location totals 2015-05-07 18:21:10 -07:00
snipe 4457c7aec0 Removed extra commented stuff 2015-05-07 18:20:58 -07:00
snipe 95279f885b Fixes #759 - populate form with parent location info 2015-05-07 01:51:46 -07:00
snipe 94bfab762b Merge pull request #791 from DanielNemanic/patch-7
Updating Dashboard Link URL
2015-05-07 00:39:53 -07:00
Daniel Nemanic 20d8ad29e5 Updating Dashboard Link URL
Updating link to real application URL.
2015-05-07 09:38:16 +02:00
snipe 75644eb894 Dashboard points to app url 2015-05-07 00:30:20 -07:00
snipe 2d7a348ab7 Fixed multi-level array nesting for locations 2015-05-07 00:15:44 -07:00
snipe 139dd13392 Super janky miulti-level menu on create - TODO: Fix this ish. 2015-05-04 18:13:26 -07:00
snipe 2f52369d07 Fixed location string 2015-05-04 15:13:04 -07:00
snipe aab52d0850 Fix for strict mode with location parent 2015-05-04 15:10:57 -07:00
snipe 71febc1c81 Added accessories and location 2015-05-04 13:31:47 -07:00
snipe 68d8b10b22 Changed text to icons for more compacted view 2015-05-04 13:31:38 -07:00
snipe 0d2333203a Display default location 2015-05-04 13:08:38 -07:00
snipe 3881e2e83e Fixes #784 - add "create accessory" to topnav 2015-05-04 11:24:25 -07:00
snipe 51eeee09d7 Fixes bug in #736 for new fields 2015-05-04 11:14:38 -07:00
snipe c487beeaca Asset counter for #759 (needs more work) 2015-05-04 03:05:22 -07:00
snipe f463cd6c8d Fixes for #759 - location heirarchy 2015-05-04 02:50:42 -07:00
snipe 5e7a4e8193 Fixes #599 - show groups in user list 2015-05-04 01:44:49 -07:00
snipe c8870ddcab Fixes #736 - more fields in bulk edit 2015-05-04 01:30:20 -07:00
snipe bbdbd5397c Check for valid asset before attempting to get name 2015-05-04 00:46:26 -07:00
snipe 527650d03b Merge branch 'patch-5' of https://github.com/DanielNemanic/snipe-it into DanielNemanic-patch-5
# Conflicts:
#	app/views/backend/models/view.blade.php
2015-05-02 12:28:34 -07:00
snipe 126121065c Merge branch 'patch-3' of https://github.com/DanielNemanic/snipe-it into develop
# Conflicts:
#	public/assets/css/compiled/user-profile.css
2015-05-02 12:27:40 -07:00
snipe 48ccf844fa Merge pull request #748 from DanielNemanic/patch-4
Update user-profile.css
2015-05-02 12:24:11 -07:00
snipe 7556f989df Accessories Slack integration 2015-04-30 20:53:44 -07:00
snipe 8207597a58 Slack integration for Licenses 2015-04-30 20:37:23 -07:00
snipe 1137768f84 Escape notes 2015-04-30 19:23:41 -07:00
snipe 5f6925858b Richer slack integrations 2015-04-30 18:54:34 -07:00
snipe 77d1d93ebc Fixes #729 - CSS wordwrap for long licenses 2015-04-30 18:17:44 -07:00
snipe c95af84452 Fixes #750 because @uberbrady can't code 2015-04-30 17:14:31 -07:00
snipe 62b5ec5b02 Slack field validation and placeholder text 2015-04-30 16:58:33 -07:00
snipe 9f9a9a51b3 Fixes #774 - layout issue on profiles 2015-04-29 23:21:04 -07:00
snipe a2dd2509fd Updated language strings for slack 2015-04-29 18:01:43 -07:00
snipe 3c00f38a0f Slack integration for asset checkin/checkout 2015-04-29 17:38:22 -07:00
snipe 767e2c69f3 Fixes #751 - ignore whether depreciation was selected or not to display purchase cost 2015-04-29 16:31:38 -07:00
snipe 3b491d4a6b Fixes #757 - use showAssetName method 2015-04-29 16:22:25 -07:00
snipe 179ef7f060 Removed unsupport languages 2015-04-29 16:17:13 -07:00
snipe a0fce2e0fb Fixes #766
Should be refactored to make the Action logger into a base class and to use polymorphic relationships for the IDs, and migrate accessory_id into asset_id in the log table. This was quick and dirty.
2015-04-29 16:14:08 -07:00
snipe bce06543b2 Merge remote-tracking branch 'origin/master' into develop 2015-04-29 15:28:38 -07:00
snipe 9841dbbbc4 Fixed HTML so settings are saved correctly 2015-04-29 15:28:11 -07:00
snipe d61506fcf7 Fixes for #766 - add activity report 2015-04-29 14:50:12 -07:00
snipe 6a7fcd5c40 Fixes #769 - set sort order for Accessory Category 2015-04-29 13:54:54 -07:00
snipe b4b273fc43 Fixed typo 2015-04-28 16:42:08 -07:00
snipe 495201ebf7 Merge branch 'develop'
# Conflicts:
#	composer.lock
2015-04-28 14:48:19 -07:00
snipe e6d0d83070 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-04-28 13:41:17 -07:00
snipe 564d5fcb31 Merge pull request #770 from southwolf/fix-concat-space
Remove space after concat to fix SQL FUNCTION CONCAT NOT EXIST error
2015-04-28 13:20:48 -07:00
snipe c0a58897c0 Re-re-trying --prefer-source --no-interaction 2015-04-28 13:19:13 -07:00
Fei Song 1c2e5ecc0f Remove space after concat to fix SQL FUNCTION CONCAT NOT EXIST error 2015-04-28 15:19:00 +08:00
snipe 6109368799 Merge pull request #761 from ivarne/patch-1
Delete .bash_history
2015-04-21 00:42:59 -07:00
Ivar Nesje f8ea40d3d1 Delete .bash_history
This file does not look like a natural part of the project.
2015-04-21 09:11:43 +02:00
snipe 2fb65c5682 Merge pull request #758 from madd15/patch-1
Update link to Documentation in footer
2015-04-16 23:33:47 -07:00
madd15 c6419e1c07 Update link to Documentation in footer 2015-04-17 16:01:44 +09:30
snipe ba58e718b4 Resolved some deps from vendor changes 2015-04-16 22:18:35 -07:00
snipe 30c8fffa0a Loading string 2015-04-15 09:51:48 -07:00
snipe a560d4db31 Merge pull request #754 from DanielNemanic/patch-6
Update view.blade.php
2015-04-15 09:43:40 -07:00
Daniel Nemanic fe72139410 Update view.blade.php
Added class="img-responsive" to Model Image on Line 116.
2015-04-15 09:05:02 +02:00
Daniel Nemanic 6f9daa28eb Update view.blade.php
Added {{ Config::get('app.url') }} in Line 116 to avoid no Image in SubFolder. ( http://domain.com/snipe-it/... )
2015-04-15 08:53:50 +02:00
Daniel Nemanic d408bb9086 Update user-profile.css
Added with:120px to avoid very big Avatars from Users.
2015-04-14 15:01:38 +02:00
Daniel Nemanic 5f3bc8e74b Update user-profile.css
Added width:120px to avoid very big picture rom the Avatar.
2015-04-14 15:00:31 +02:00
snipe bd3409285f Merge pull request #745 from DanielNemanic/patch-2
Update print.css
2015-04-14 02:04:48 -07:00
snipe 18a3ff67cb Merge pull request #744 from DanielNemanic/patch-1
Update layout.css
2015-04-14 02:04:42 -07:00
Daniel Nemanic 61eda122e4 Update print.css
Added @media print for printing and .table-responsive {overflow: hidden;} to avoid table scrollbars.
2015-04-14 11:00:09 +02:00
Daniel Nemanic 6cb70e865e Update layout.css
To avoid screen resolution errors on printing, added the @media attribute.
2015-04-14 10:56:58 +02:00
snipe 4b32c28f7e Merge pull request #741 from madd15/patch-5
Add dashboard to side navigation
2015-04-13 17:37:39 -07:00
snipe f0a9b2c71d Merge pull request #738 from madd15/patch-4
Fix #737 -Only display comma & address2 if not empty
2015-04-13 17:37:31 -07:00
madd15 2e0fa9126a Add dashboard to side navigation 2015-04-14 10:02:37 +09:30
snipe 63b1f3834e New language strings 2015-04-13 11:26:02 -07:00
madd15 1a4f148318 Fix #737 -Only display comma & address2 if not Null 2015-04-10 09:14:59 +09:30
snipe 9de083afa7 Merge pull request #734 from snipe/depreciation_fix2
Fix to issue with depreciation not returning correct value
2015-04-08 16:41:23 -07:00
Brady Wetherington 551b5c42d8 "Years" turn out to be 12 times longer than months, apparently 2015-04-08 16:36:06 -07:00
snipe 30966b14af Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-04-08 16:25:46 -07:00
snipe 9bbf933b05 Added missing search string 2015-04-08 16:25:34 -07:00
snipe f8143b6c7c Merge pull request #728 from madd15/feature/Group-View
Fix #723 - Add view to list users of group
2015-04-06 21:03:59 -07:00
madd15 efba1b9038 Fix update button to goto right group 2015-04-07 13:31:56 +09:30
Madd15 80090a41ec Add Group User View 2015-04-07 13:25:20 +09:30
snipe 0cff78d127 Updated language strings 2015-04-02 15:42:58 -07:00
snipe e88a81141f Added view link to asset tag, since some assets won't have names 2015-04-02 15:40:41 -07:00
snipe c88ce0d14d Fixes for #722 datatables 2015-04-02 14:55:36 -07:00
snipe 33e7ce6761 Fixes for #722 localization 2015-04-02 14:28:11 -07:00
snipe 766afdeeae Merge pull request #720 from madd15/patch-4
Fix #716 - Default page length, settings per page change
2015-04-01 17:59:09 -07:00
madd15 1edd6d3542 Get default page length and new Length menu 2015-04-02 11:22:33 +10:30
madd15 9be50152b3 per_page Select drop-down 2015-04-02 11:21:32 +10:30
snipe 7ad6dda260 Merge remote-tracking branch 'origin/develop' 2015-04-01 17:41:21 -07:00
snipe e4b45231ec Fix for bad seed data if Jon Doe doesn't get created 2015-04-01 17:22:48 -07:00
snipe 6b853750e5 Fix for strict mode app install 2015-04-01 16:34:02 -07:00
snipe dc1380edd1 Merge remote-tracking branch 'origin/develop' 2015-04-01 15:48:19 -07:00
snipe b53847cb61 Updated language strings 2015-04-01 15:48:02 -07:00
snipe 06b465540d Merge remote-tracking branch 'origin/develop' 2015-04-01 15:44:51 -07:00
snipe 0a734d8502 Missing semicolons 2015-04-01 15:44:13 -07:00
snipe 98eda57188 Merge pull request #719 from madd15/patch-3
Fix #715 - Missing $modelCheck api call
2015-04-01 15:41:47 -07:00
madd15 46781c94cd Fix #715 - Missing $modelCheck api call 2015-04-02 09:10:07 +10:30
snipe 3a06d8802d Merge remote-tracking branch 'origin/develop'
Conflicts:
	composer.lock
	public/assets/.siteflow
2015-04-01 15:39:24 -07:00
snipe 0e26480674 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-04-01 15:32:03 -07:00
snipe 92a4f025d8 Fixes #718 - uppercase state/country abbreviations 2015-04-01 15:31:53 -07:00
snipe 5529204b17 Merge pull request #713 from madd15/patch-3
Fix #712 - Change RTD to Deployed if checkedout
2015-03-31 16:53:49 -07:00
snipe da43f44fea Merge pull request #707 from j0k3r/patch-1
Fix link to the demo
2015-03-31 16:53:40 -07:00
madd15 ff23616bb5 Fix #712 - Change RTD to Deployed if checkedout 2015-04-01 09:36:54 +10:30
snipe de59f654af Merge pull request #711 from madd15/patch-3
Fix #710 - Only pull eula if set to use default in category
2015-03-31 15:22:44 -07:00
madd15 7d9c90f8dd Only pull eula if set to use default in category 2015-04-01 08:51:40 +10:30
Jeremy b0886f970a Fix link to the demo 2015-03-29 09:56:04 +02:00
snipe afdf00eacb Removed settings save for display fields 2015-03-27 22:34:39 -07:00
snipe 51148f1371 Removed additional settings, since all are displayable now 2015-03-27 22:32:38 -07:00
snipe d58cc8d490 Herp derp plural 2015-03-27 21:48:47 -07:00
snipe 0c827b318b Default location fix 2015-03-27 21:48:04 -07:00
snipe 5d946b19cb Fixed checkmodel at route level 2015-03-27 17:44:49 -07:00
snipe d2e23adf84 Merge pull request #704 from madd15/patch-3
Fix processing stuck on exit print view
2015-03-27 16:10:56 -07:00
madd15 7d35fae0f4 Fix processing stuck on exit print view 2015-03-28 09:09:36 +10:30
snipe 605d0ed8e1 Moved checkModel into model from controller 2015-03-27 13:45:37 -07:00
snipe c92f09fddb Merge pull request #700 from madd15/feat/savestate
Fix saveState, change chumper defaults
2015-03-27 13:33:33 -07:00
snipe 2cde817ffb Merge pull request #698 from madd15/patch-2
Fix missed hardware statuses
2015-03-27 13:33:07 -07:00
Madd15 87bf51b033 Restore JS changes 2015-03-27 16:52:40 +10:30
Madd15 06b3d6e5ce Fix saveState, change chumper defaults
Hopefully this will fix the saveState issues
2015-03-27 16:49:03 +10:30
madd15 b32379393f Fix missed hardware statuses 2015-03-27 07:50:13 +10:30
snipe bbcc8aa9ac Update groups if unlocked 2015-03-25 14:26:12 -07:00
snipe 865c302f71 Prevent changing user email/pass/groups if locked 2015-03-25 14:26:00 -07:00
snipe 2cf8256079 Merge pull request #693 from madd15/patch-2
Remove forgot password link, fix save icon, if locked button disabled
2015-03-25 13:28:44 -07:00
madd15 e2a2746ed6 Add if locked disable button 2015-03-26 05:54:14 +10:30
madd15 6854c568c7 Add if locked disable button 2015-03-26 05:53:58 +10:30
madd15 d952a1199b Remove forgot password link and fix save icon 2015-03-26 05:39:56 +10:30
madd15 7f2ccc860b Remove forgot password link and fix save icon 2015-03-26 05:38:56 +10:30
snipe f0d3d1b036 Merge pull request #690 from madd15/patch-2
Fix mobile unable to click sign in
2015-03-24 19:34:06 -07:00
madd15 d9b9224045 Fix mobile unable to click sign in 2015-03-25 13:02:02 +10:30
snipe 8685e90513 Merge pull request #689 from madd15/feat/more-tables
Convert to Datatables - Models, Categories and Accessories
2015-03-24 18:45:34 -07:00
madd15 a9f15fbcae Convert Categories View to use Datatables, and fix Model View missing comma 2015-03-25 12:03:49 +10:30
madd15 7d266fdc4e Convert Models View to use Datatables 2015-03-25 12:03:48 +10:30
madd15 7f03c7538f Convert Accessories View to use Datatable 2015-03-25 12:03:47 +10:30
madd15 d90d7d7ddd Only include first 3 columns on exports 2015-03-25 12:03:46 +10:30
madd15 7881e70afb Update Model Check in Hardware Edit and move to API 2015-03-25 12:03:45 +10:30
madd15 e61f254ffc Update datatable options 2015-03-25 12:03:44 +10:30
madd15 678b7700b4 Add use Datatable 2015-03-25 12:03:44 +10:30
madd15 1d1c14ae21 Add use Datatable 2015-03-25 12:03:43 +10:30
madd15 66d1872230 Fix button spacing 2015-03-25 12:03:42 +10:30
madd15 faa999ab2b Fix incorrect values 2015-03-25 12:03:41 +10:30
madd15 6678905d79 Remove width from actions 2015-03-25 12:03:40 +10:30
madd15 3e98f05564 Convert Models and Categories Index to use Datatables 2015-03-25 12:02:32 +10:30
snipe 35bbea3052 Fixes #688 - show model if no asset name 2015-03-24 17:08:15 -07:00
snipe 86623822f5 Trying to fix the build 2015-03-23 10:37:55 -07:00
snipe ad1a9396ac Merge pull request #684 from madd15/patch-1
Fix #682 - Updated buttons and data loading
2015-03-23 10:13:41 -07:00
madd15 2c6597c5fb Add deleted_at to select array for datatable 2015-03-23 18:17:41 +10:30
madd15 da983af2cb Fix #683 - Use sAjaxSource, change to processing 2015-03-21 21:22:23 +10:30
madd15 c79fd5ed30 Fix showAll on Print 2015-03-21 17:52:15 +10:30
madd15 2d9e49f245 Fix #682 - Updated buttons and data loading
*Buttons show now only show what is visible (this means the checkbox, checkin and actions for now)
*Changed from setUrl to ajax for loading the data
2015-03-21 17:46:05 +10:30
snipe 75d5f494a3 Bypass site name validation if locked 2015-03-20 15:08:10 -07:00
snipe 40852f9a6a Update to settings edit 2015-03-20 15:00:05 -07:00
snipe 7f07f35beb Updated language strings 2015-03-20 14:56:12 -07:00
snipe c6be6f480e Disable editing title when locked 2015-03-20 14:56:03 -07:00
snipe 617cc67467 Added Thai language files 2015-03-20 14:31:31 -07:00
snipe 0c9bc4e59e Added link to Common Issues and Getting Help pages 2015-03-20 14:24:23 -07:00
snipe 72048a5267 Updated default mail server to mailchimp 2015-03-20 14:24:04 -07:00
snipe 80d2347095 Better label layout 2015-03-20 12:38:39 -07:00
snipe fa794d7a15 Basic QR code printing 2015-03-19 18:06:50 -07:00
snipe 85b6571bc3 Merge pull request #680 from madd15/features/api
Accessories and Licenses API
2015-03-19 00:40:28 -07:00
madd15 14aa12eb09 Add Licenses API 2015-03-19 16:53:43 +10:30
madd15 8af799614e Update for dataTables 2015-03-19 16:52:52 +10:30
madd15 f9e0add436 Change to Datatable 2015-03-19 16:52:07 +10:30
madd15 3782531f57 Fix missing </div> 2015-03-19 16:13:14 +10:30
madd15 fab313a908 Conform API 2015-03-19 16:10:29 +10:30
madd15 4e70cfdb95 Conform API 2015-03-19 16:10:02 +10:30
madd15 75bbbcb4ca Change to Datatable 2015-03-19 16:09:26 +10:30
madd15 abf91c7b29 Update for dataTables 2015-03-19 16:08:38 +10:30
madd15 603fccb26c Update Routes for API 2015-03-19 16:07:38 +10:30
snipe 333d858f33 Merge pull request #679 from madd15/feature/dynamic-mac-address
jQuery Mac Address Field
2015-03-18 18:11:26 -07:00
madd15 c9628722cb Add check/model route 2015-03-19 11:31:01 +10:30
madd15 e56ccb0c82 Add jQuery for mac address field 2015-03-19 09:46:31 +10:30
madd15 61d916d94d Update for dynamic mac address field 2015-03-19 09:43:34 +10:30
snipe 7e573c73f9 Merge pull request #674 from madd15/patch-2
Add #665 - User Notes Field - Fixed Error on user creation
2015-03-17 23:48:33 -07:00
madd15 4aa4e7c9fc Fix error if user is not in throttle table 2015-03-18 17:11:34 +10:30
madd15 161d72390b Update edit for notes field 2015-03-18 16:50:15 +10:30
madd15 53ab21b016 Migration to add notes field to users 2015-03-18 16:47:52 +10:30
madd15 7bb9929624 Add Notes Lang 2015-03-18 16:46:47 +10:30
madd15 25dea384fe Change layout and add notes 2015-03-18 16:46:00 +10:30
madd15 ceb93926a3 Add notes field 2015-03-18 16:44:42 +10:30
snipe e9a6261752 Merge pull request #673 from madd15/patch-1
dataTables Processing and Custom Processing Content
2015-03-17 23:00:09 -07:00
madd15 434dbe035c Processing and custom processing content 2015-03-18 16:08:02 +10:30
madd15 f5e14e59e9 Processing and custom processing content 2015-03-18 16:06:54 +10:30
madd15 c8bf26a3b3 Fix layout of loading box 2015-03-18 16:01:48 +10:30
snipe 139d206413 Select specific fields so Chumper has a smaller collection to parse 2015-03-17 18:05:01 -07:00
snipe a341db4cf7 Prevent delete when password lock is active 2015-03-17 17:29:48 -07:00
snipe b66f55362f Merge pull request #672 from madd15/patch-1
Change to use eager loaded userloc not assetloc
2015-03-17 17:21:34 -07:00
madd15 fdb92a2012 Change to use eager loaded userloc not assetloc 2015-03-18 10:50:52 +10:30
snipe b3a75690f1 Merge pull request #671 from madd15/assets-deleted
Fix Deleted Assets View
2015-03-17 17:18:02 -07:00
snipe 0292a0fee6 Checkall 2015-03-17 17:07:59 -07:00
Madd15 c14761b9a1 Re-fix button not showing 2015-03-18 10:27:04 +10:30
snipe 8404736662 Added bulk edit button back into table footer 2015-03-17 16:52:10 -07:00
madd15 9edcc39de2 Fix restore button now showing 2015-03-18 10:15:57 +10:30
madd15 1620186f5d Change Deleted to new ?status 2015-03-18 10:11:11 +10:30
snipe 94afe20c20 Removed throttle eager load, added userlocation 2015-03-17 16:36:20 -07:00
snipe d254f9809f Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-03-17 16:15:38 -07:00
snipe 18209c2448 Merge pull request #670 from madd15/patch-1
Fix spacing between Create and Import
2015-03-17 16:15:26 -07:00
snipe 519575893d Fix JS modal error 2015-03-17 16:14:40 -07:00
madd15 f794218b6f Update buttons to use Lang 2015-03-18 09:26:14 +10:30
madd15 4932fe3397 Add button current/deleted 2015-03-18 09:25:28 +10:30
madd15 4f18a71124 Fix space in title 2015-03-18 09:20:53 +10:30
madd15 07e9ff4290 Add Users 2015-03-18 09:19:23 +10:30
madd15 176264b317 Fix title for deleted 2015-03-18 09:18:42 +10:30
madd15 4c3033d414 Fix spacing between Create and Import 2015-03-18 09:16:01 +10:30
snipe 61e6d55bcf Merge pull request #669 from madd15/patch-1
Fix scopeGetDeleted - Missing withTrashed()
2015-03-17 15:36:51 -07:00
snipe c00086c740 Fix eager loading for user throttle 2015-03-17 15:36:11 -07:00
madd15 e01b1b3935 Fix scopeGetDeleted - Missing withTrashed() 2015-03-18 09:04:51 +10:30
snipe c2c0196a3d Eager loading managers, licenses 2015-03-17 14:58:15 -07:00
snipe 3da652216b Possible fix for #652 - need to test mobile and Cinema display 2015-03-16 21:18:32 -07:00
snipe 0ffb5df40b Fixed changelog order 2015-03-16 20:22:32 -07:00
snipe cfc26b283c Updated changelog 2015-03-16 20:20:53 -07:00
snipe 1a615f8941 Update to Senry 2.1.5 for security vulnerability 2015-03-16 18:52:56 -07:00
snipe 41dd7a2b2a Update to Senry 2.1.5 for security vulnerability 2015-03-16 18:39:13 -07:00
snipe c0b61991ba Smaller gap in header 2015-03-16 17:49:51 -07:00
snipe 1597461c02 More padding by filter 2015-03-16 17:42:01 -07:00
snipe 46c1f2a28b Server side datatables for user view - needs fix for deleted users 2015-03-16 17:33:41 -07:00
snipe 77fd73bc1b Merge remote-tracking branch 'origin/features/chumper-datatables' into develop 2015-03-16 14:49:51 -07:00
snipe 3ad17d64b0 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-03-16 14:49:32 -07:00
snipe 412ec53d08 Merge pull request #662 from madd15/features/chumper-datatables
Tweak table to be like others
2015-03-16 11:51:18 -07:00
madd15 6f3be59b14 Tweak table to be like others 2015-03-16 23:21:01 +10:30
snipe fce4c4dcb1 Merge pull request #660 from madd15/patch-1
Fix button layouts
2015-03-15 20:13:37 -07:00
madd15 bb7d3d1a85 Fix button layouts 2015-03-16 09:28:48 +10:30
snipe ff7499e373 Merge pull request #658 from madd15/features/chumper-datatables
Remove Select buttons, Row Select and Add sorting fixes
2015-03-14 11:35:04 -07:00
madd15 958a7298fe Fix excludes 2015-03-15 03:04:54 +10:30
madd15 69b80dc9c6 Fixed Sorting 2015-03-15 03:02:58 +10:30
madd15 60531450c8 Remove Sorting and default to asset name
Removed sorting on checkbox, in/out and action columns and defaulted
sorting to asset name column
2015-03-15 02:40:59 +10:30
madd15 cbfdb88e13 Remove Row Select 2015-03-15 02:16:06 +10:30
madd15 fcd62d72b1 Remove Select buttons and [] that are not required 2015-03-15 02:10:41 +10:30
snipe e8355fe4ff Pulled code of conduct into its own file 2015-03-14 03:21:22 -07:00
snipe aabf879464 Added contributor code of conduct from http://contributor-covenant.org 2015-03-14 03:18:06 -07:00
snipe 41928e4bb9 Lighter colors on selected odd/even datables 2015-03-14 03:05:52 -07:00
snipe 6f38f76e4a Haha - TOTALLY cheated. But it works. Fixed ordering for linked names 2015-03-14 02:45:49 -07:00
snipe 5cfb2d5f6a Fixed modal delete in ajax tables 2015-03-14 02:33:07 -07:00
snipe f6141e59e4 Nicer checkbox column 2015-03-14 02:32:54 -07:00
snipe d581fbc2c8 Minor style tweaks to try to get buttons less assy 2015-03-14 02:09:38 -07:00
snipe ab0a8b3b61 Added bulk edit back in (it looks like ass right now) 2015-03-14 02:09:21 -07:00
snipe 4243710378 Added location to new assets view 2015-03-14 01:30:12 -07:00
snipe 2a0350b9d1 Merge pull request #656 from madd15/features/chumper-datatables
Update functionality of tableTools
2015-03-13 22:25:48 -07:00
madd15 f58b448f6b Update Defaults and Excludes for Locations 2015-03-14 15:39:52 +10:30
madd15 1f0625cfa1 Better way for locations that works 2015-03-14 15:38:19 +10:30
madd15 5e4175723c Make Location work 2015-03-14 15:22:42 +10:30
snipe 61f1b145b7 Merge pull request #655 from madd15/patch-5
Fix #652 - Change UX of signin form
2015-03-13 21:51:36 -07:00
madd15 5db853dbdd Move Model And Add Location 2015-03-14 15:19:57 +10:30
madd15 87d6d83c41 Change to Defaults and Excluded 2015-03-14 15:11:15 +10:30
madd15 1d3d41b808 Remove forgot password link from above form 2015-03-14 15:01:04 +10:30
madd15 fc81e404ca Fix #652 - Change UX of signin form 2015-03-14 15:00:02 +10:30
madd15 3af215de45 update functionality of tableTools 2015-03-14 14:53:50 +10:30
snipe 2244c60499 Added category to output 2015-03-13 20:32:47 -07:00
snipe 9cf2798424 Updated version of datatables 2015-03-13 17:47:48 -07:00
snipe e23c0cb89f Removed responsive for ColVis debugging 2015-03-13 17:28:30 -07:00
snipe 1684d211ff Smaller buttons with no icon for TableTools 2015-03-13 17:13:48 -07:00
snipe 96e40721b2 Added type to query 2015-03-13 16:50:12 -07:00
snipe e94c24ded7 Merge pull request #650 from madd15/features/chumper-datatables
Change IMG Path
2015-03-13 00:28:31 -07:00
Madd15 ebe13fd665 Change IMG Path 2015-03-13 17:36:51 +10:30
snipe fe2d696f1f Merge pull request #649 from madd15/features/chumper-datatables
Add tableTools
2015-03-13 00:00:33 -07:00
Madd15 3656822ac9 Add tableTools 2015-03-13 17:25:53 +10:30
snipe 009b66eccf Merge branch 'features/chumper-datatables' of github.com:snipe/snipe-it into features/chumper-datatables 2015-03-12 22:37:27 -07:00
snipe da3743ad55 Merge pull request #648 from madd15/patch-5
Get colVis working
2015-03-12 22:37:10 -07:00
madd15 47136ca774 Add dataTables colVis 2015-03-13 16:01:41 +10:30
madd15 00b3556188 Create dataTables.colVis.css 2015-03-13 16:00:33 +10:30
madd15 b2b11812bd Create dataTables.colVis.js 2015-03-13 15:59:32 +10:30
snipe 5e5b32e060 Enabled state saving (not working yet, not sure why) 2015-03-12 22:18:43 -07:00
snipe 662c3f04dd Added proper sort 2015-03-12 22:09:18 -07:00
snipe 2cdfeacc1b Get ssets page to render with ajax datatables 2015-03-12 21:42:24 -07:00
snipe 7559f5836b Language strings for table headers 2015-03-12 20:10:38 -07:00
snipe b2af86230a Added fields 2015-03-12 19:52:03 -07:00
snipe 482c28804a Added chumper config 2015-03-12 19:51:08 -07:00
snipe 48481586ec Merge pull request #647 from madd15/patch-4
Fix #641 - Suggestion 2 - Removed Duplicate Status
2015-03-12 19:48:28 -07:00
madd15 f33844d4af move status around to match view 2015-03-13 13:01:30 +10:30
madd15 35f3350ddf Remove duplicate status 2015-03-13 12:56:09 +10:30
snipe 84affbafa6 Merge branch 'develop' into features/chumper-datatables 2015-03-12 17:34:51 -07:00
snipe ae2d2ca2be Smaller button 2015-03-12 17:34:34 -07:00
snipe f9dcefcc21 Merge branch 'develop' into features/chumper-datatables 2015-03-12 16:56:00 -07:00
snipe cb171bcac5 Fixes #645 - adds zip and rar to filetype 2015-03-12 13:25:28 -07:00
snipe b92e46180c Merge branch 'develop' of github.com:snipe/snipe-it into features/chumper-datatables 2015-03-12 13:24:22 -07:00
snipe 62d5ed48f0 Fixes #645 - added zip/rar to filetypes 2015-03-12 13:24:07 -07:00
snipe 83c6371016 Merge pull request #640 from madd15/patch-3
Fix #637 - Remove Deleted Models from drop down
2015-03-11 16:01:42 -07:00
madd15 33dd59fb81 Fix #637 - Remove Deleted Models from drop down 2015-03-12 09:09:35 +10:30
snipe e72577cbd8 Merge pull request #634 from madd15/patch-3
Implement #630 - Add Licenses Serial to Asset View
2015-03-10 16:24:04 -07:00
madd15 85c22c897a Implement #630 - Add Licenses Serial to Asset View 2015-03-11 09:52:02 +10:30
snipe 6a89728380 First shot at datatables for assets 2015-03-10 15:06:24 -07:00
snipe d31c12cfaf Merge pull request #629 from uberbrady/unicode_fix
Allow new Unicode character class to alpha_space
2015-03-09 21:32:00 -07:00
Brady Wetherington 91d2b89d68 Allow new Unicode character class to alpha_space 2015-03-09 21:29:27 -07:00
snipe fb85ac8d07 Merge pull request #628 from madd15/patch-3
Attempt to standardize icons and fix user view layout
2015-03-09 20:48:12 -07:00
madd15 7ef17365be update icon 2015-03-10 14:13:11 +10:30
madd15 00b16c6434 update icon 2015-03-10 14:11:32 +10:30
madd15 4fd17f267a update icon 2015-03-10 14:10:55 +10:30
madd15 54b63fa218 update icon 2015-03-10 14:09:33 +10:30
madd15 70c770a975 update icon 2015-03-10 14:08:02 +10:30
madd15 cbf1fc1988 Missing </div> 2015-03-10 14:05:12 +10:30
madd15 a71ad5dd02 update icon 2015-03-10 14:04:20 +10:30
madd15 22942c3bef update icon 2015-03-10 14:00:40 +10:30
madd15 b98fa6075e update icon 2015-03-10 13:57:54 +10:30
madd15 d88b90c398 update icon 2015-03-10 13:56:51 +10:30
madd15 ff8b88d187 add pencil to edit settings button 2015-03-10 13:56:25 +10:30
madd15 f532665f06 update icon 2015-03-10 13:53:34 +10:30
madd15 6bab442651 removed duplicate icon-white 2015-03-10 13:51:20 +10:30
madd15 df0da15dbb update icon 2015-03-10 13:48:30 +10:30
madd15 696325ac8b update icon 2015-03-10 13:46:57 +10:30
madd15 f1afe1ed20 update icon 2015-03-10 13:46:06 +10:30
madd15 456d8e365a update icon 2015-03-10 13:43:36 +10:30
madd15 6746c18092 update icon 2015-03-10 13:42:57 +10:30
madd15 45ae13749d update icon 2015-03-10 13:42:37 +10:30
madd15 330a6d0f87 update icon 2015-03-10 13:40:33 +10:30
madd15 76a0ef8d83 update icon 2015-03-10 13:39:58 +10:30
madd15 4a175aea4e update icon 2015-03-10 13:38:50 +10:30
madd15 90536b1cc2 update icon 2015-03-10 13:37:46 +10:30
madd15 f62148b28c update icon 2015-03-10 13:37:01 +10:30
madd15 100ac9dba0 update icons 2015-03-10 13:35:32 +10:30
madd15 dba243b1f7 update icons 2015-03-10 13:35:06 +10:30
madd15 4c8239c03d update icons 2015-03-10 13:34:31 +10:30
madd15 dab3a7135c update icon 2015-03-10 13:32:52 +10:30
madd15 0dae4cef08 update icon 2015-03-10 13:31:34 +10:30
madd15 14280a277c update icon 2015-03-10 13:31:04 +10:30
madd15 e9ac0a3209 update icon 2015-03-10 13:30:31 +10:30
madd15 efebfe3a13 update icon 2015-03-10 13:29:57 +10:30
madd15 472b7056c9 update icons 2015-03-10 13:28:50 +10:30
madd15 984ef44a43 update icons 2015-03-10 13:28:27 +10:30
madd15 94e8ca0c86 update icons 2015-03-10 13:27:02 +10:30
madd15 58a8d2f077 update create to correct + 2015-03-10 13:24:06 +10:30
snipe 9f38a62fe5 Merge pull request #618 from rashivkp/issue-599
ref #599. showing groups in user detail view. fixes a small design bug
2015-03-09 16:15:43 -07:00
snipe c79e830888 Bumped version 2015-03-09 16:15:19 -07:00
snipe ad25c048c4 Updated Sentry version to fix #625 2015-03-09 16:15:13 -07:00
snipe bb33e3c831 Updated language strings 2015-03-09 16:14:56 -07:00
rashivkp f62f22b4bf ref #599. showing groups in user detail view. fixes a small design bug
with group edit view
2015-03-09 02:01:02 +05:30
snipe 7d339624b8 Handle non-date strings 2015-03-04 20:27:21 -08:00
snipe f27fb90457 Allow override of checkin/checkout date
TODO: fix error if someone enters non-date text
2015-03-04 18:59:45 -08:00
snipe 2115c82587 Fixed DB format for nullable EULA 2015-03-04 18:59:09 -08:00
snipe 4076b29b63 Support for DATAMATRIX and PDF417 barcodes 2015-03-04 17:43:53 -08:00
snipe 817384b761 Fixes #597 - print-friendly view on users 2015-03-04 17:06:07 -08:00
snipe 3f9d9f23d5 Fixes #280 - updated link to use config url 2015-03-04 16:10:51 -08:00
snipe 7d5ee9750f Added #596 fix for accessories 2015-03-04 15:21:31 -08:00
snipe 1c333e4a24 Fixes #596 - better routes for checking in multiple items from user 2015-03-04 15:15:38 -08:00
snipe 4ae624a541 Bumped version 2015-03-04 14:01:54 -08:00
snipe 2540e90c37 Fixes #605 - hides user requestable view from admins 2015-03-04 14:01:47 -08:00
snipe 2d196b1595 Fixes #602 for strict_mode 2015-03-04 14:01:18 -08:00
snipe 18fc20777b Bumped version 2015-03-01 16:35:47 -08:00
snipe 61b04d6e40 Fixes #579 - user cannot accept more than once 2015-03-01 16:35:32 -08:00
snipe 3263543d84 Added language string for already accepted 2015-03-01 15:33:07 -08:00
snipe 9ea4386354 Set default debug to false for production config 2015-03-01 15:17:23 -08:00
snipe ac23e8fd02 Removed line 2015-03-01 15:16:38 -08:00
snipe 6bb3f222ea Hash version for settings page 2015-02-28 15:21:44 -08:00
snipe d7b7a3a4a8 Better version output 2015-02-28 15:18:31 -08:00
snipe 4502582beb Trying to fix pre-commit hook :( 2015-02-28 15:06:31 -08:00
snipe 9355fcb58f Testing auto-versioning 2015-02-28 15:04:40 -08:00
snipe c6f23e7b27 Bumped version 2015-02-28 14:59:43 -08:00
snipe b986b3276c Dynamic version number on settings and footer 2015-02-28 14:59:03 -08:00
snipe 3e3935485f Set version config 2015-02-28 14:44:30 -08:00
snipe 7047af44f6 Fixed layout for remember me button 2015-02-28 13:30:14 -08:00
snipe 2d5e9b6ea5 Removed dummy text 2015-02-28 13:11:05 -08:00
snipe 33a709ecbc Merge remote-tracking branch 'origin/develop' 2015-02-28 12:27:45 -08:00
snipe 9b42d3a4fc Bumped version number 2015-02-28 12:27:22 -08:00
snipe c598e3d9c0 Merge remote-tracking branch 'origin/develop' 2015-02-27 21:07:45 -08:00
snipe c822fff714 New language strings 2015-02-27 21:07:17 -08:00
snipe c881535fda Updated language strings 2015-02-27 13:32:53 -08:00
snipe 715fc3fa9b Bumped version for release 2015-02-26 19:17:06 -08:00
snipe c484afb12b Fixed typo for accessories accept 2015-02-26 18:58:08 -08:00
snipe 5ec91ef5fc Removed test url 2015-02-26 18:56:30 -08:00
snipe 30db9a2943 Unified asset/accessory acceptance 2015-02-26 18:42:39 -08:00
snipe 1273c4ca87 EULA/req improvements 2015-02-26 18:20:52 -08:00
snipe cb73d81d5b Smaller buttons 2015-02-26 17:23:03 -08:00
snipe 04735f1aff Fixed assetlog display 2015-02-26 17:04:21 -08:00
snipe d33dcbbcb1 Fixed bad method call in accessories on delete 2015-02-26 16:17:25 -08:00
snipe 04401ca09f Merge remote-tracking branch 'origin/develop' 2015-02-26 16:14:11 -08:00
snipe 0ff23c422a Better language strings 2015-02-26 16:13:47 -08:00
snipe 74a7b304c2 Limit categories to accessory categories 2015-02-26 16:09:40 -08:00
snipe 231e465898 Added category types to view 2015-02-26 16:00:52 -08:00
snipe 68c3e88343 Few more error icons 2015-02-26 15:52:38 -08:00
snipe ef6eae63d8 Fixed error icon 2015-02-26 15:50:33 -08:00
snipe afe2eb736c Added category type 2015-02-26 15:48:44 -08:00
snipe 1552c1e917 Accessories log (not reporting correctly yet) 2015-02-26 15:25:48 -08:00
snipe 258d1cd705 Removed extra table columns 2015-02-26 15:25:33 -08:00
snipe d7b4e8a8de Removed cruft from checkin form 2015-02-26 15:25:21 -08:00
snipe c0c563b1c7 Fixes accessory relationshop for pivot 2015-02-26 15:25:08 -08:00
snipe 430b8233ed Fixed user relationship 2015-02-26 15:24:51 -08:00
snipe 47f1488acc Get the accessory pivot ID 2015-02-26 15:24:41 -08:00
snipe 21799cca6d User acceptance for accessories 2015-02-26 15:24:23 -08:00
snipe e7ae4bd1c4 Merge pull request #574 from madd15/patch-3
Remove unused trashedAssets()
2015-02-26 14:21:05 -08:00
snipe 7da6ba5f68 Merge pull request #575 from madd15/patch-4
Reduces Queries on Model Index View
2015-02-26 14:20:22 -08:00
madd15 8e9f7965c7 Reduces Queries on Model Index View 2015-02-27 08:44:41 +10:30
madd15 4ef2dd0c7e Remove unused trashedAssets() 2015-02-27 08:42:53 +10:30
snipe 19ad8970d7 Fixed arrow icon 2015-02-26 14:08:42 -08:00
snipe a20e1f6943 Fixed attach to relation 2015-02-26 14:08:31 -08:00
snipe 5010720a97 Fixed accessory relationship 2015-02-26 14:07:52 -08:00
snipe efaf067b94 Fixed user relationship 2015-02-26 14:07:39 -08:00
snipe 6efd268004 Disable checkouts if there are none left 2015-02-26 13:28:08 -08:00
snipe 7f26f01a8f Merge pull request #573 from madd15/models
Force Model Restore before Asset Restore
2015-02-26 13:06:15 -08:00
snipe 31df29cac8 Fixed funky layout from datatables 2015-02-26 13:05:10 -08:00
madd15 15a7e205be Force Model Restore before Asset Restore 2015-02-27 07:33:48 +10:30
snipe 3e189d3502 Fixes #538 - sortable tables 2015-02-26 12:59:40 -08:00
snipe 6d16c97902 Fixed back arrow 2015-02-26 12:40:54 -08:00
snipe 1ac401f0c0 Fixed EULA mail 2015-02-26 11:54:56 -08:00
snipe 62cb1daefd Language strings for checkin/checkout 2015-02-26 11:42:11 -08:00
snipe acedab5587 Checkout for accessories 2015-02-26 11:42:02 -08:00
snipe ad30aebcbc Methods to extend the category EULA to the accessory 2015-02-26 11:41:47 -08:00
snipe 528c06cf7f Reverting icon fix 2015-02-26 10:33:31 -08:00
snipe 97d97fc4df Merge branch 'develop' of github.com:snipe/snipe-it into develop
Conflicts:
	app/views/backend/categories/edit.blade.php
	app/views/backend/depreciations/edit.blade.php
	app/views/backend/groups/create.blade.php
	app/views/backend/groups/edit.blade.php
	app/views/backend/hardware/bulk.blade.php
	app/views/backend/hardware/checkin.blade.php
	app/views/backend/hardware/checkout.blade.php
	app/views/backend/hardware/edit.blade.php
	app/views/backend/licenses/checkin.blade.php
	app/views/backend/licenses/checkout.blade.php
	app/views/backend/licenses/edit.blade.php
	app/views/backend/locations/edit.blade.php
	app/views/backend/manufacturers/edit.blade.php
	app/views/backend/models/edit.blade.php
	app/views/backend/statuslabels/edit.blade.php
	app/views/backend/suppliers/edit.blade.php
	app/views/frontend/account/change-email.blade.php
	app/views/frontend/account/change-password.blade.php
	app/views/frontend/account/profile.blade.php
	app/views/frontend/auth/forgot-password-confirm.blade.php
	app/views/frontend/auth/signin.blade.php
2015-02-26 10:26:04 -08:00
snipe e89cb883ec Merge pull request #570 from madd15/models
Not Complete - Fix #565 - Models soft delete and restore, several icons and and Category lang
2015-02-26 10:20:15 -08:00
madd15 88ce0abe85 more icons 2015-02-27 01:32:24 +10:30
madd15 4570efc68b Add restore to action button 2015-02-27 01:03:31 +10:30
madd15 ea28873fb0 remove edit, clone when deleted 2015-02-27 00:56:47 +10:30
madd15 eb5d4983de more model functionality and icons 2015-02-27 00:53:16 +10:30
madd15 379f6bef6c catergories lang and serveral icons 2015-02-26 23:48:17 +10:30
madd15 e090762b5a Icon changes on hardware 2015-02-26 22:41:44 +10:30
madd15 9f3edd701b Fixes #565 - Soft Delete Models and Allow Restore
Allow models to be deleted and restored which in turn allows deleted
hardware to function when model is deleted.
2015-02-26 22:35:57 +10:30
snipe 54bad2e4f6 More accessory relationships 2015-02-26 03:19:45 -08:00
snipe e41621def0 Fixed relation between accessory and category 2015-02-26 03:08:27 -08:00
snipe 95fd96f29a Accessory checkout/checkin methods 2015-02-26 03:08:17 -08:00
snipe 663d5213eb Accessory checkout/checkin routes 2015-02-26 03:08:01 -08:00
snipe 92d6ed0761 Migration for accessory checkout 2015-02-26 03:07:37 -08:00
snipe 59ea144b28 Minor UX tweaks 2015-02-26 03:07:19 -08:00
snipe f9f3b5b4f9 Smaller buttons 2015-02-26 02:42:25 -08:00
snipe 3de1a8f96c Pre-release version in footer 2015-02-26 01:07:34 -08:00
snipe 5d71628927 Accessories title 2015-02-26 00:22:15 -08:00
snipe 323a607130 Indenting formatting 2015-02-26 00:22:02 -08:00
snipe 8eaa70c39b Fixes #567 - bug in depreciation report csv export 2015-02-26 00:21:48 -08:00
snipe 29863004e2 more small mobile fixes 2015-02-25 20:01:36 -08:00
snipe c2bbc1281c Mobile fixes 2015-02-25 19:30:37 -08:00
snipe a6232cbfd8 Fix language string for create accessory 2015-02-25 19:19:23 -08:00
snipe 734dc49564 Fixed icon 2015-02-25 18:35:07 -08:00
snipe a5a1c4223b Fixed chevrons 2015-02-25 18:33:22 -08:00
snipe ca1351b704 Switched to all FA 2015-02-25 18:14:51 -08:00
snipe 3135869d5a Fixed font path 2015-02-25 17:53:25 -08:00
snipe c2d30ce865 Ignore siteflow 2015-02-25 17:53:17 -08:00
snipe 69a446af97 Font awesome 2015-02-25 17:51:01 -08:00
snipe 93b11c35d0 CSS updates 2015-02-25 17:50:21 -08:00
snipe cc3d007fa6 Use font-awesome for sidenav 2015-02-25 17:12:23 -08:00
snipe 8cc1bd0159 Updated font-awesome 2015-02-25 16:58:26 -08:00
snipe 8879bff160 Fixed bug for reporting on upload in dashboard 2015-02-25 16:48:42 -08:00
snipe fae70bb485 Updated table strings 2015-02-25 16:38:15 -08:00
snipe d4cafe364f Item language string 2015-02-25 16:38:05 -08:00
snipe 346b62bf26 Missing language string 2015-02-25 16:37:57 -08:00
snipe 3ba6e45011 Added Accessories scaffolding 2015-02-25 16:31:22 -08:00
snipe 525a9225c8 Dashboard 2015-02-25 16:30:59 -08:00
snipe df448f0c35 Merge pull request #564 from splaer/barcode-1
Barcode 1
2015-02-25 12:56:26 -08:00
Splaer 7808039d0d Merge branch 'develop' of https://github.com/snipe/snipe-it into barcode-1 2015-02-25 15:54:06 -05:00
Splaer 0ff0d18351 Functionality back to url view for the time being until other code is implemented 2015-02-25 15:52:24 -05:00
snipe fc4f1fd7fc Updated lock file 2015-02-25 12:35:41 -08:00
snipe d55d9f5530 Merge pull request #562 from splaer/barcode-1
Barcode - Stage 1
2015-02-25 12:32:13 -08:00
Splaer cd7461a3a8 Missed files. Composer to add new package and organized the view page label 2015-02-25 15:08:12 -05:00
snipe ad39ec1dc3 Added markdown to EULA 2015-02-25 11:25:10 -08:00
Splaer b2af455523 Merge conflict resolution. Added a use at the same line as remote. Fixed 2015-02-25 14:09:58 -05:00
Splaer 6d4f4c6064 Preparation for barcode goodness. Changed out library to one that supports all barcode types and not just QR. Prep branch for much bigger barcode things 2015-02-25 14:07:23 -05:00
snipe 2b83b52735 Disallow delete if lock_passwords is true 2015-02-25 10:49:03 -08:00
snipe cd99295f83 More auth locking 2015-02-25 10:41:25 -08:00
snipe 6ab95ff387 Prevent auth changes on demo 2015-02-25 10:37:39 -08:00
snipe 1aa25d1e6d Merge pull request #558 from roncsak/develop
Enhance further install without dummy data
2015-02-25 02:06:56 -08:00
snipe 1b5b3fba8a Merge pull request #559 from cleathley/develop
Updates to Dockerfile for QrCode support
2015-02-25 01:59:55 -08:00
Chris Leathley c71bdc0d5e Removed Dockerfile as this was stopping the actual build (difference in docker versions ?) 2015-02-25 17:49:09 +08:00
Chris Leathley 7380affe9c Added php5-gd as it's required for the QR Codes, Bit of code cleanup and removal of the toolbar by default 2015-02-25 17:46:28 +08:00
Tamás Roncsák 1734c5ab99 Enhance installation further without dummy data
Use --force to prevent user unnecessary user interactions.
Seed StatusLabels even when dummy datas chose to not be seeded because
snipe-it heavily builds on those table.
Seed Categories, because it is very common and goot to have, also.
2015-02-25 08:47:05 +01:00
Tamás Roncsák 18f96bb20a hopefully this sets that motherfucka executable 2015-02-25 08:17:56 +01:00
Tamás Roncsák da28036297 Revert "remove Bitdeli badge"
This reverts commit 474731d1a3.
2015-02-25 08:04:04 +01:00
Tamás Roncsák 474731d1a3 remove Bitdeli badge 2015-02-25 08:03:04 +01:00
Tamás Roncsák f59db3c741 Revert "delete and file mode"
This reverts commit ecfc0e0e2b.
2015-02-25 08:02:14 +01:00
Tamás Roncsák ecfc0e0e2b delete and file mode
Delete bitdeli badge and add executable mode
2015-02-25 07:54:13 +01:00
Tamás Roncsák 8ac16e53c7 Revert "remove Bitdeli badge"
This reverts commit 5d81c04b3d.
2015-02-25 07:53:11 +01:00
Tamás Roncsák 5d81c04b3d remove Bitdeli badge
It is not on origin source
2015-02-25 07:48:12 +01:00
Tamás Roncsák 037a8bee2f Merge branch 'develop' of https://github.com/roncsak/snipe-it into develop 2015-02-25 07:46:17 +01:00
snipe e12bbbc171 Clearly, it's time for me to take a break 2015-02-24 22:21:39 -08:00
snipe 31e2299385 Herp derp broke the build 2015-02-24 22:19:14 -08:00
snipe 097bb38a23 Fixes #163 - accept acceptance + eula
TODO: Language strings, check that the accepting user is the one that should be allowed to accept.
2015-02-24 22:15:36 -08:00
snipe 73ae41f3a9 Merge remote-tracking branch 'origin/develop' 2015-02-24 17:52:14 -08:00
snipe 4340d50071 Stil allow new user creation 2015-02-24 12:06:00 -08:00
snipe de94311c47 Add ability to prevent passwords from being changed 2015-02-24 11:57:46 -08:00
snipe cb51dc45b6 Extend report to 60 days 2015-02-24 03:49:22 -08:00
snipe dee4baf7dd Updated language strings 2015-02-24 02:11:10 -08:00
snipe e04ac89c5a Added expiring warrantee alerts 2015-02-24 02:07:33 -08:00
Tamás Roncsák 3fa1bc5c3f Revert "Update README.md"
This reverts commit c41f4e9203.
2015-02-24 09:57:13 +01:00
Tamás Roncsák 254f4b5f3e Revert "Revert "Revert "Enhance further install without dummy data"""
This reverts commit ae381576aa.
2015-02-24 09:56:23 +01:00
Tamás Roncsák 132578bfe3 Revert "set filemode"
This reverts commit c2a1e39b54.
2015-02-24 09:32:31 +01:00
Tamás Roncsák c2a1e39b54 set filemode 2015-02-24 09:29:58 +01:00
Tamás Roncsák c41f4e9203 Update README.md 2015-02-24 08:45:38 +01:00
Tamás Roncsák c54615a85f Update CONTRIBUTING.md 2015-02-24 08:44:40 +01:00
Tamás Roncsák a7d953f923 Merge remote-tracking branch 'upstream/develop' into develop 2015-02-24 08:24:04 +01:00
snipe 35cf5b3d60 Fixes #423 2015-02-23 18:46:04 -08:00
Tamás Roncsák ae381576aa Revert "Revert "Enhance further install without dummy data""
This reverts commit b28bcce5f1.
2015-02-23 11:52:09 +01:00
Tamás Roncsák b28bcce5f1 Revert "Enhance further install without dummy data"
This reverts commit 7d7059504e.
2015-02-23 11:50:49 +01:00
Tamás Roncsák 7d7059504e Enhance further install without dummy data
Use --force to prevent user unnecessary user interactions.
Seed StatusLabels even when dummy datas chose to not be seeded because
snipe-it heavily builds on those table.
Seed Categories, because it is very common and goot to have, also.
2015-02-23 09:39:42 +01:00
Tamás Roncsák e04fb70aa3 Merge remote-tracking branch 'upstream/master' into develop 2015-02-23 08:25:41 +01:00
snipe 7f1489a701 Updated language strings for logo/header color 2015-02-19 18:15:55 -08:00
snipe 720c36e433 Merge remote-tracking branch 'origin/develop' 2015-02-19 16:00:35 -08:00
snipe 0cceacd17d Merge pull request #547 from madd15/patch-3
Fix activate for strict db
2015-02-19 16:00:17 -08:00
snipe f9ad8d8aa5 Merge remote-tracking branch 'origin/develop' 2015-02-19 15:59:25 -08:00
snipe 253c402f3d Ignore logos 2015-02-19 15:59:18 -08:00
madd15 083cb1b5ec Fix activate for strict db 2015-02-20 10:26:46 +10:30
snipe 8b3e22b58e Fixes #546 - only insert data if values exist 2015-02-19 15:50:53 -08:00
snipe ad9e7f1d9e Cleaned up settings form for nicer display 2015-02-19 15:34:55 -08:00
snipe 5887cce2c5 Merge pull request #545 from madd15/patch-2
Fix #541 - Headers not being skipped if checked
2015-02-19 15:25:39 -08:00
madd15 f85061f988 Fix #541 - Headers not being skipped if checked 2015-02-20 09:54:55 +10:30
snipe f8e12cabd4 Fixes #476 - added logo upload and header color 2015-02-19 15:14:50 -08:00
snipe 348e996e31 Merge pull request #543 from splaer/bug-1
Fixed AutoIncrement Bug with no Assets and cleaned up logic
2015-02-19 12:43:31 -08:00
Splaer 70ae59ed62 Fixed a bug when no assets are in table that the autoincrement method blows up. Also optimzed the logic to get max id instead of popping top off creation date. 2015-02-19 12:52:27 -05:00
snipe 6c4d661a85 Merge pull request #540 from madd15/patch-2
#539 - Allow checked out asset in requestable
2015-02-18 13:51:48 -08:00
madd15 ae104293da #539 - Allow checked out asset in requestable 2015-02-19 08:20:27 +10:30
snipe c07907833c Updated laguage strings 2015-02-18 13:33:05 -08:00
snipe 7360e52f61 Updated composer lock 2015-02-18 13:16:09 -08:00
snipe 7d87b3384c Standardized colors for checkin/checkout in sidebar 2015-02-18 12:22:37 -08:00
snipe 30df21c7aa Fixed missing checkedout-to info on asset view 2015-02-18 10:27:41 -08:00
snipe 6bc1524783 Merge pull request #537 from roncsak/develop
Enhance installation
2015-02-18 09:52:01 -08:00
Tamás Roncsák 366fb60628 Enhance installation
Make available to install app without seeding dummy data.
2015-02-18 16:00:33 +01:00
snipe 01f11f2da4 Updated text 2015-02-18 02:56:01 -08:00
snipe f6ae35df63 Only show the "email credentials" checkbox if new user 2015-02-18 02:51:41 -08:00
snipe 87936a58fa CSV user import 2015-02-18 02:48:16 -08:00
snipe 305db59472 Merge pull request #533 from uberbrady/docker2
Docker2 (DO NOT MERGE YET)
2015-02-17 21:17:17 -08:00
Brady Wetherington c0ce1939cb Make Docker respect email configuration passed via environment. 2015-02-17 21:13:40 -08:00
snipe 879b6b8f3f Merge remote-tracking branch 'origin/develop' 2015-02-17 20:44:19 -08:00
snipe 8777a1a9f1 Updated language strings 2015-02-17 20:44:01 -08:00
snipe 43cdace9de Merge remote-tracking branch 'origin/develop' 2015-02-17 19:18:10 -08:00
snipe a04af4aead Bumped version number 2015-02-17 19:17:53 -08:00
snipe e7eec42ab8 Merge pull request #532 from uberbrady/depreciation_refactor
Depreciation refactor
2015-02-17 18:55:52 -08:00
Brady Wetherington 063e5c407c Fixed the depreciation report, fixes to calculate current depreciated
value (which were only used there). Additional fixes and refactoring
around Depreciable, in terms of how assets get depreciation via models,
and licenses get depreciation directly.
2015-02-17 18:51:13 -08:00
Brady Wetherington 3ba02b65fb Oops - Assets get their Depreciation from their *model* - wheras
Licenses have a Depreciation directly associated with them. So I
pulled the Depreciation relationship out of Depreciable so that both
Assets and Licenses could pull their depreciations in their associated
ways. I could've done this with an inheritance call, but that seems
a bit much (and unnecessarily confusing).
2015-02-17 17:56:59 -08:00
Brady Wetherington 88dc0700f0 Make date functions work; create negative intervals for depreciation,
Also renamed "months_until_depreciation" to "time_until_depreciation"
And renamed Depreciatable to Depreciable (which is an actual word in
English.) Also a cleanup/consistency-enforcement for interval display.
2015-02-17 17:40:16 -08:00
Brady Wetherington 899e2bc9b6 Not convinved this filename is right or anything, but the shared depreciation code is here 2015-02-17 17:40:16 -08:00
Brady Wetherington 1e4071b51d First stab at cleaning up Depreciation
Conflicts:
	app/models/Asset.php

It looks like the same time I pulled depreciation out of the
Asset class, uploads were being added in. It doesn't look
like a conflict to me, but git couldn't figure it out. Oh Well.
2015-02-17 17:39:39 -08:00
Brady Wetherington f5b5f66b82 Update README.md 2015-02-17 16:36:54 -08:00
Brady Wetherington 24e72d1b56 Update README.md 2015-02-17 16:35:31 -08:00
Brady Wetherington f2922b0a44 Update README.md 2015-02-17 16:33:23 -08:00
Brady Wetherington 92a99993ea Update README.md 2015-02-17 16:30:52 -08:00
Brady Wetherington 9be159ea15 Cleaned up the docker images to shrink it; expanded docker documentation 2015-02-17 16:22:03 -08:00
snipe 38961298ed Fixes #439 - loads javascript and CSS locally 2015-02-17 15:29:57 -08:00
snipe ea6a6d098a Fixes #440 - removed unique constraint on serial 2015-02-17 14:15:22 -08:00
Brady Wetherington 3ee9e93349 Note about key:generate 2015-02-16 21:27:23 -08:00
Brady Wetherington c9b51bface Docker kinda-sorta working, and documentation 2015-02-16 21:27:23 -08:00
snipe 1f0f9c2441 Merge remote-tracking branch 'origin/develop' 2015-02-16 20:50:41 -08:00
snipe d4fbea3571 Merge remote-tracking branch 'origin/develop' 2015-02-16 20:49:55 -08:00
snipe b32d74de57 Fixed seeder with duplicate ID 2015-02-16 19:56:11 -08:00
snipe 4e4144ea74 Fixed blade reference 2015-02-16 19:43:22 -08:00
snipe 7b331b26d3 Language string for nothing updated on bulk update 2015-02-16 18:27:27 -08:00
snipe e02bea4275 Fixes #457 - added bulk options to hardware 2015-02-16 18:21:29 -08:00
snipe 24f5cdc743 Fixes #523 - added file uploads to assets 2015-02-16 13:49:51 -08:00
snipe 08ee02d0cd Fixes #525 - added serial to asset model UI 2015-02-16 13:12:57 -08:00
snipe ec1ab6913e Merged layout blades for unified nav 2015-02-16 12:55:32 -08:00
snipe f40bb7b8b3 Fixes #520 postal code requirement 2015-02-13 11:40:28 -08:00
snipe 17258b73a1 Fixes #520 - state no longer required 2015-02-13 11:37:47 -08:00
snipe 4a5007264e Fixed mac address not showing 2015-02-12 21:34:20 -08:00
snipe bd01b11f4f Merge pull request #519 from madd15/patch-2
Fix #517 - User Requestable Assets
2015-02-12 13:21:48 -08:00
madd15 064c0211db Fix #517 - User Requestable Assets 2015-02-13 07:50:47 +10:30
snipe 4cb931a93b Merge remote-tracking branch 'origin/develop' 2015-02-12 12:50:15 -08:00
snipe 3df8243d80 Updated composer to include mockery 2015-02-12 12:49:57 -08:00
snipe f57c61dd4d Possible fix for #518 - license count issue 2015-02-12 12:25:22 -08:00
snipe 7a4f115cb3 Merge remote-tracking branch 'origin/develop' 2015-02-11 22:57:47 -08:00
snipe 58ff929d71 Fixes error when no model present because new asset 2015-02-11 22:57:22 -08:00
snipe 49f25a23a9 Merge pull request #516 from splaer/fix-475
Fix 475
2015-02-11 21:42:33 -08:00
Splaer bcf75073ec Update style
updated the scss as well until that starts getting auto compiled
2015-02-12 00:38:58 -05:00
snipe 6908456d09 Merge remote-tracking branch 'origin/develop' 2015-02-11 21:27:56 -08:00
snipe c26369f8cc Added spacing between buttons 2015-02-11 21:21:19 -08:00
snipe 56e090f3e7 Unlink username if they've been deleted 2015-02-11 21:19:18 -08:00
Splaer 00f7717142 Fix #475 and styling
Cleaned up styling to break lines with larger notes on hardware view
and asset view. Changed column type to text.
2015-02-11 23:38:59 -05:00
snipe 823e0c8562 Merge remote-tracking branch 'origin/develop' 2015-02-11 16:55:29 -08:00
snipe 95be7908f8 New language strings 2015-02-11 16:51:16 -08:00
snipe c660c71556 Added MAC address to view 2015-02-11 16:43:46 -08:00
snipe fbf03b225d Fixes #509 - added MAC address as model option 2015-02-11 16:37:24 -08:00
snipe a5f4c51ab2 Merge remote-tracking branch 'origin/develop' 2015-02-11 14:31:25 -08:00
snipe 89dce89035 Moved expiration date below purchase date 2015-02-11 14:02:34 -08:00
snipe 8cdd215614 Fixed intenting 2015-02-11 14:02:21 -08:00
snipe 342a8b81af Fix for error when asset has null status 2015-02-11 13:51:28 -08:00
snipe cd5a352961 Fix for wrong math on remaining licenses when assigned to an asset 2015-02-11 13:39:08 -08:00
snipe a451fa1fa6 Merge remote-tracking branch 'origin/develop' 2015-02-11 12:49:39 -08:00
snipe e343c157c5 Fixed naming conflict for requestable 2015-02-11 12:49:21 -08:00
snipe 37fc216c5a Additional language strings 2015-02-11 05:19:23 -08:00
snipe 96feb84fd4 Merge remote-tracking branch 'origin/develop' 2015-02-11 04:59:35 -08:00
snipe 80e10c4c98 Fixes #387 - sortable asset view by manufacturer 2015-02-11 04:57:59 -08:00
snipe 35a133bbf9 Fixes #382 - allow admins to restore deleted assets 2015-02-11 04:44:39 -08:00
snipe 0adbce77f9 Merge remote-tracking branch 'origin/develop' 2015-02-11 03:52:08 -08:00
snipe c89be34503 Fixes #329 and #454 - added category asset view 2015-02-11 03:51:01 -08:00
snipe 9c3873e712 Category asset view 2015-02-11 03:50:16 -08:00
snipe 4f6eeda368 View asset for requests 2015-02-11 03:49:33 -08:00
snipe f690cd6305 Requests table 2015-02-11 03:49:13 -08:00
snipe 447ed3518e Merge remote-tracking branch 'origin/develop' 2015-02-11 00:56:17 -08:00
snipe d9d99b2223 No trashed 2015-02-11 00:44:22 -08:00
snipe 2b99adba5f Do not include trashed for user view 2015-02-11 00:43:50 -08:00
snipe 11aa98d389 Removed extra comments 2015-02-11 00:43:38 -08:00
snipe 591f97f149 Mark unassigned if deleted 2015-02-11 00:43:25 -08:00
snipe ef696f8207 Update licenses to assigned to null if deleted 2015-02-11 00:29:16 -08:00
snipe ab1c921443 Requestable assets views and controllers 2015-02-10 23:55:06 -08:00
snipe 7b165a12e0 Fixes #508 - compacted UI for licenses overview 2015-02-10 21:52:11 -08:00
snipe 6f2f7cc214 Updated language strings 2015-02-10 20:52:22 -08:00
snipe 89729bfa51 Removed invalid comments 2015-02-10 20:47:24 -08:00
snipe 34032c73ce Fixed licenses so null instead of 0 2015-02-10 20:47:11 -08:00
snipe f72b385790 Fix licenses so null instead of 0 2015-02-10 20:46:58 -08:00
snipe d541ded862 Merge remote-tracking branch 'origin/develop'
Conflicts:
	app/views/backend/layouts/default.blade.php
2015-02-10 19:47:43 -08:00
snipe 8cc95a3b9b Merge pull request #507 from madd15/patch-2
Added Archived Lang
2015-02-10 19:19:03 -08:00
snipe bf9a825095 Removed extraneous ID 2015-02-10 19:18:15 -08:00
madd15 5c92be5190 Added Archived Lang 2015-02-11 13:45:04 +10:30
madd15 fa9cf35ff5 Added Archived Lang 2015-02-11 13:43:19 +10:30
snipe f36029a34a Fixed migration for to set assigned_to to null per #506 2015-02-10 18:41:45 -08:00
snipe c2e532e32e Fixed language file for status label messages 2015-02-10 18:33:19 -08:00
snipe 9bcc9a7ed1 Check not deleted 2015-02-10 18:27:00 -08:00
snipe 7715731c4a Fix count in header 2015-02-10 18:26:35 -08:00
snipe a2178392e6 Fixed seeder 2015-02-10 18:09:36 -08:00
snipe 0aa4d2a3db Added undeployable as allowed validation type 2015-02-10 18:06:55 -08:00
snipe 5867c60410 Fixed scope chaining on assigned_to 2015-02-10 17:58:47 -08:00
snipe 268fb98dbb Indented for better readibility 2015-02-10 17:41:42 -08:00
snipe 5f1227d0fa Removed stray chars 2015-02-10 17:41:27 -08:00
snipe 1b93c5538a Get trashed for admins 2015-02-10 17:41:19 -08:00
snipe 3645f85731 Typo :( 2015-02-10 17:23:25 -08:00
snipe 0b02b1631b Merge pull request #505 from madd15/patch-1
Fix RTD query to not display checked out asset
2015-02-10 17:20:20 -08:00
madd15 31f4ba88f6 Fix RTD query to not display checked out asset 2015-02-11 11:49:28 +10:30
snipe c06a4d4118 Fixed wonky checkin/checkout buttons 2015-02-10 17:17:33 -08:00
snipe dbc93de6b3 Fixes checkin button on view 2015-02-10 17:11:40 -08:00
snipe 2277b6ee69 Fixed checkout logic for new assigned_to 2015-02-10 17:04:15 -08:00
snipe b36d73a4bb Missing checkin buttons on index 2015-02-10 17:03:13 -08:00
snipe 283d2855d7 Added user_id to status label migration for strict mode 2015-02-10 16:22:02 -08:00
snipe f175f52530 Fixed spacer in sidenav for list all 2015-02-10 16:08:54 -08:00
snipe e29da5521d Moved location of archived link 2015-02-10 16:08:02 -08:00
snipe 1db1819a56 Added Archived as view for filter 2015-02-10 16:06:33 -08:00
snipe aef3a734a3 Small fix for pending status 2015-02-10 16:06:24 -08:00
snipe d2438f9fdb Fixes #502 - normalized statuses 2015-02-10 15:57:19 -08:00
snipe 53d000e2d0 Migration to correct previous assigned_to=0 issue 2015-02-09 20:29:48 -08:00
snipe addfcd4bc5 Fix RTD bug 2015-02-09 20:02:40 -08:00
snipe b360736b77 Fixes #484 2015-02-09 19:26:57 -08:00
snipe 2bae77b3af Removed extranneous text field 2015-02-09 16:50:12 -08:00
snipe c1600a33db Fixes #499 - timestamps in asset logs 2015-02-09 16:47:36 -08:00
snipe 5d3b84e01a Misc additional assets 2015-02-09 16:45:01 -08:00
snipe 7ed098de67 Merge branch 'develop' of github.com:snipe/snipe-it into develop 2015-02-09 00:48:19 -08:00
snipe 22af5561b2 Updated translation strings 2015-02-09 00:48:03 -08:00
snipe 7009b24748 Merge pull request #498 from snipe/fixes/477
Fixes #477 - wrong sidebar on asset view
2015-02-09 00:35:04 -08:00
snipe 389c27b2e6 Fixes #477 - wrong sidebar on asset view 2015-02-09 00:34:29 -08:00
snipe a61e913824 Squashed commit of the following:
commit 95ae26eb2a
Author: snipe <snipe@snipe.net>
Date:   Sun Feb 8 16:21:33 2015 -0800

    Updated docs location

commit cfebe11755
Author: snipe <snipe@snipe.net>
Date:   Sun Feb 8 16:20:36 2015 -0800

    Updated docs for 4.2

commit d86b5aa613
Author: snipe <snipe@snipe.net>
Date:   Sun Feb 8 16:20:24 2015 -0800

    Bumped version
2015-02-08 16:22:12 -08:00
snipe 95ae26eb2a Updated docs location 2015-02-08 16:21:33 -08:00
snipe cfebe11755 Updated docs for 4.2 2015-02-08 16:20:36 -08:00
snipe d86b5aa613 Bumped version 2015-02-08 16:20:24 -08:00
snipe c255de7fc0 Merge remote-tracking branch 'origin/develop' 2015-02-08 16:18:09 -08:00
snipe 42d5d8db80 Updated language files 2015-02-08 16:17:45 -08:00
snipe 91bf9763d2 Merge remote-tracking branch 'origin/develop' 2015-02-08 16:13:25 -08:00
snipe 9c66dd5431 Added gitignore 2015-02-08 16:13:10 -08:00
snipe 614396a15b Utilize query scopes for cleaner controllers 2015-02-08 16:02:35 -08:00
snipe cfe0472ea2 New language strings for file uploads 2015-02-06 22:18:57 -08:00
snipe d20b5136b8 Nicer display if no files have been uploaded 2015-02-06 22:02:52 -08:00
snipe 29f5b7c5e3 Fixed datetime 2015-02-06 21:54:44 -08:00
snipe 140bd137a4 Minor display fixes 2015-02-06 21:54:36 -08:00
snipe 3a9cb9ba7a Display uploaded files 2015-02-06 21:31:16 -08:00
snipe 6d0828bfe5 Delete file interface and routes 2015-02-06 20:42:40 -08:00
snipe 51a7752771 Moved cancel text to buttons language file 2015-02-06 18:52:09 -08:00
snipe a8681225f5 Added language for add button 2015-02-06 18:46:20 -08:00
snipe 26a59afa44 Basic upload display and form 2015-02-06 18:43:15 -08:00
snipe e22ce0d377 Changes added_on to created_at 2015-02-06 18:43:04 -08:00
snipe 2fbef7f561 Updated field name for asset log 2015-02-06 18:42:48 -08:00
snipe 2678611c79 Included doctrine for field renaming 2015-02-06 18:42:36 -08:00
snipe 416cd236d2 Updated to new fieldname 2015-02-06 18:42:24 -08:00
snipe 4936a5914f Folder for private uploads 2015-02-06 18:41:56 -08:00
snipe 36fce27297 Added uploads methods 2015-02-06 18:41:47 -08:00
snipe 4b2e45c5f2 Added uploads methods 2015-02-06 18:41:35 -08:00
snipe 11f46474ab New file upload language 2015-02-06 18:41:24 -08:00
snipe b0d52a4158 Updated field name 2015-02-06 18:41:16 -08:00
snipe 7b4845c255 Added soft delete to asset log 2015-02-06 18:40:58 -08:00
snipe 223ba349ea Minor change to comment for clarify 2015-02-06 16:57:15 -08:00
snipe feeef4b66c Fix for asset log incorrectly using soft deletes 2015-02-06 14:54:13 -08:00
snipe 42f8a35078 Additional translation files 2015-02-05 17:08:20 -08:00
snipe 0128505213 Overwriting Smfony YAML deps 2015-02-05 15:50:32 -08:00
snipe 06bee68cd2 Testing config for travis 2015-02-05 15:34:26 -08:00
snipe c255edaf61 More travis fixes 2015-02-05 15:30:51 -08:00
snipe 7f0e21d50c Changes to make travis build pass 2015-02-05 15:02:57 -08:00
snipe 1aeb4de0fa Possible fix for #491 - solving for giticide on package dep 2015-02-05 14:43:01 -08:00
snipe bff33cb7f5 removed old package dep 2015-02-05 14:10:25 -08:00
snipe 5695815360 Missed one --force 2015-02-04 16:22:45 -08:00
snipe e67ba8a743 Fix reporting error on depreciation 2015-02-04 16:13:11 -08:00
snipe 3669ab2ae8 Updated travis for forced migration in production 2015-02-04 16:07:41 -08:00
snipe e2ee954592 Updated composer and composer.lock for 4.2 2015-02-04 15:50:54 -08:00
snipe b4750f016d Added new 4.2 SoftDeletingTrait 2015-02-04 15:50:40 -08:00
snipe 7069d9c6b1 Added new cipher to config 2015-02-04 15:50:07 -08:00
snipe 8e0d774023 Added strict option in database config 2015-02-04 15:49:50 -08:00
snipe 394836821c Added catehory nav item in sidebar 2015-02-04 15:01:36 -08:00
snipe a1ac7f8676 Removed cruft 2015-02-04 15:01:08 -08:00
snipe cd338d2a70 Fixes #483 - line breaks in notes on view 2015-02-04 10:21:02 -08:00
snipe 4dc81ce65f Resolves #478 - redirects non-reporting users to view assets page 2015-02-04 09:31:01 -08:00
snipe f5efc368a5 Fixes #487 - maintained and purchase order in strict mode 2015-02-04 08:51:03 -08:00
snipe 1db806f8b2 Fixes #488 - longer user jobtitle 2015-02-04 07:59:45 -08:00
snipe b3af102d22 Fixed safe mode issue with license seeder 2015-02-04 07:49:28 -08:00
snipe 2b86f14e30 Possible fix for #484 - fullname issue 2015-02-01 14:33:58 -08:00
snipe 3f0e494276 Updated contributing info 2015-01-23 15:39:03 -08:00
snipe a4bac03692 Increment version number 2015-01-23 15:38:48 -08:00
snipe 950567e9d6 Fixes issue related to #471 - assigning to user ID 0 causes erro 2015-01-23 15:38:39 -08:00
snipe dede09e9c5 Merge remote-tracking branch 'origin/develop' 2015-01-22 15:41:36 -08:00
snipe 3787a3f4ba Fixed language strings for incrementing IDs 2015-01-22 15:34:19 -08:00
snipe 95141d49ba Fixes #432 - add model name to checkout 2015-01-22 15:20:16 -08:00
snipe d85e524680 Fixes #451 - allows spaces in state name 2015-01-22 14:29:53 -08:00
snipe 4a77dee79c Fixes #447 - added asset log entry on save 2015-01-22 14:16:09 -08:00
snipe 6fba41e026 Updated gitignore to ignore crowdin 2015-01-22 13:42:32 -08:00
snipe f39922f51f Merge remote-tracking branch 'origin/develop'
Conflicts:
	CONTRIBUTING.md
2015-01-22 13:31:19 -08:00
snipe 53085983f8 Added UK English language file 2015-01-22 13:24:01 -08:00
snipe 4a2ac03ace New Spanish strings 2015-01-22 13:23:29 -08:00
snipe 548de1a1a2 Fixes #468 - updated ordering on license checkout 2015-01-22 13:03:07 -08:00
snipe 82560b1098 Updated language files with new strings 2015-01-22 13:00:38 -08:00
snipe 3c141e8f50 Fixes #467 2015-01-22 12:56:13 -08:00
snipe 5e496672c6 Fixes #469 2015-01-22 12:54:22 -08:00
snipe 4887c53f25 Merge pull request #452 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2015-01-12 15:16:57 -08:00
The Gitter Badger 2b79a61d65 Added Gitter badge 2015-01-12 23:15:02 +00:00
snipe 5268c579e2 Update CONTRIBUTING.md 2015-01-08 17:34:23 -08:00
snipe 21448ea8e6 Update CONTRIBUTING.md 2015-01-08 17:33:49 -08:00
snipe 778a7bb18c Additional translations 2015-01-08 17:24:13 -08:00
snipe 685881cf27 Too many thanks (too many thanks) 2015-01-08 17:19:02 -08:00
snipe cf4b80bbd5 Updated contributing guidelines 2015-01-08 17:18:19 -08:00
snipe 5c98dae57d Merge branch 'develop' 2015-01-08 11:34:19 -08:00
snipe 5a6139fb64 Merge pull request #391 from bitdeli-chef/master
Add a Bitdeli Badge to README
2014-11-22 22:57:29 -05:00
Bitdeli Chef 0fb2728e3f Add a Bitdeli badge to README 2014-11-23 04:06:26 +00:00
2277 changed files with 100275 additions and 20593 deletions
-37
View File
@@ -1,37 +0,0 @@
ls
pwd
cd app
ls
cd views/
cd backend/
ls
cd users/
ls
vi view.blade.php
ls -alF
cd
pwd
ls -alF
pwd
cd app
ls
cd views/
cd backend/
cd users/
ls
ls -alF
chown snipeitftp view.blade.php
sudo chown snipeitftp view.blade.php
pwd
ls
vi view.blade.php
set noswapfile
set nobackup
vi view.blade.php
touch delete.me
vi delete.me
ls
ls -alF
touch view.blade.php
touch index.blade.php
vi view.blade.php
+5
View File
@@ -0,0 +1,5 @@
.git
.dockerignore
app/storage/logs/*
app/storage/views/*
vendor/*
+14 -1
View File
@@ -7,8 +7,10 @@ composer.phar
/app/database/*.sqlite
/app/storage/meta/services.json
/app/config/*/mail.php
/app/config/*/session.php
/app/config/*/database.php
/app/config/*/app.php
/app/config/*/ldap.php
public/packages/*
public/uploads/models/*
public/uploads/avatars/*
@@ -16,4 +18,15 @@ public/uploads/avatars/*
/app/storage/logs/*
/app/storage/debugbar/
/bin/
.idea
.idea
crowdin.yaml
public/uploads/logo.gif
public/uploads/logo.png
.siteflow
public/assets/.siteflow
app/config/local/session.php
.couscous
app/storage/dumps/*
tests/_support/_generated/*
tests/_data/scenarios
public/uploads/assets/*
+28 -10
View File
@@ -1,3 +1,8 @@
addons:
hosts:
- localhost
sudo: false
# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php
@@ -9,26 +14,39 @@ php:
# optionally specify a list of environments, for example to test different RDBMS
env:
- DB=mysql
- DB=mysql APP_ENV=travis-ci
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_laravel;" -utravis; fi
- hostname
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS snipeit_unit;" -utravis; fi
- curl -s http://getcomposer.org/installer | php
- cp app/config/production/database.example.php app/config/database.php
- cp app/config/production/mail.example.php app/config/mail.php
- composer install --prefer-source --no-interaction --no-dev
- cp app/config/travis-ci/app.example.php app/config/travis-ci/app.php
- cp app/config/travis-ci/database.example.php app/config/travis-ci/database.php
- cp app/config/travis-ci/mail.example.php app/config/travis-ci/mail.php
- composer self-update
- composer install --prefer-source --no-interaction
- php artisan key:generate
- php artisan migrate:install
- php artisan migrate --package cartalyst/sentry
- php artisan migrate
- php artisan db:seed
- php artisan migrate:install --no-interaction -vvv
- php artisan migrate --package cartalyst/sentry --no-interaction -vvv
- php artisan migrate --no-interaction -vvv
- php artisan db:seed --no-interaction -vvv
- ./vendor/bin/codecept build
- APP_ENV=travis-ci php artisan serve --port=8007 &
- sleep 5
# omitting "script:" will default to phpunit
# use the $DB env variable to determine the phpunit.xml to use
script: phpunit
script: ./vendor/bin/codecept run --env travis-ci -vvv
# configure notifications (email, IRC, campfire etc)
notifications:
email: false
slack:
secure: vv9we1RxB9RsrMbomSdq6D7vz/okobw87pEkgIZjB+hj1QpQ2by90gsPsOa+NgsJEFaEP7e4KlT6SH8kK+zhbmuKaUd3d1//XdcancE22LZXi6tkiB5yuR/Jhhb1LLDqyGJTB4D92hMnnCPiUjpxNA3r437ttNeYRdYIEEP3drA=
webhooks:
urls:
- https://webhooks.gitter.im/e/5e136eb0c1965f3918d0
on_success: change # options: [always|never|change] default: always
on_failure: change # options: [always|never|change] default: always
on_start: false # default: false
+802 -146
View File
@@ -1,182 +1,698 @@
### v1.1 - Released Nov 06, 2014 02:16:26
* <a href="http://github.com/snipe/snipe-it/commit/fafd03f00f49cb9ffe81d50aa9ca3d1f1fa1d043">view</a> &bull; Added DB Prefix to Migrations
* <a href="http://github.com/snipe/snipe-it/commit/309772e67d62989f1f60141a4a10d724a44c6baa">view</a> &bull; Fixed operator for setting bool display
* <a href="http://github.com/snipe/snipe-it/commit/22f81912e416cfe1227a08b5d8b6323e32e1ef36">view</a> &bull; Fixes #299
* <a href="http://github.com/snipe/snipe-it/commit/86b7b6946f1e1bd404127e228c615e4abe0b20fb">view</a> &bull; Fixes #316 - added model name back to view
* <a href="http://github.com/snipe/snipe-it/commit/9e85dcb9fcb4cc932ecddd23caa6b51e83110543">view</a> &bull; Fixes #315 - add EOL as display option in settings (run migrations)
* <a href="http://github.com/snipe/snipe-it/commit/ee35948980c22f9256241c02d7febd90275f6229">view</a> &bull; fix div issues
* <a href="http://github.com/snipe/snipe-it/commit/0022389463e251e73402450cfbc280cb05633bd1">view</a> &bull; Fix dropdown menu position
* <a href="http://github.com/snipe/snipe-it/commit/343798d241172707145ef365445062db9bb6b99a">view</a> &bull; Merge pull request #322 from madd15/fix-js-delete-asset
* <a href="http://github.com/snipe/snipe-it/commit/1078dbf5c5f6a5bec1a2ef864cebfcc7883d31e6">view</a> &bull; Fixes #324
* <a href="http://github.com/snipe/snipe-it/commit/6b2d3efe3e76429c9c2f5de78f04c4f7e2748a3d">view</a> &bull; Fixes #237 - reporting-only group
* <a href="http://github.com/snipe/snipe-it/commit/e04cc806d9209b54a1833172ebb66ab55b5f0c06">view</a> &bull; Fixes #327
### v1.0 - Released Oct 16, 2014 09:46:47
* <a href="http://github.com/snipe/snipe-it/commit/a4b220d6c31c97f6504023f0b52527825a4cd897">view</a> &bull; Fixed #191 - allow admins to assign a user during asset creation
* <a href="http://github.com/snipe/snipe-it/commit/dc1033025a0bc1b2d657e06c89058c3ab95f2c59">view</a> &bull; Fixed #151 - more complete translations
* <a href="http://github.com/snipe/snipe-it/commit/56d619b218794b43d8c6b182c89c75f83af9dcd9">view</a> &bull; Fixed missing language string
* <a href="http://github.com/snipe/snipe-it/commit/69fca5d1eda0e5f26d2085f7eebc08fafd84a3ae">view</a> &bull; Fixed #58
* <a href="http://github.com/snipe/snipe-it/commit/8197e6174e9f12bcfddd94c6bf606ee36e6801bf">view</a> &bull; Fixes #200
* <a href="http://github.com/snipe/snipe-it/commit/cb8369e9de96aaf1cf9108e22f4038fa6486b881">view</a> &bull; Initial QA Patch to fix errors Add License Add Asset Show Deleted Users License Assign
* <a href="http://github.com/snipe/snipe-it/commit/62a3ed671bbd957075563933f49e8a5445042737">view</a> &bull; DB migration, layout and clone fixes
* <a href="http://github.com/snipe/snipe-it/commit/9ccc7d756f9361757eafc1dce9684ee9f5ecc1c3">view</a> &bull; A0.4.2: Added asset, license, user, model cloning and fixed some bugs.
* <a href="http://github.com/snipe/snipe-it/commit/652f1c746c4757dce9d33d7bd90a9357822c4656">view</a> &bull; Fixes Travis CI build
* <a href="http://github.com/snipe/snipe-it/commit/363d084bd623f778cd72ca7d385a4fb2f67ef474">view</a> &bull; Fixed DB name in travis CI
* <a href="http://github.com/snipe/snipe-it/commit/49c5607e1c8a82a3111123ad84b537644546ebb3">view</a> &bull; Fixes #222
* <a href="http://github.com/snipe/snipe-it/commit/96e40d72b9ac3f74b94b0e39b6f296f0f0b2a1f4">view</a> &bull; fix typo: artisand -> artisan
* <a href="http://github.com/snipe/snipe-it/commit/e978038cc044f60c2eca71b6319063009a57886f">view</a> &bull; Merge pull request #234 from burlito/typo-fix
* <a href="http://github.com/snipe/snipe-it/commit/a829fcf52f933d087c3776993b42311ec9a8988e">view</a> &bull; fix: Use the old asset tag when cloning
* <a href="http://github.com/snipe/snipe-it/commit/ee7d9bec7082dc2e60a4797dea84a0b7443c8090">view</a> &bull; Fixes #279 - QR checkbox not staying checked
* <a href="http://github.com/snipe/snipe-it/commit/bf1e07555160ede517d41f649d6b1d0911f89dd2">view</a> &bull; Fixes #87 - made datatables responsive
### v0.3.11-alpha - Released Jul 19, 2014 05:16:53
### v2.1.0-pre - Released Dec 31, 2015 12:32:16
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/ac4c905c42d920d2cf8455d644f4c65332a81d0d">view</a> &bull; Fixed #140
* <a href="http://github.com/snipe/snipe-it/commit/4a13cded607415d749151cef495332c48c58cf86">view</a> &bull; Fixed path for Travis composer
* <a href="http://github.com/snipe/snipe-it/commit/ddf946ad5eb6dd8480eeaa709f82af75e0c61444">view</a> &bull; Tried to fix failing build caused by travis composer
* <a href="http://github.com/snipe/snipe-it/commit/3a99136f73ec5589c9b9e0bae29a16e6418f62a7">view</a> &bull; More documentation fixes
* <a href="http://github.com/snipe/snipe-it/commit/989ce59a5b63eea0e25a2bb7917b44c14d0f6235">view</a> &bull; Fixes #1399 - Import LDAP config into database
* <a href="http://github.com/snipe/snipe-it/commit/3bbcbf5f47e95ef031d521ff840a0ba7197356ed">view</a> &bull; Merge branch 'hotfixes/ldap_settings' into develop
* <a href="http://github.com/snipe/snipe-it/commit/b925c5766f15d678702ad2ae245cc76a66b235ec">view</a> &bull; Set company_id to null if no logged in user to fix seeder
* <a href="http://github.com/snipe/snipe-it/commit/078750726fd5f1f2d8ea35e25b366a95d15d7075">view</a> &bull; Set default value for company_id to fix seeder
* <a href="http://github.com/snipe/snipe-it/commit/beeb28bf09a36604820ae111b3e171aec3746444">view</a> &bull; Fix routes for custom fields, fix admin access. Helps with #1397
* <a href="http://github.com/snipe/snipe-it/commit/418be7f5dee1224526bf9037cc6d3ab464cacca2">view</a> &bull; Fix to adding same custom field twice. Helps with #1397. Requires PR #1408 to be merged first.
* <a href="http://github.com/snipe/snipe-it/commit/2accfab79ede9fd3905d0ed383b5a50999340944">view</a> &bull; Fixes #1413 - wrong link for manufacturers delete
* <a href="http://github.com/snipe/snipe-it/commit/a44c56c93713a8de20981e0a876b579b5845f6ff">view</a> &bull; Merge branch 'hotfixes/fix_1413' into develop
* <a href="http://github.com/snipe/snipe-it/commit/fc06caded5c6d8c2554146f986752ad1fe2e1e5a">view</a> &bull; Fixes #1406 - Fixes link to suppliers delete
* <a href="http://github.com/snipe/snipe-it/commit/19820db0cc41086971c9458dc5c8f0ca37a90777">view</a> &bull; Fixes #1406 - Fixes link to suppliers delete
* <a href="http://github.com/snipe/snipe-it/commit/36ecf3032f0bd9e37054898912469c6efd83529a">view</a> &bull; Fixes #1402 - remoe warranty date from EOL calc
* <a href="http://github.com/snipe/snipe-it/commit/8158c12242b5f2f37488a5db9cffefd0b5ec52ef">view</a> &bull; Merge branch 'hotfixes/EOL' into develop
* <a href="http://github.com/snipe/snipe-it/commit/9b46a5b0f6f19543d4799dd88673695445317650">view</a> &bull; Fixes #1403 - hide checkout on asset model listing assets when nt deployable
* <a href="http://github.com/snipe/snipe-it/commit/62fe4b8cd391cadf690be4a27ec4bd7eea017165">view</a> &bull; Merge branch 'hotfixes/1403' into develop
* <a href="http://github.com/snipe/snipe-it/commit/bb83a1470744fe94fa8793f6b1af3bfee8613042">view</a> &bull; Fix incorrect routes for update and delete
* <a href="http://github.com/snipe/snipe-it/commit/e4ceddd6ce246d5864b075a1dd0c1f891ef2f8b1">view</a> &bull; Fix for merge conflict on routes
* <a href="http://github.com/snipe/snipe-it/commit/bbdb576519ab8f73a24ca6082c9172ddafdca665">view</a> &bull; Merge branch 'hotfixes/remove_fk' into develop
* <a href="http://github.com/snipe/snipe-it/commit/e8ca98a37d744a899dcd77360b9590ae99950301">view</a> &bull; Fixes issue with assets without a model (which should never happen, but can occur from imports)
* <a href="http://github.com/snipe/snipe-it/commit/82a3560f276353a2eccdb6be69f559ff9908f2c5">view</a> &bull; Merge branch 'hotfixes/image_fix' into develop
* <a href="http://github.com/snipe/snipe-it/commit/9e0f7089c46dcec72d0b24f35f2ef4ef96c6823c">view</a> &bull; Fixes #1415 - Added CSRF token to backup form
* <a href="http://github.com/snipe/snipe-it/commit/17e681ba7c72647288f0777daeaf6a96a1e72767">view</a> &bull; Merge branch 'hotfixes/backup_CSRF' into develop
* <a href="http://github.com/snipe/snipe-it/commit/74ed75dd24fbaa69589e7bb8e89f68a8fce28a66">view</a> &bull; Fixes #1426 - use Asset class for asset maintenances
* <a href="http://github.com/snipe/snipe-it/commit/e81fe52aa8b60c13d8d477db1fa6df6d6690ff0d">view</a> &bull; Merge branch 'hotfixes/asset_maintenances_create' into develop
* <a href="http://github.com/snipe/snipe-it/commit/dad492d131b2fb4c9ac83433661706addd92d623">view</a> &bull; Fixed back/cancel urls for #1397
* <a href="http://github.com/snipe/snipe-it/commit/7f46a48173c2a65f2aee5aae0af22bab3e8714f8">view</a> &bull; Attempting to fix #1430 - commented out FK drop to prevent collisions, remove FK creation for new installs
* <a href="http://github.com/snipe/snipe-it/commit/3dc79197c3140528f2443107c7f3757ede66d7c2">view</a> &bull; Fix for LDAP error if username is wrong
* <a href="http://github.com/snipe/snipe-it/commit/8cdb032a14b92b79f52514d0c806d602cc47db12">view</a> &bull; Fixes error messages, and re-filling old input on failed asset create
* <a href="http://github.com/snipe/snipe-it/commit/b41461698ddc316d80fde921a7be0d69ae4df909">view</a> &bull; Fix for error on asset create
* <a href="http://github.com/snipe/snipe-it/commit/6f8a76246ec014457452109ac07c6aa98b478996">view</a> &bull; LDAP fix for local users
* <a href="http://github.com/snipe/snipe-it/commit/7802af837b2894b04c8ad690aeb7053f632f7767">view</a> &bull; One more fix for LDAP and local users working together
* <a href="http://github.com/snipe/snipe-it/commit/be3c8e451522988bfd6f19767061a538dcc248e2">view</a> &bull; Fixes #1440 - make employee number searchable/sortable
* <a href="http://github.com/snipe/snipe-it/commit/5bed0bd7ed3415a58833218b59a81b061712671a">view</a> &bull; Fixes #1437 - set expected checkout correctly
* <a href="http://github.com/snipe/snipe-it/commit/72f3b459c5172fb30865c6d708ecd57d0ff1eee8">view</a> &bull; Merge branch 'hotfixes/user_import_company_id' into develop
* <a href="http://github.com/snipe/snipe-it/commit/599ea20d65695e3e3cd5dfd929003c3c39620968">view</a> &bull; Fixes #1449 - full link to order number
* <a href="http://github.com/snipe/snipe-it/commit/25338c00e50d854a62ee86240489cf23d178302b">view</a> &bull; Fixes #1456 - email notification when asset requested
* <a href="http://github.com/snipe/snipe-it/commit/e1837069da97f1dfcbbd0007c2eda0ddd1ee3d2e">view</a> &bull; Allow bulk model update for #1462, fixes #1442
* <a href="http://github.com/snipe/snipe-it/commit/e217d354dc3b5d078a91cff7a9d6e9ba11bd55c8">view</a> &bull; Fixed bug in strict mode for fieldsets
* <a href="http://github.com/snipe/snipe-it/commit/cac254ded6685ef1e087b803e28cd14ff93047ca">view</a> &bull; Fixes #1371 - problem saving new models with non-latin characters
* <a href="http://github.com/snipe/snipe-it/commit/5c698d7cfd4e0bb93e1c1483e41504057397a2c5">view</a> &bull; Fixes #1469 - don't require currency at model level
* <a href="http://github.com/snipe/snipe-it/commit/a68cbcf7674a315268ec082386db30199e97f211">view</a> &bull; Fixes #1472 - only fire DB seeder if the user inputs 'y'
* <a href="http://github.com/snipe/snipe-it/commit/73f0a19adbf595f82e6110dec7eb685181dc0993">view</a> &bull; Fixes #1459 - fieldset_id error if null
* <a href="http://github.com/snipe/snipe-it/commit/775ea9545824c2bf1bc55b0e7a5423dcec66caa1">view</a> &bull; Fix inability to edit models (unique constraint)
* <a href="http://github.com/snipe/snipe-it/commit/8dab50edc64a59cbdae2c424fb36678ea4852324">view</a> &bull; Fixes #1498 - better regex for characters in custom field name
* <a href="http://github.com/snipe/snipe-it/commit/eacd4ee2b09b21b465947b0acae2292cf54e1982">view</a> &bull; Fix for bad data in asset report
* <a href="http://github.com/snipe/snipe-it/commit/927c36823526e68a83e2898033fea1ebe0112b4a">view</a> &bull; Fix for weird location info in asset report
* <a href="http://github.com/snipe/snipe-it/commit/b20f4d245e39d640aac3de9b34c2c79b855f06f4">view</a> &bull; Fixes #1494 - uncommented mac_address fields
* <a href="http://github.com/snipe/snipe-it/commit/865468d0910a39d0a891de3225e383e6afd08ead">view</a> &bull; Fix for location error
* <a href="http://github.com/snipe/snipe-it/commit/ac5527e7d30c3df805302a92c3d8d48bf54c6cb5">view</a> &bull; Merge branch 'hotfixes/custom_reports_fix' into develop
* <a href="http://github.com/snipe/snipe-it/commit/f03d1cd4ccc1d47b4b6297b7a2c6bcbbfc686e87">view</a> &bull; Simplified currency display until we can fix it on a broader level
* <a href="http://github.com/snipe/snipe-it/commit/6639bc1300163f5e4c079101682b27a5ef33f8e6">view</a> &bull; Fix overwriting of username if no first/last name
* <a href="http://github.com/snipe/snipe-it/commit/3b7da8f379ca9e57a07c968bcf0917b4dae7daa4">view</a> &bull; Fix consumable count in categories. This adds new methods to Category, consumables consumablesCount and a generic count. It also refactors CatgoriesController to use the count method rather than having it determine the category type.
* <a href="http://github.com/snipe/snipe-it/commit/50be3eed4abce136af1e244402893f7cff389e3f">view</a> &bull; Fix Two issues with Asset Maintenance.
* <a href="http://github.com/snipe/snipe-it/commit/4b92cdf684cf64958bc2b1f1194fa6ad2a67dcd7">view</a> &bull; Use the same values/calculations in the view as the index. Should fix #1140 I believe
* <a href="http://github.com/snipe/snipe-it/commit/0cb3a9265e0eb46294f2bd534e672dc226ce11ca">view</a> &bull; Fix PHPDocs that contained incorrect params tags.
* <a href="http://github.com/snipe/snipe-it/commit/5f6ba2a1480a9383c10c5222e368b6c219f4bd2c">view</a> &bull; Clear the expected checkin and last checkout dates when checking an item back in. Fixes #1531
* <a href="http://github.com/snipe/snipe-it/commit/8eb31a9a820ce2033a585b35d7d17d618e6aa831">view</a> &bull; Merge pull request #1523 from thehereward/fix-up-some-php-docs
* <a href="http://github.com/snipe/snipe-it/commit/90340a71119ab72b45c34a4a328877d363cabae1">view</a> &bull; Merge pull request #1535 from dmeltzer/fix-1531-proper
* <a href="http://github.com/snipe/snipe-it/commit/27962d5439ccd587dfbb945149693cf81a6cb944">view</a> &bull; Merge branch 'develop' into docker_fix_2
* <a href="http://github.com/snipe/snipe-it/commit/8cfcb2aed8a69070686f2d23f8b6c7fcf4596797">view</a> &bull; Merge pull request #1544 from snipe/docker_fix_2
* <a href="http://github.com/snipe/snipe-it/commit/36eb51d6e484586c9da3b90dc86fac6774e22218">view</a> &bull; Fixed typo in string
* <a href="http://github.com/snipe/snipe-it/commit/5eb95272eeac1183fe47972e7d8cf01976efe3a0">view</a> &bull; Merge pull request #1546 from snipe/docker_fix_2
* <a href="http://github.com/snipe/snipe-it/commit/79c5d3f7d69ac34e98e1b4e925ced54b1ab2f612">view</a> &bull; Fixes #1537 and #1524
* <a href="http://github.com/snipe/snipe-it/commit/faf2e464faff6fb2ac8decd3889d1c60bfcf954f">view</a> &bull; Fixes #1526
* <a href="http://github.com/snipe/snipe-it/commit/a7a82e5fbcab028c618b40d839a121325508490e">view</a> &bull; Fixes #1541
* <a href="http://github.com/snipe/snipe-it/commit/1ce205a5798be9b69d8750af9bb0fa7c96752a1e">view</a> &bull; Fixes #1502 - load tableexport and jquery base64 locally
* <a href="http://github.com/snipe/snipe-it/commit/7c06cba6477dc7e7902841b48ffb3089bd198a8e">view</a> &bull; More LDAP login fixes
### v0.3.10-alpha - Released Jul 17, 2014 05:54:10
### v2.0.6 - Released Nov 25, 2015 11:50:08
* <a href="http://github.com/snipe/snipe-it/commit/ac44140d835da40b44193ddfdbe2af0539a6aa5d">view</a> &bull; fix edit blades
* <a href="http://github.com/snipe/snipe-it/commit/999910f31fac58f1d7b1e5b45de296e911c88e6e">view</a> &bull; Fix 'use' used with non-compound
* <a href="http://github.com/snipe/snipe-it/commit/6478425be6fa02322aac276bd31c0bc6472b7fd3">view</a> &bull; Fix dashboard shows all companies
* <a href="http://github.com/snipe/snipe-it/commit/0a97c626e7955af7240b8084f90b249daf53a5e7">view</a> &bull; Fix $inout used when undefined
* <a href="http://github.com/snipe/snipe-it/commit/8fb7d82babd8deb136e71734e3a7fa37d2b05b08">view</a> &bull; Fix no admin/consumables route
* <a href="http://github.com/snipe/snipe-it/commit/08781a561b828198b62cf14a8f2608f23a52c3ef">view</a> &bull; Fix: use global scope for companies support
* <a href="http://github.com/snipe/snipe-it/commit/dbdc2c8e64b8d27ac3111d2308c0582b05992561">view</a> &bull; Fix some typos (e.g: companayable)
* <a href="http://github.com/snipe/snipe-it/commit/fe44846c1ba583156358de48fefe3ed3e63ef8f6">view</a> &bull; Fix: only super users can change multiple companies support option
* <a href="http://github.com/snipe/snipe-it/commit/e91a22fce0232ffd24976c214b12a7ff784d60ff">view</a> &bull; Fix assumeng Setting::getSettings() is not null in Company
* <a href="http://github.com/snipe/snipe-it/commit/e82ede5d44000ee337fad329cf5ac18052cfe52b">view</a> &bull; Fix: some Company functions throw when seeding the DB
* <a href="http://github.com/snipe/snipe-it/commit/67a58221eb93ffb6a1e827ab1dc745c27e8d81fe">view</a> &bull; Fixes #1368 - typos in installer
* <a href="http://github.com/snipe/snipe-it/commit/cc930fc5b8bcfdf972b35fb9460c0b2c82a1e9d0">view</a> &bull; Fixed links to getting help and common issues
* <a href="http://github.com/snipe/snipe-it/commit/01b574069af2ae8cda5ab9716de58d8e39a3da79">view</a> &bull; Fixes #1362 - status labels losing type on edit
* <a href="http://github.com/snipe/snipe-it/commit/7a03a5649863bc44af2459abf1d9fcfe0ffad21a">view</a> &bull; Fix: company field required
* <a href="http://github.com/snipe/snipe-it/commit/4b926f015b5b69c4e3180e996ab489e179589be5">view</a> &bull; fixed typo in installer
* <a href="http://github.com/snipe/snipe-it/commit/318b4b48c64e2dbfcbbbf9f024e9f6b20bc7a0db">view</a> &bull; Fixes null value for LDAP settings
* <a href="http://github.com/snipe/snipe-it/commit/9ec132acde7238963ffb3cb042e65e49e929eb7c">view</a> &bull; Small fixed for LDAP in settings table
* <a href="http://github.com/snipe/snipe-it/commit/120c8394bbc0141a2ca6d2cd7124d8fbad459073">view</a> &bull; Fixes #1380 - groups pagination
* <a href="http://github.com/snipe/snipe-it/commit/716c459985c78301998fe60fc8c274edb4f945c0">view</a> &bull; Fix ident
* <a href="http://github.com/snipe/snipe-it/commit/b99c138cb040c92e6988c40307bd871514fb39f8">view</a> &bull; Fixes #1369 - fixed searching/sorting on location
* <a href="http://github.com/snipe/snipe-it/commit/a777499c0bec415566c9360b6239600c9d6d0f74">view</a> &bull; Fixes #1376 - added new fields to consumables view
* <a href="http://github.com/snipe/snipe-it/commit/6d42d2c6142075124c453b75315db1b0fca0fdc9">view</a> &bull; Fixed bootstrap class for button
* <a href="http://github.com/snipe/snipe-it/commit/a3dbd87f9ffacc0ac1f48f758f87316bab831fe6">view</a> &bull; Fixed weird company table styles
* <a href="http://github.com/snipe/snipe-it/commit/2a28c73845e5e90947e207392c4b7b12e7e91e7c">view</a> &bull; Importer fixes - check for asset before inserting
* <a href="http://github.com/snipe/snipe-it/commit/c8c755f8c35983adaad6a3ba1868021acb2e3583">view</a> &bull; Fixed filename renaming
* <a href="http://github.com/snipe/snipe-it/commit/29bb6a3c4f839e96f79d02473221673aed401898">view</a> &bull; Fixed issue where deleted asset tags could not be re-used
* <a href="http://github.com/snipe/snipe-it/commit/535263788dac198cf79562efe7df4671fd1e755b">view</a> &bull; Fixed dumb indenting
* <a href="http://github.com/snipe/snipe-it/commit/4be046a6753315fb88858ea264acec10d66b4938">view</a> &bull; Fixes #1387 - adds server-side compound search
* <a href="http://github.com/snipe/snipe-it/commit/406e077c1e1a279c588e1506c2ce75f1e79dbbb1">view</a> &bull; Fixed indenting
* <a href="http://github.com/snipe/snipe-it/commit/67e968b03276d563a920a09cd4cec5258e62d016">view</a> &bull; Fixed attach() timestamps
* <a href="http://github.com/snipe/snipe-it/commit/b39c53a5ea355c91d5ef4adf1a03a342697039ae">view</a> &bull; Closes #1375 - More data in consumables detail view
* <a href="http://github.com/snipe/snipe-it/commit/d8b43215b0109ab7f548a0dc46dee3d12a271a77">view</a> &bull; Fix for missing admin ID
* <a href="http://github.com/snipe/snipe-it/commit/c6c6bd02bb32a22da7d30a0cca81516f99a9f5b0">view</a> &bull; Possible fix for weird UTF-8 issues
* <a href="http://github.com/snipe/snipe-it/commit/99391d01796bfe6b1e63e8e979fa010397405236">view</a> &bull; Fixes #1332 - added location to accessories
* <a href="http://github.com/snipe/snipe-it/commit/632fa92f9239d7f701efd29461ebf24746246be8">view</a> &bull; Fixes #1333 - hide checkout button if asset status is not deployable
* <a href="http://github.com/snipe/snipe-it/commit/20490986c634c7fa260fd952a7311ca18aae8605">view</a> &bull; Fixes #1325 - zenbra striping and borders on table for money value clarity
### v2.0.5 - Released Nov 18, 2015 10:29:53
* <a href="http://github.com/snipe/snipe-it/commit/67e0e14a12d49fc190daae553332a6c008f89314">view</a> &bull; License importer, small fixes for asset imporer
* <a href="http://github.com/snipe/snipe-it/commit/5df26f9b0ae7708e2f221ee873126bf1d7cd91dc">view</a> &bull; Fixed the ubuntu install portion that i broke
* <a href="http://github.com/snipe/snipe-it/commit/958672dfd36d220ea242d7772626916c748063e3">view</a> &bull; Fixed missing vars and typos
* <a href="http://github.com/snipe/snipe-it/commit/0d1544c3d65bf27a3e64e8ec258fb8dfaf961438">view</a> &bull; Fixing some package issues and syntax errors
* <a href="http://github.com/snipe/snipe-it/commit/56b50468d2bc14d33dbad17357664cd68937ee00">view</a> &bull; fixed packages for centos6
* <a href="http://github.com/snipe/snipe-it/commit/62cee46a83d9d9dcf9e12884563918bab0adb61a">view</a> &bull; update webdir for debian and fix the error logs
* <a href="http://github.com/snipe/snipe-it/commit/ca1384504a6a3802cea8bacc7fce2413f65a3681">view</a> &bull; fixed tzone variable assignment
* <a href="http://github.com/snipe/snipe-it/commit/a47a4e83e2fb90fb7e6d55c34ca9d515f4316c7e">view</a> &bull; fixed issues with sed command and /
* <a href="http://github.com/snipe/snipe-it/commit/9f43b6af9f355f6d8de6b5b9689ffdb6904fd5eb">view</a> &bull; fixed apache config file
* <a href="http://github.com/snipe/snipe-it/commit/306d8ebaf72076cbccadae7d214eed68276d65f5">view</a> &bull; Fixes #1317 - regression issue in bulk delete
* <a href="http://github.com/snipe/snipe-it/commit/a8da68d3fda0be7d8533dcecadbe758d24bacf12">view</a> &bull; Fixes #1320 - added name for cookie table
* <a href="http://github.com/snipe/snipe-it/commit/b9c36f863833188bd0462d809985bd876f36c6d7">view</a> &bull; Fixes #1335 - editing maintenance
* <a href="http://github.com/snipe/snipe-it/commit/aa05d041bd7abd193ea580c0928326d4855b522f">view</a> &bull; Fixes #1324 - missing $inout variable when if/else not met
* <a href="http://github.com/snipe/snipe-it/commit/2b26fd7e20e0636cee068a7804eb82ece780f5a2">view</a> &bull; Fixed string in gh-changelog
### v2.0.5-pre - Released Nov 04, 2015 11:42:37
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/89a8f3c277d2482b2cd04c4c5c582c9e507770f8">view</a> &bull; Fixes #183 - added employee number to users
* <a href="http://github.com/snipe/snipe-it/commit/a7b809cb91f49fb2c8eaecc67822fa155a0f20ce">view</a> &bull; Updated title/header for users, additional fixes for #151
* <a href="http://github.com/snipe/snipe-it/commit/5266d9a30a9663fa80ff764b25ff71726e5c4f4c">view</a> &bull; Fixed title tag for user list view
* <a href="http://github.com/snipe/snipe-it/commit/43485e1a51330ef585a65b469d7eb85ae7bde13a">view</a> &bull; Fixed language definition
* <a href="http://github.com/snipe/snipe-it/commit/6b5a552d95ff6f6d5567275b50fcd487fb793820">view</a> &bull; Fixed #186 - Bug with select box not retaining selections on edit screen
* <a href="http://github.com/snipe/snipe-it/commit/90eb883b671919ea360122c2bf44433995a12144">view</a> &bull; Fixed #187 - replaced dummy site name with site name from admin panel preferences
* <a href="http://github.com/snipe/snipe-it/commit/f22f23f21dc11d393854849580f0c1229cec9827">view</a> &bull; Fixed button label on forgotten password page
* <a href="http://github.com/snipe/snipe-it/commit/2b9494ed8271254f8f84e016f238d518e6109842">view</a> &bull; Fixed inconsistent password requirements across admin user creation, user profile and forgotten password
* <a href="http://github.com/snipe/snipe-it/commit/9dc40a3a9c161267fd8c88aacc1fbf536c1ec2de">view</a> &bull; Fixed a few CSS quirks
* <a href="http://github.com/snipe/snipe-it/commit/99003e126a8fd0ad9aaea5a550e0af5e306fc1bb">view</a> &bull; Fixed bug with edit (supplier_id), added requestable field for assets
* <a href="http://github.com/snipe/snipe-it/commit/21251b462308f2d783b83be1a331a0faf0813d16">view</a> &bull; Fixed #190, where depreciation on licenses would not be saved
* <a href="http://github.com/snipe/snipe-it/commit/89000440f344f766a31adc69718d7f66df235abf">view</a> &bull; Added admin ability to unsuspend locked accounts #changelog
* <a href="http://github.com/snipe/snipe-it/commit/e203fc516fadf6218f5ce87c070d0cdba9fca188">view</a> &bull; Fixes #194
* <a href="http://github.com/snipe/snipe-it/commit/679b9f6def461ae5e2c0fa1223368d5838ac2945">view</a> &bull; Small EOL fix
* <a href="http://github.com/snipe/snipe-it/commit/35f97cceb72f20ff104252066e92324cd5691827">view</a> &bull; Fix missing lists causing modal errors
* <a href="http://github.com/snipe/snipe-it/commit/f152841e817ab6e9571eaad56d30fd5fc7e2715a">view</a> &bull; quick fix $inout/$action issue
* <a href="http://github.com/snipe/snipe-it/commit/032d79593aac47c1516061e30882784fd64fd342">view</a> &bull; quick fix $inout/$action issue
* <a href="http://github.com/snipe/snipe-it/commit/78e0af383d729718aa525cdd8fb382600c5fe2ad">view</a> &bull; Fix user firstname/lastname search
* <a href="http://github.com/snipe/snipe-it/commit/67e0e14a12d49fc190daae553332a6c008f89314">view</a> &bull; License importer, small fixes for asset imporer
* <a href="http://github.com/snipe/snipe-it/commit/e9e04e86da8d49d35c958cde2445499aae3f34ac">view</a> &bull; added fixed width for navbar icons (fa-fw)
* <a href="http://github.com/snipe/snipe-it/commit/485b34b66e9570d40376f33c28a802e276476074">view</a> &bull; fixed layout and added branding option
* <a href="http://github.com/snipe/snipe-it/commit/0db075cb13eb045ed863411a8f5801a980db481a">view</a> &bull; fixes lang option for remote script
* <a href="http://github.com/snipe/snipe-it/commit/9264e7bdc4db61076180414c47fed866db02376f">view</a> &bull; Fixed missing limit
* <a href="http://github.com/snipe/snipe-it/commit/cf7571d3a6e796a8f5cf15536ed18fabf07b939e">view</a> &bull; Fixed inline display od checkboxes
* <a href="http://github.com/snipe/snipe-it/commit/68005595967bdee3efbf35cec26154e5b40dc6a8">view</a> &bull; Fixed dumb braces
* <a href="http://github.com/snipe/snipe-it/commit/b25b3321f9dc06fcdf912fefa99d70c4878ab1b6">view</a> &bull; Fixes skip/offset for #1266
* <a href="http://github.com/snipe/snipe-it/commit/7dc0039c3b1d794b2a4706d9e16389b55c2ee1d0">view</a> &bull; Fixed parent relationship
* <a href="http://github.com/snipe/snipe-it/commit/b18be5aee8a5d2d7003f847d780917ecee7c5411">view</a> &bull; Fixed relationshop again?
* <a href="http://github.com/snipe/snipe-it/commit/348a566f894d568d8ce9d1b58ffe6ce03cfb7e65">view</a> &bull; More responsive fixes
* <a href="http://github.com/snipe/snipe-it/commit/d1192095d03584644fb1a8e26d5830383631cc11">view</a> &bull; Fix for showing deleted items
* <a href="http://github.com/snipe/snipe-it/commit/8ad220701eed66b49173a9e12e2883e7d355fbf7">view</a> &bull; Fixes Purchase Cost not showing up on custom reports
* <a href="http://github.com/snipe/snipe-it/commit/28fcd2b8abcee12f08095781aee6d6701d451c73">view</a> &bull; Fixed indenting
* <a href="http://github.com/snipe/snipe-it/commit/440bc1a4b446695dc8613a2f31f024b15fbdfebb">view</a> &bull; Fixes bug in people display
* <a href="http://github.com/snipe/snipe-it/commit/2e044bf0a3031c8620280654bc88f67cffb12461">view</a> &bull; Fixed category bug
* <a href="http://github.com/snipe/snipe-it/commit/b1d5812ae275095f8d50057e61276025aa529b0a">view</a> &bull; Fixed categorys page
* <a href="http://github.com/snipe/snipe-it/commit/8ea40d4e6d8e440158d3271f859dac167182b4c9">view</a> &bull; Fixes default value for strict mode
* <a href="http://github.com/snipe/snipe-it/commit/a3f5dc331d55afdea0b427b055e95bb4ef379e95">view</a> &bull; Fixes #1007 and #1053
* <a href="http://github.com/snipe/snipe-it/commit/cf49920564367b153181974f1b1b3b10a6f02e84">view</a> &bull; Fixes #1235 - 24 hour format for log
* <a href="http://github.com/snipe/snipe-it/commit/0a3843393ddf1fe0b5c5ce3f92a9f4820d13cd3f">view</a> &bull; Addec expected_checkout, fixed language calls to use blade syntax
* <a href="http://github.com/snipe/snipe-it/commit/20e7888bd9636856758e25efbe7d347fd2afd900">view</a> &bull; Fixed expected checkin on view
* <a href="http://github.com/snipe/snipe-it/commit/efddda8665e2c20f60dde40ca23294fa76506957">view</a> &bull; Fixed expected_checkin error on asset view
* <a href="http://github.com/snipe/snipe-it/commit/09bcb137c4f85e24f2127f24ce509caa7e5a060a">view</a> &bull; Ugly fix for preventing errors if there is an invalid model (therefore no category)
* <a href="http://github.com/snipe/snipe-it/commit/b6f4080b97f71bba58787a1e02e198878fd576dc">view</a> &bull; Fixes consumable detail view
* <a href="http://github.com/snipe/snipe-it/commit/5436d54aa0d9d52131ef89ad804034fe67e95011">view</a> &bull; Fixes #1290 - datatable broken for assets in model
* <a href="http://github.com/snipe/snipe-it/commit/76968f7d48a4558105cc52231726475e626f0a2b">view</a> &bull; Fixes asset model table sorting
* <a href="http://github.com/snipe/snipe-it/commit/e0fccc8fc978ca36512f77d32032e3329f52cb48">view</a> &bull; Possible fix for #1296? Can't reproduce locally
* <a href="http://github.com/snipe/snipe-it/commit/5c820d49a606f596cdaf905b6b63ae05f16e3356">view</a> &bull; Fixes #1305
* <a href="http://github.com/snipe/snipe-it/commit/d0eed67c42334c094eefe65eb900d2fa8efaf93c">view</a> &bull; Fixed relationship to return actual assets
* <a href="http://github.com/snipe/snipe-it/commit/0745ec1502865b3be6bab65d48d12188a8ddc77e">view</a> &bull; Fixed scope for users
* <a href="http://github.com/snipe/snipe-it/commit/f147a0ff02e69ee5b99be4b58cf867bc39ac3505">view</a> &bull; Fixed user table name
* <a href="http://github.com/snipe/snipe-it/commit/577c1936612a3a9a36cd2968d7511adf6fba3fde">view</a> &bull; Fixed bug in location import
* <a href="http://github.com/snipe/snipe-it/commit/0b0b55619b0e3b8b370fce65ece340430fe889dd">view</a> &bull; Fixes #1291 - Use current currency, or sane fallback
* <a href="http://github.com/snipe/snipe-it/commit/a587b72c710244a279b974991809d0350896a878">view</a> &bull; Fixed dumb indenting
* <a href="http://github.com/snipe/snipe-it/commit/f4331f4498b5c3c537b8f33b4f8a34fdf94ae3ec">view</a> &bull; Fixes #1291 - use location currency and fall back to defaul currency for asset maintenances
* <a href="http://github.com/snipe/snipe-it/commit/2a43491792877bd8a9ed47282eb3059c4d2c7ed0">view</a> &bull; Fixes #1291 on the asset view as well
* <a href="http://github.com/snipe/snipe-it/commit/17207ddea115bd9956b695470a539c8cc1a41391">view</a> &bull; Fixed table cookie name
* <a href="http://github.com/snipe/snipe-it/commit/6e117efebd9c89d145b7ace71014d242c8eda3b7">view</a> &bull; Fixed dumb indenting
* <a href="http://github.com/snipe/snipe-it/commit/4b2e7b9b069a98668f028e5c5851d64ed1364967">view</a> &bull; Fixes #1013 - show location name on asset view page
* <a href="http://github.com/snipe/snipe-it/commit/dc64ad55ee38be414ce32d5de8b4021897c7a1ce">view</a> &bull; Fixed link to manufacturers view
* <a href="http://github.com/snipe/snipe-it/commit/bc8c8e422504ac92bc20801e6f68883d79933dce">view</a> &bull; Fixes #1012 - more consistency in manufacturer view
* <a href="http://github.com/snipe/snipe-it/commit/14ba5a3b77e894ae82c73607f39e30bbce9895af">view</a> &bull; Fixes #1310 - adds version hash to table name to prevent cookie issues for folks who pull from dev
### v0.3.9-alpha - Released Jul 03, 2014 02:08:38
### v2.0.4 - Released Oct 21, 2015 07:40:18
* <a href="http://github.com/snipe/snipe-it/commit/0cb4b9e00bdd8b5f795b8ce6fbb594f5a01df8ff">view</a> &bull; Fixes #1181 - add title to maintenances in asset view
* <a href="http://github.com/snipe/snipe-it/commit/49a20c75ed4b0f9d3a66ddf6bd33d8c24bc571c0">view</a> &bull; Fix for #1052 - hopefully make it less brittle in future as well.
* <a href="http://github.com/snipe/snipe-it/commit/2df8c6a3d198f3eb3098783b16fc977a9599c7fe">view</a> &bull; Merge pull request #1186 from snipe/docker_fix2
* <a href="http://github.com/snipe/snipe-it/commit/53b5ec64e0668db8ffea99e3af83df1a3e60200c">view</a> &bull; Fixes #514 - adds RM as currency
* <a href="http://github.com/snipe/snipe-it/commit/505d46d49f0d6c60ea94234a4d1d45ba66c1afb9">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/b943ace21b420a726477a892be6c08d2549d2a87">view</a> &bull; Fixed wrong model type reference
* <a href="http://github.com/snipe/snipe-it/commit/4c662b713605e161696c7e0faa8977dc59f82d45">view</a> &bull; Fixes #1196 - added licensed to name and email in list view
* <a href="http://github.com/snipe/snipe-it/commit/141c77fed7ff996e9d9efb803c454f3e3225ce56">view</a> &bull; Fixed #1205 set default nullable in purchase order for strict mode
* <a href="http://github.com/snipe/snipe-it/commit/10909a21cde3a11ed6c06d7ace7af35f315d281b">view</a> &bull; Fixes #1206 - updated seeder with is_warranty value
* <a href="http://github.com/snipe/snipe-it/commit/f6b57adda30a415f7a67d5e45be76ca7bb5e5764">view</a> &bull; Fixes #1211 and duplicate column in view
* <a href="http://github.com/snipe/snipe-it/commit/ec80c99a48a7e19a5775352ee818f3c9f36a9f44">view</a> &bull; Fixes #1204
* <a href="http://github.com/snipe/snipe-it/commit/75af50def159da0e03ac41b5c91ab8e074bce7ef">view</a> &bull; Accessories fix for #1204
* <a href="http://github.com/snipe/snipe-it/commit/4f74ad077a43651708c3759e91c571e7aa0e90d4">view</a> &bull; Fixes #1136 - allow consumables to be deleted, even if they have been assigned
* <a href="http://github.com/snipe/snipe-it/commit/66fd0c231597e2472e32165ab728d84f15d858a5">view</a> &bull; Fixes #1232 - adds category to accessory listing view
* <a href="http://github.com/snipe/snipe-it/commit/e7f14f66dc94fe1e38b92ff8b4ccf8306d5743cc">view</a> &bull; Fixes #1260 - removed domain from cli list
### v2.0.3 - Released Sep 21, 2015 01:11:08
* <a href="http://github.com/snipe/snipe-it/commit/39f82e546fd0ecbac14f79780c9c3b4020d943f0">view</a> &bull; Fixes #1174 - broken migration if asset_logs table has uploads
* <a href="http://github.com/snipe/snipe-it/commit/cffd87c5a37d55156c7c05a8795d75ef36f6470d">view</a> &bull; Fix user display if no location was provided
* <a href="http://github.com/snipe/snipe-it/commit/fe765b3c9c086687a9f1cdd5a696e48664520a32">view</a> &bull; Fixed not found error message string
* <a href="http://github.com/snipe/snipe-it/commit/fbbe24f19703b2fdab14be13b10a167c2eaf46c3">view</a> &bull; Fixes #1184 because package authors can't seem to keep their stuff from breaking
### v2.0.2 - Released Sep 11, 2015 11:14:20
* <a href="http://github.com/snipe/snipe-it/commit/9b353ae0d892a65cc328ec885e48aa58106992f0">view</a> &bull; Fixes #1150 - added note about lowercasing
* <a href="http://github.com/snipe/snipe-it/commit/32604f0715d29290f3c63735d2b72f9f4aba06c0">view</a> &bull; Fixes #1154 - DL CVS string
* <a href="http://github.com/snipe/snipe-it/commit/680b189709a9f23e059ee93d89edf7d98692a55f">view</a> &bull; Fixes #1151 - additional LDAP option
* <a href="http://github.com/snipe/snipe-it/commit/e05baf1df4134a84296fc8fcd60e9be534ddb24b">view</a> &bull; Fixed language strings for accessories
* <a href="http://github.com/snipe/snipe-it/commit/8c2ee9e96c9d819bdd808af029c98a54db133c22">view</a> &bull; Fixes #1167 - don't allow double checkin
* <a href="http://github.com/snipe/snipe-it/commit/2c54c93859ad73c3fe8fb8452be70ce3cf0c4467">view</a> &bull; Fixes #1170 - barcode alternative
### v2.0.1 - Released Sep 04, 2015 02:24:22
* <a href="http://github.com/snipe/snipe-it/commit/67e0e14a12d49fc190daae553332a6c008f89314">view</a> &bull; License importer, small fixes for asset imporer
* <a href="http://github.com/snipe/snipe-it/commit/46fb12f5dcd5a37e8aecdf585ee892c6816f2bb0">view</a> &bull; Fixed acceptance suite yaml to make it work for travis-ci as well as local testing
* <a href="http://github.com/snipe/snipe-it/commit/33178adeedb37773c7b830582b167d1b5063127c">view</a> &bull; Fixed issue in travis yaml file
* <a href="http://github.com/snipe/snipe-it/commit/1fadabaf2f4a15ffdd26d426fb814d970b7e62f4">view</a> &bull; Fixed stupid mistake in the travis yaml file
* <a href="http://github.com/snipe/snipe-it/commit/1bed711f0e7462d5b4875b8c014d15690648049d">view</a> &bull; Another tweak getting closer
* <a href="http://github.com/snipe/snipe-it/commit/41c257829ed8d7019b5fe4761fcdf7560167cc74">view</a> &bull; Another tweak - getting close
* <a href="http://github.com/snipe/snipe-it/commit/1927f131aa1e59f81caf35999eaaab2bd0dc1f14">view</a> &bull; Fix broken Docker build
* <a href="http://github.com/snipe/snipe-it/commit/49e898fd263cc1fb7fb80dcb7aa11058c305ed21">view</a> &bull; Merge pull request #1122 from irasnyd/docker-fixes
* <a href="http://github.com/snipe/snipe-it/commit/dd2b9e15a60c402be914747979e27ca8a7c1c496">view</a> &bull; Fix #1109 - Asset names are missing when viewing user history
* <a href="http://github.com/snipe/snipe-it/commit/6e13da6293db3347e62363c448a35b502f8c8379">view</a> &bull; Fix #1123 - fix new lines in serial not being recognised
* <a href="http://github.com/snipe/snipe-it/commit/cf7ef5e8b0c3e6a376614486e590ef2d25d5145e">view</a> &bull; Merge pull request #1131 from irasnyd/docker-fixes
* <a href="http://github.com/snipe/snipe-it/commit/da10a9a2aa2c2995ca81e8e1ad9e0117de058eb8">view</a> &bull; Fixes #1130 - don't try to send email if email is not provided with the user
* <a href="http://github.com/snipe/snipe-it/commit/00aba507f7a4f5daaa57b9ccd5e7730bb5e9f63d">view</a> &bull; Fixed acceptance suite yaml to make it work for travis-ci as well as local testing
* <a href="http://github.com/snipe/snipe-it/commit/be402a9d7d3d039666f1c8110b8d1e1697d28092">view</a> &bull; Fixed issue in travis yaml file
* <a href="http://github.com/snipe/snipe-it/commit/b1d6d4da3777505d51310780fe393a874a24358e">view</a> &bull; Fixed stupid mistake in the travis yaml file
* <a href="http://github.com/snipe/snipe-it/commit/f836f88e38fb4bb0b682d301081254bb59923bf6">view</a> &bull; Another tweak getting closer
* <a href="http://github.com/snipe/snipe-it/commit/309ce7d0bd6758c186d9f002ebc9924b72542f4f">view</a> &bull; Another tweak - getting close
* <a href="http://github.com/snipe/snipe-it/commit/7bd5ddc516cc3130f4eb5e7ac53a7c9d4e67be87">view</a> &bull; Fixes incorrect title for unaccepted assets report
### v2.0 - Released Aug 26, 2015 02:40:08
* <a href="http://github.com/snipe/snipe-it/commit/8892feea62d8966dbfa4c1bab6c4f0ac25929504">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/70f7f653948dfb40e62b1e699ae30e2eca31c085">view</a> &bull; Fixed path for windows
* <a href="http://github.com/snipe/snipe-it/commit/e916fdcc8925b0d997b77c8ce167eb91948ee883">view</a> &bull; Fixes #1092, setting LDAP_OPT_REFERRALS to 0 for Active Directory
* <a href="http://github.com/snipe/snipe-it/commit/610392777b68ef0d3488db7cd7fabfacc2514046">view</a> &bull; fix
* <a href="http://github.com/snipe/snipe-it/commit/89564b3d2ad14150ea1c64604a4dcd29efc0e688">view</a> &bull; Merge pull request #1099 from kobie-chasehansen/fix-for-#1098
* <a href="http://github.com/snipe/snipe-it/commit/7dd2b3d580b939436c1ff68674db5f160e275a1f">view</a> &bull; Fixes #1104
* <a href="http://github.com/snipe/snipe-it/commit/da6770c9d967d177af6cb36af6a92f0bdae1800a">view</a> &bull; Fixes #1102 - default currency stored as htmlentities in the DB
### v2.0-RC-1 - Released Aug 20, 2015 12:53:11
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/2825bcb4310899e89ccbc73dfa8b59ade28018da">view</a> &bull; Fixed #179 - account page to show assets checked out to the logged in user
* <a href="http://github.com/snipe/snipe-it/commit/c782f29f5aae752a6246be9778d418df172dd4f6">view</a> &bull; Pulled account sub-nav into top menu to free up UI space. #changelog
* <a href="http://github.com/snipe/snipe-it/commit/fad2ec66fa9abe0b34baf16cce453a7e9fc9e4d4">view</a> &bull; More README fixes and refinement
* <a href="http://github.com/snipe/snipe-it/commit/94e8b5f783c3b03c062c0d82d3d166d770ec8e6f">view</a> &bull; Fixed bug in expected checkin
* <a href="http://github.com/snipe/snipe-it/commit/890ef1eb1d6a7ed3845554f40c641585c61dd2f2">view</a> &bull; Fixes #1038 - clickable links in dashboard
* <a href="http://github.com/snipe/snipe-it/commit/1d976ff926197a9dd592b8dd9c6e2da97a16cebe">view</a> &bull; Fixes #1078
* <a href="http://github.com/snipe/snipe-it/commit/e8f11919f74340db6175873abb27a59671556c26">view</a> &bull; Fixes #1077 - ordering of dropdown menus
* <a href="http://github.com/snipe/snipe-it/commit/a27a98f4b3d6ac980eb4c00c14e966534024ae56">view</a> &bull; Fixes #1081- include asset name on checkout
* <a href="http://github.com/snipe/snipe-it/commit/45c4624d5fcb082aed9b2fe0f08eb8b31c783b88">view</a> &bull; Fixes #1081
* <a href="http://github.com/snipe/snipe-it/commit/e63d62d2c83d82fc9eb1e2ba00e6939210166837">view</a> &bull; Fixes #1083
* <a href="http://github.com/snipe/snipe-it/commit/8339dd3db29bca3e04273a0336f90283b9cfbf64">view</a> &bull; Fixes #1089 - checkout button on accessory view page
### v0.3.8-alpha - Released Jun 27, 2014 09:28:22
### v2.0-pre-beta2 - Released Aug 15, 2015 05:20:22
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/3e7a9e45d1954531bbc3b73f2ed59dd16d59c657">view</a> &bull; Fixes PR #168 and #167
* <a href="http://github.com/snipe/snipe-it/commit/945cb3253f1349e30aafa4e7cb57bb507a2ea0cc">view</a> &bull; Fix #117
* <a href="http://github.com/snipe/snipe-it/commit/6f42b3045e2a65cdf98ec1038284cc2ecf01fa5d">view</a> &bull; Resolves #155
* <a href="http://github.com/snipe/snipe-it/commit/380417953b6b67a506f0cc395fd2dfb744cf26cd">view</a> &bull; Fixed missing string
* <a href="http://github.com/snipe/snipe-it/commit/b09aec67f1ab76ff0435a2e1e49b179c3d73bc12">view</a> &bull; Fixes #155
* <a href="http://github.com/snipe/snipe-it/commit/124acc89c4027e346daf54c62cb38b85586de870">view</a> &bull; Resolves #174
* <a href="http://github.com/snipe/snipe-it/commit/afabd2814205fdcd83b7bf9ce9095aa367b08311">view</a> &bull; Additional fixes for #167
* <a href="http://github.com/snipe/snipe-it/commit/a170efae2796314896d548d86b79d89d859c37d2">view</a> &bull; fix for #167
* <a href="http://github.com/snipe/snipe-it/commit/ec9eab81bfb3b35bfe7ad06008b26f19009e6638">view</a> &bull; Closes #177 - change log file added, needs refining
* <a href="http://github.com/snipe/snipe-it/commit/c8870ddcab0b521c9682cd8c5ab6fd56ee01753a">view</a> &bull; Fixes #736 - more fields in bulk edit
* <a href="http://github.com/snipe/snipe-it/commit/5e7a4e8193b26875729089b36b28adca1644cb8d">view</a> &bull; Fixes #599 - show groups in user list
* <a href="http://github.com/snipe/snipe-it/commit/f463cd6c8d72d9d28cd984ccad08fc596edbdaac">view</a> &bull; Fixes for #759 - location heirarchy
* <a href="http://github.com/snipe/snipe-it/commit/51eeee09d72148d4dae629744753a96e51c1b8ae">view</a> &bull; Fixes bug in #736 for new fields
* <a href="http://github.com/snipe/snipe-it/commit/3881e2e83eb72c1567db6c45afa40d7f79330bb3">view</a> &bull; Fixes #784 - add "create accessory" to topnav
* <a href="http://github.com/snipe/snipe-it/commit/aab52d08506f5bc1fd0fcf35229e04b0cb5883bb">view</a> &bull; Fix for strict mode with location parent
* <a href="http://github.com/snipe/snipe-it/commit/2f52369d075d6f95cd188acf14a23fcd9d431213">view</a> &bull; Fixed location string
* <a href="http://github.com/snipe/snipe-it/commit/139dd1339271351714623e53d323cce5356618de">view</a> &bull; Super janky miulti-level menu on create - TODO: Fix this ish.
* <a href="http://github.com/snipe/snipe-it/commit/2d7a348ab705fbca6f432f7adf0861085ab836c5">view</a> &bull; Fixed multi-level array nesting for locations
* <a href="http://github.com/snipe/snipe-it/commit/95279f885b231eda371835b9eeb998c683cfbfd3">view</a> &bull; Fixes #759 - populate form with parent location info
* <a href="http://github.com/snipe/snipe-it/commit/8cdea8a38404ed2187fa59f8e7f9198cb9ce94bb">view</a> &bull; Fix for location totals
* <a href="http://github.com/snipe/snipe-it/commit/496a768013c759a4e3fa190f5970bbb865cebd62">view</a> &bull; Fixes #795 - add model name if no asset name
* <a href="http://github.com/snipe/snipe-it/commit/7c95f4231e3281ca99744aa3ba8e530cf746c6ba">view</a> &bull; Fixes #799 - missing text in file delete confirmation
* <a href="http://github.com/snipe/snipe-it/commit/212f09dd310ba54f6b513ff867e7641bdc8cb3f1">view</a> &bull; Fixes #806
* <a href="http://github.com/snipe/snipe-it/commit/2540ac09ec9aa9d0e461be52fe117379a21474e0">view</a> &bull; Fixes #822
* <a href="http://github.com/snipe/snipe-it/commit/766b4b901f8dbefe4e052d1927f274a0ace4d7d3">view</a> &bull; Fixes #822 - make user notes field nullable default null
* <a href="http://github.com/snipe/snipe-it/commit/fdef26608971b747ca3ac9ada87f295311543892">view</a> &bull; Addresses #577 and fixes #165 - switch from email to username
* <a href="http://github.com/snipe/snipe-it/commit/f42540fedf92a315614c6c1dfacd31879fef2a78">view</a> &bull; More fixes for #165 - added username field
* <a href="http://github.com/snipe/snipe-it/commit/3d4607ebd3e7f6494912f38be40945eb4aa6a57b">view</a> &bull; Fixes #858 - find admin group by name instead of ID for consideration of clustered DBs
* <a href="http://github.com/snipe/snipe-it/commit/10135802367f015e0b91329d692e3358ef7ffeae">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/bf6674f6a0252abf51977a355cadc6fccbde7cd7">view</a> &bull; Added table prefix for raw queries
* <a href="http://github.com/snipe/snipe-it/commit/ea0f2c5f347d31a1543b7b3c980c9909a3e2403d">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/edddf6ae80cfa60af17544ed06c1b7c5883afe7a">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/2e585f9cd205e7fad93559281ac92b0fb09f816e">view</a> &bull; Fixes #839 - bad seed data
* <a href="http://github.com/snipe/snipe-it/commit/75b9b70a8632f10c7c55b6a62e8d19e6f8b4ebe8">view</a> &bull; Fix email field so it's nullable, fix app command to add user
* <a href="http://github.com/snipe/snipe-it/commit/94f8c6172042899f5f28723ceed2b562a5dca912">view</a> &bull; Fixes #280, #64 and #860 - added license expiration alert
* <a href="http://github.com/snipe/snipe-it/commit/85d6b062f3b2a4da6171d8e026f4077fa3cf4c39">view</a> &bull; Fixed checkbox alignment
* <a href="http://github.com/snipe/snipe-it/commit/f2e1ec092830822150d463d969ece2ce2f4795d4">view</a> &bull; Fixed QR simple view route
* <a href="http://github.com/snipe/snipe-it/commit/8ef3d00f2264d5338043887f6d23bb5c0b5cc508">view</a> &bull; Fixed language string for users
* <a href="http://github.com/snipe/snipe-it/commit/84e130d6aa4a53aea8fc75679ca270b25509a9a9">view</a> &bull; Fixes #869 - compatibility mode for IE
* <a href="http://github.com/snipe/snipe-it/commit/a5292d4b71e479cf87b7729b66e61fbf0f856520">view</a> &bull; Fixed issue with migration that left off the deleted_at field
* <a href="http://github.com/snipe/snipe-it/commit/0f190e094d5d084e853f7134ba917a73dd9e5f01">view</a> &bull; One last fix to the migration to add the supplier relationship
* <a href="http://github.com/snipe/snipe-it/commit/c59c5e35f8f32710f98e37c77f55adf1f963830e">view</a> &bull; Fixed the need to only be a date instead of a date time
* <a href="http://github.com/snipe/snipe-it/commit/58ce44c93548adb11fe78291fcb10142548f3664">view</a> &bull; Fixed the datetime fields to be date fields only
* <a href="http://github.com/snipe/snipe-it/commit/9316b2bed07d5153ebf78a237f42c7e1d5a3a659">view</a> &bull; Needed to fix nullable issues
* <a href="http://github.com/snipe/snipe-it/commit/b7f050aa3bd426c235732c924f63827ee74b8586">view</a> &bull; Update the migration to fix an issue with the improvement_time so it would be an integer Created the view for improvements Updated messages in language pack for additional items needed Updated the asset view and supplier view to fix an issue
* <a href="http://github.com/snipe/snipe-it/commit/b2847811efdfaa172b07206af24cf3c183c39879">view</a> &bull; Fixed issue found with date being handled incorrectly Updated multiple views to reflect this issue
* <a href="http://github.com/snipe/snipe-it/commit/d4af197b0e8ecde9a36e2417fe7dd2fb7c5c28ec">view</a> &bull; Merge pull request #886 from madd15/Fix---Edit-user
* <a href="http://github.com/snipe/snipe-it/commit/1b423f5b542ac56d5836b8aa1a8c4a93927eeae1">view</a> &bull; Fixed all issues that were reported by @leobg Also, renamed and fixed items of concern by @snipe Renamed Improvements to Asset Maintenances
* <a href="http://github.com/snipe/snipe-it/commit/e714def74aa6aeada6716ef091e599c5ebf9f8a1">view</a> &bull; Fix Reports showing class="active"
* <a href="http://github.com/snipe/snipe-it/commit/4a5066054b1bb75222c6765675366405a4f70b73">view</a> &bull; Display bugfixes for #819
* <a href="http://github.com/snipe/snipe-it/commit/7e5f32c9d85cc9a28976732d6232632e1cf0314a">view</a> &bull; Merge pull request #898 from madd15/Default-Layout-fix
* <a href="http://github.com/snipe/snipe-it/commit/c61adc7041f919c156188b12de4bcb2a66a54419">view</a> &bull; Partial fix for #851 datatables. Because clear error reporting is apparently for suckers
* <a href="http://github.com/snipe/snipe-it/commit/0154f240f3d20be2c4a94bf5fab582f91d0eabea">view</a> &bull; Fixes JavaScript for edited assets
* <a href="http://github.com/snipe/snipe-it/commit/56345b5743a930e18fcbcbf7140d8199c9731b7e">view</a> &bull; Fixes #909 - expired licenses showing in email report
* <a href="http://github.com/snipe/snipe-it/commit/24b0d83387efc38340ae2678d220cdaef0bfad5a">view</a> &bull; Fixes #912 - added clon button to list view
* <a href="http://github.com/snipe/snipe-it/commit/de62db5e18c5661595ab17b1c2c74907a00f07f1">view</a> &bull; Fixes #901 - added notes field to list view
* <a href="http://github.com/snipe/snipe-it/commit/0c842fc772d4b82c1cb3148a230342fe852c5ad3">view</a> &bull; Fixes #863 - clickable order number in asset view
* <a href="http://github.com/snipe/snipe-it/commit/01c29683880856e3e17a05e9fde91da18bb95b57">view</a> &bull; Revert "Fixes #863 - clickable order number in asset view"
* <a href="http://github.com/snipe/snipe-it/commit/3e2bd02ce55a677ee50e5a46d225d0fc6aa51f6f">view</a> &bull; Fixed issue with migration that left off the deleted_at field
* <a href="http://github.com/snipe/snipe-it/commit/3a3c021a6a34f9860bf5dc0075e9f3edb60d1248">view</a> &bull; One last fix to the migration to add the supplier relationship
* <a href="http://github.com/snipe/snipe-it/commit/3aa3d67675043eec504b979a16a21146bad5635d">view</a> &bull; Fixed the need to only be a date instead of a date time
* <a href="http://github.com/snipe/snipe-it/commit/69a5c9939637aee96ea16c05431c1aaec5288f25">view</a> &bull; Fixed the datetime fields to be date fields only
* <a href="http://github.com/snipe/snipe-it/commit/0f5b8b5a908d4b7e64241972c53fef473c6c6c6f">view</a> &bull; Needed to fix nullable issues
* <a href="http://github.com/snipe/snipe-it/commit/5ee4eb5871dd05cbf372093cb3f5fe1c0f1047bd">view</a> &bull; Update the migration to fix an issue with the improvement_time so it would be an integer Created the view for improvements Updated messages in language pack for additional items needed Updated the asset view and supplier view to fix an issue
* <a href="http://github.com/snipe/snipe-it/commit/2457003debb0c2a406d1220874e667f26c298f40">view</a> &bull; Fixed issue found with date being handled incorrectly Updated multiple views to reflect this issue
* <a href="http://github.com/snipe/snipe-it/commit/d1d6fe26a6302c37b85c541a7622698ead235648">view</a> &bull; Fixed all issues that were reported by @leobg Also, renamed and fixed items of concern by @snipe Renamed Improvements to Asset Maintenances
* <a href="http://github.com/snipe/snipe-it/commit/8ba55b4bf241254cb06205523576999b30409a11">view</a> &bull; Fix missing checkedout_at
* <a href="http://github.com/snipe/snipe-it/commit/6d1197a144aa0cd2479791190a9b46f480ba7d68">view</a> &bull; Fix edit model cat list showing deleted categories
* <a href="http://github.com/snipe/snipe-it/commit/28359053986cf75a82c48b5b7c9bd9302f7c85ac">view</a> &bull; Fix dup file uploads and layout
* <a href="http://github.com/snipe/snipe-it/commit/e4bee3d3729196abd43f10a0de7ce5bf1c9f3458">view</a> &bull; Merge pull request #951 from madd15/fixes-1
* <a href="http://github.com/snipe/snipe-it/commit/eaf077f8076183d65032c7b1f495385d8d261bb7">view</a> &bull; Fixes #946 - navbar custom color not working in FF
* <a href="http://github.com/snipe/snipe-it/commit/e944b2d1c3aaa286f39dbe979b55beb39b320733">view</a> &bull; Fixed blade path
* <a href="http://github.com/snipe/snipe-it/commit/7d67b6a9ae6898cd0cf1f4b42613eeadd4466075">view</a> &bull; Fixed forgotten password
* <a href="http://github.com/snipe/snipe-it/commit/59963b88f5857240b060bb227fb125fad695e3c3">view</a> &bull; Fixes #941 - looser restrictions on alpha_space custom validator
* <a href="http://github.com/snipe/snipe-it/commit/59b739c1c4ae3f11f6a36e7968f504d0e8322b76">view</a> &bull; Fixes #902 - redirect to group listing page after group create
* <a href="http://github.com/snipe/snipe-it/commit/cf3619d7666b0f0f4693769a06232db1ad0d5874">view</a> &bull; Fixes #937 - bug in which type of asset
* <a href="http://github.com/snipe/snipe-it/commit/6dea227c3e5123319263890cc6ddccda3fd6223c">view</a> &bull; Fixes #851 - bulk user delete
* <a href="http://github.com/snipe/snipe-it/commit/0f0dab556d7920c87a456356e415b515b3ea8b1a">view</a> &bull; Fixes #807 - bad link for subfolders
* <a href="http://github.com/snipe/snipe-it/commit/a901a648af4c383281ca6f36b5887f49604cf917">view</a> &bull; Fixes #875 - allow user to decline asset and check asset back in if declined
* <a href="http://github.com/snipe/snipe-it/commit/5e7bfe314a06d0caa370ddfc2c166988ef54a7e3">view</a> &bull; Fix missing ]
* <a href="http://github.com/snipe/snipe-it/commit/26e081a2cbd90b2a4c3443a8b60c8e86c0daab41">view</a> &bull; Fixes #909 again, because math is super hard
* <a href="http://github.com/snipe/snipe-it/commit/9184dd5303985af7ecf467bb57814b77bfb77077">view</a> &bull; Fix for sad action column with button wrapping
* <a href="http://github.com/snipe/snipe-it/commit/f99cafc101267d524c994f14f8f0470f3583aead">view</a> &bull; Fix for 0000-00-00 purchase date
* <a href="http://github.com/snipe/snipe-it/commit/b79841d481c5e3c3febddcc2e083614643fa967f">view</a> &bull; Fix for @uberbrady's missing route on inline adding
* <a href="http://github.com/snipe/snipe-it/commit/20eb2df9be6ae00f560f91d191b2f7ee9854f8ef">view</a> &bull; Fix to nicen up the layout for the inline-adding and Bootstrapify it.
* <a href="http://github.com/snipe/snipe-it/commit/bb450e6bb662c526581cefa08e63735b21b4dbb8">view</a> &bull; Merge pull request #980 from snipe/inline_layout_fix
* <a href="http://github.com/snipe/snipe-it/commit/c1ae844308a879fe9cb4d7999ddabba4bfa5fe9d">view</a> &bull; Fix #972 - Change back button to work
* <a href="http://github.com/snipe/snipe-it/commit/0c9018289b3fed49154e2d7138d4b760ce7d2752">view</a> &bull; Fixes #970
* <a href="http://github.com/snipe/snipe-it/commit/8c30c5d879ed1ebfcc23bf82cbf9bb0e247e1b5f">view</a> &bull; Fixed issue in routes file
* <a href="http://github.com/snipe/snipe-it/commit/948c443829f20f26c9a76af2f63bd48b7d363e5f">view</a> &bull; Fix for edit/clone
* <a href="http://github.com/snipe/snipe-it/commit/39da217a9ea1f300bc14f1615b2365027dab72dc">view</a> &bull; Fixed table nane for asset_logs in migration
* <a href="http://github.com/snipe/snipe-it/commit/3bb296db789db166faf11d1a0b8289a44d592271">view</a> &bull; Fixed language string for notes (when the hell did THAT break?)
* <a href="http://github.com/snipe/snipe-it/commit/c74c89a17124857e3f25d33f6d0a00f6eaf07861">view</a> &bull; Fixed the migration for adding thread_id to correct the table name and make thread_id nullable
* <a href="http://github.com/snipe/snipe-it/commit/37d4a0105eb2a361b493ab504b22383d400d4356">view</a> &bull; Fix for strict mode
* <a href="http://github.com/snipe/snipe-it/commit/a2aa05fcf95cf8cf4e9baa7cb3ab24a222a545fe">view</a> &bull; Fixed the migration for adding thread_id to correct the table name and make thread_id nullable
* <a href="http://github.com/snipe/snipe-it/commit/3c730c691b32dc7ccf26458929444a721ed1393f">view</a> &bull; Fixes #1010 - better errors on large file uploads
* <a href="http://github.com/snipe/snipe-it/commit/449ad4f86b03aac25891867067d9faa223cd7b5a">view</a> &bull; Fixes #1014 - error if no assets are unaccepted
* <a href="http://github.com/snipe/snipe-it/commit/eb00acddfdf12ed1bb41d0a07741927964614d17">view</a> &bull; Trying to fix the broken migration
* <a href="http://github.com/snipe/snipe-it/commit/dc265ba2a8abf9d0856728e6f6df79d4d89214a8">view</a> &bull; Fixed back button on user create
* <a href="http://github.com/snipe/snipe-it/commit/e253d611b4b36bc00bc9ae49fb2ba4e48d882805">view</a> &bull; Merge pull request #1027 from balticer/fix-validation-ampersand-and-sharp-s
* <a href="http://github.com/snipe/snipe-it/commit/66991ea66340ef7068f825da9fa505ee6b60b955">view</a> &bull; Fixes #1018 - allow name re-use if deleted
* <a href="http://github.com/snipe/snipe-it/commit/5dcc795aa298246e26cfba6c17422825db43f870">view</a> &bull; Fixes #1024 - delete option added to user dropdown
* <a href="http://github.com/snipe/snipe-it/commit/3c0cc946525c635e5703407672b30d433bf66af6">view</a> &bull; Fixed route
* <a href="http://github.com/snipe/snipe-it/commit/84d81184faffd53bbc348b3ceac3d416e0bdeab4">view</a> &bull; Fixes #1009 - Add MAC address to search
* <a href="http://github.com/snipe/snipe-it/commit/9540db424aabcd6747058f48e9ff766747749553">view</a> &bull; Fixes #948 - validate on model name+modelno+manufacturer combination
* <a href="http://github.com/snipe/snipe-it/commit/3ebbd030e7aff31b2844b92800e78575d28916b2">view</a> &bull; Fixed issue with Asset model
* <a href="http://github.com/snipe/snipe-it/commit/d363a0deec644443a94ff05aef8f5113817513ae">view</a> &bull; Merge branch 'feature/865_fixIssuesFromSnipe' of github.com:vsposato/snipe-it into feature/865_fixIssuesFromSnipe
* <a href="http://github.com/snipe/snipe-it/commit/38d774eb6a16cdde0b30190060c0723c8d6405f1">view</a> &bull; Merge pull request #1033 from vsposato/feature/865_fixIssuesFromSnipe
* <a href="http://github.com/snipe/snipe-it/commit/936d7dab1b67eccf8b0158d4ee2fe2d80afd24e6">view</a> &bull; Fixes #1043
* <a href="http://github.com/snipe/snipe-it/commit/c476eda868de0cb2deb068a0b49bfe7bfc14aa12">view</a> &bull; Removed link on location until location view is fixed
* <a href="http://github.com/snipe/snipe-it/commit/481b905331d361e6eaec5972bc5038862932b778">view</a> &bull; Fixes #1045 - allow 0 value for accessories
* <a href="http://github.com/snipe/snipe-it/commit/e4284d20f3b19fc7b685b8b13fcc74c6663bb802">view</a> &bull; Fixed error reporting
* <a href="http://github.com/snipe/snipe-it/commit/738e2533750e1455ded2df8b8e41fb97c2ebf45b">view</a> &bull; Fixed Slack notifier
* <a href="http://github.com/snipe/snipe-it/commit/b366dec983217e7fec13c8640951acddee915778">view</a> &bull; Fix display for NULL entries created by previous model modal
* <a href="http://github.com/snipe/snipe-it/commit/9f4fca4238ee3838b263e13a77a4647dab6ea8b8">view</a> &bull; Fixes #522
* <a href="http://github.com/snipe/snipe-it/commit/ed2d7310f8a4c6c7e7e41b0a587a0db6b8ea11c7">view</a> &bull; Fixed unsuspend icon
* <a href="http://github.com/snipe/snipe-it/commit/34b14f67c617957370fd2f6e875daf9dc0c5da1b">view</a> &bull; Fixed the formatting
* <a href="http://github.com/snipe/snipe-it/commit/d167f31af0f2fc595673cc4637ce9bd6e4bc5a75">view</a> &bull; Fixed indents
* <a href="http://github.com/snipe/snipe-it/commit/59617083c94cdf58d03b378d67b151c7d3055606">view</a> &bull; Fixed the break portion
* <a href="http://github.com/snipe/snipe-it/commit/4fcf70872f89f3d11b3779546b2398afbdfea592">view</a> &bull; Fixes #1054
* <a href="http://github.com/snipe/snipe-it/commit/67e0e14a12d49fc190daae553332a6c008f89314">view</a> &bull; License importer, small fixes for asset imporer
* <a href="http://github.com/snipe/snipe-it/commit/80fb7a4c13b3df18ea73a1360e98217876753439">view</a> &bull; Fixed author's name :P
* <a href="http://github.com/snipe/snipe-it/commit/e49cfb4bdef65fce08086dec4200d91a9ee90209">view</a> &bull; Fixed validation on LDAP
### v.0.3.5-alpha - Released Jun 20, 2014 02:23:09
### v1.2.11 - Released Aug 14, 2015 09:18:51
* <a href="http://github.com/snipe/snipe-it/commit/67e0e14a12d49fc190daae553332a6c008f89314">view</a> &bull; License importer, small fixes for asset imporer
### v1.2.10 - Released Aug 06, 2015 11:00:46
* <a href="http://github.com/snipe/snipe-it/commit/5455abfd16b45561bda3077f58032652d8e660ad">view</a> &bull; Fix for importer
* <a href="http://github.com/snipe/snipe-it/commit/5297d699b3f28704156a076d684210eb522919a0">view</a> &bull; Fix logo url
* <a href="http://github.com/snipe/snipe-it/commit/336858e4ed786f7cdbd147db8b04430e95a548bf">view</a> &bull; Fix #1022 - Missing Lang on viewing deleted user
### v1.2.9 - Released Jul 23, 2015 07:33:26
* <a href="http://github.com/snipe/snipe-it/commit/c8870ddcab0b521c9682cd8c5ab6fd56ee01753a">view</a> &bull; Fixes #736 - more fields in bulk edit
* <a href="http://github.com/snipe/snipe-it/commit/5e7a4e8193b26875729089b36b28adca1644cb8d">view</a> &bull; Fixes #599 - show groups in user list
* <a href="http://github.com/snipe/snipe-it/commit/f463cd6c8d72d9d28cd984ccad08fc596edbdaac">view</a> &bull; Fixes for #759 - location heirarchy
* <a href="http://github.com/snipe/snipe-it/commit/51eeee09d72148d4dae629744753a96e51c1b8ae">view</a> &bull; Fixes bug in #736 for new fields
* <a href="http://github.com/snipe/snipe-it/commit/3881e2e83eb72c1567db6c45afa40d7f79330bb3">view</a> &bull; Fixes #784 - add "create accessory" to topnav
* <a href="http://github.com/snipe/snipe-it/commit/aab52d08506f5bc1fd0fcf35229e04b0cb5883bb">view</a> &bull; Fix for strict mode with location parent
* <a href="http://github.com/snipe/snipe-it/commit/2f52369d075d6f95cd188acf14a23fcd9d431213">view</a> &bull; Fixed location string
* <a href="http://github.com/snipe/snipe-it/commit/139dd1339271351714623e53d323cce5356618de">view</a> &bull; Super janky miulti-level menu on create - TODO: Fix this ish.
* <a href="http://github.com/snipe/snipe-it/commit/2d7a348ab705fbca6f432f7adf0861085ab836c5">view</a> &bull; Fixed multi-level array nesting for locations
* <a href="http://github.com/snipe/snipe-it/commit/95279f885b231eda371835b9eeb998c683cfbfd3">view</a> &bull; Fixes #759 - populate form with parent location info
* <a href="http://github.com/snipe/snipe-it/commit/8cdea8a38404ed2187fa59f8e7f9198cb9ce94bb">view</a> &bull; Fix for location totals
* <a href="http://github.com/snipe/snipe-it/commit/496a768013c759a4e3fa190f5970bbb865cebd62">view</a> &bull; Fixes #795 - add model name if no asset name
* <a href="http://github.com/snipe/snipe-it/commit/7c95f4231e3281ca99744aa3ba8e530cf746c6ba">view</a> &bull; Fixes #799 - missing text in file delete confirmation
* <a href="http://github.com/snipe/snipe-it/commit/212f09dd310ba54f6b513ff867e7641bdc8cb3f1">view</a> &bull; Fixes #806
* <a href="http://github.com/snipe/snipe-it/commit/2540ac09ec9aa9d0e461be52fe117379a21474e0">view</a> &bull; Fixes #822
* <a href="http://github.com/snipe/snipe-it/commit/766b4b901f8dbefe4e052d1927f274a0ace4d7d3">view</a> &bull; Fixes #822 - make user notes field nullable default null
* <a href="http://github.com/snipe/snipe-it/commit/fdef26608971b747ca3ac9ada87f295311543892">view</a> &bull; Addresses #577 and fixes #165 - switch from email to username
* <a href="http://github.com/snipe/snipe-it/commit/f42540fedf92a315614c6c1dfacd31879fef2a78">view</a> &bull; More fixes for #165 - added username field
* <a href="http://github.com/snipe/snipe-it/commit/3d4607ebd3e7f6494912f38be40945eb4aa6a57b">view</a> &bull; Fixes #858 - find admin group by name instead of ID for consideration of clustered DBs
* <a href="http://github.com/snipe/snipe-it/commit/10135802367f015e0b91329d692e3358ef7ffeae">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/bf6674f6a0252abf51977a355cadc6fccbde7cd7">view</a> &bull; Added table prefix for raw queries
* <a href="http://github.com/snipe/snipe-it/commit/ea0f2c5f347d31a1543b7b3c980c9909a3e2403d">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/edddf6ae80cfa60af17544ed06c1b7c5883afe7a">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/2e585f9cd205e7fad93559281ac92b0fb09f816e">view</a> &bull; Fixes #839 - bad seed data
* <a href="http://github.com/snipe/snipe-it/commit/75b9b70a8632f10c7c55b6a62e8d19e6f8b4ebe8">view</a> &bull; Fix email field so it's nullable, fix app command to add user
* <a href="http://github.com/snipe/snipe-it/commit/94f8c6172042899f5f28723ceed2b562a5dca912">view</a> &bull; Fixes #280, #64 and #860 - added license expiration alert
* <a href="http://github.com/snipe/snipe-it/commit/85d6b062f3b2a4da6171d8e026f4077fa3cf4c39">view</a> &bull; Fixed checkbox alignment
* <a href="http://github.com/snipe/snipe-it/commit/f2e1ec092830822150d463d969ece2ce2f4795d4">view</a> &bull; Fixed QR simple view route
* <a href="http://github.com/snipe/snipe-it/commit/8ef3d00f2264d5338043887f6d23bb5c0b5cc508">view</a> &bull; Fixed language string for users
* <a href="http://github.com/snipe/snipe-it/commit/84e130d6aa4a53aea8fc75679ca270b25509a9a9">view</a> &bull; Fixes #869 - compatibility mode for IE
* <a href="http://github.com/snipe/snipe-it/commit/d4af197b0e8ecde9a36e2417fe7dd2fb7c5c28ec">view</a> &bull; Merge pull request #886 from madd15/Fix---Edit-user
* <a href="http://github.com/snipe/snipe-it/commit/e714def74aa6aeada6716ef091e599c5ebf9f8a1">view</a> &bull; Fix Reports showing class="active"
* <a href="http://github.com/snipe/snipe-it/commit/4a5066054b1bb75222c6765675366405a4f70b73">view</a> &bull; Display bugfixes for #819
* <a href="http://github.com/snipe/snipe-it/commit/7e5f32c9d85cc9a28976732d6232632e1cf0314a">view</a> &bull; Merge pull request #898 from madd15/Default-Layout-fix
* <a href="http://github.com/snipe/snipe-it/commit/d26c40b26e3daf0ac47eb0064a6d5c88dedd1ec8">view</a> &bull; Fixed issue where email not saved on edit
### v2.0-pre-beta - Released Jul 09, 2015 08:24:43
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/d1499deecdff3c7a4235ffdfad5adbddc1a5098f">view</a> &bull; Provisions for strict mode, fixed license deletion bug
* <a href="http://github.com/snipe/snipe-it/commit/c8870ddcab0b521c9682cd8c5ab6fd56ee01753a">view</a> &bull; Fixes #736 - more fields in bulk edit
* <a href="http://github.com/snipe/snipe-it/commit/5e7a4e8193b26875729089b36b28adca1644cb8d">view</a> &bull; Fixes #599 - show groups in user list
* <a href="http://github.com/snipe/snipe-it/commit/f463cd6c8d72d9d28cd984ccad08fc596edbdaac">view</a> &bull; Fixes for #759 - location heirarchy
* <a href="http://github.com/snipe/snipe-it/commit/51eeee09d72148d4dae629744753a96e51c1b8ae">view</a> &bull; Fixes bug in #736 for new fields
* <a href="http://github.com/snipe/snipe-it/commit/3881e2e83eb72c1567db6c45afa40d7f79330bb3">view</a> &bull; Fixes #784 - add "create accessory" to topnav
* <a href="http://github.com/snipe/snipe-it/commit/aab52d08506f5bc1fd0fcf35229e04b0cb5883bb">view</a> &bull; Fix for strict mode with location parent
* <a href="http://github.com/snipe/snipe-it/commit/2f52369d075d6f95cd188acf14a23fcd9d431213">view</a> &bull; Fixed location string
* <a href="http://github.com/snipe/snipe-it/commit/139dd1339271351714623e53d323cce5356618de">view</a> &bull; Super janky miulti-level menu on create - TODO: Fix this ish.
* <a href="http://github.com/snipe/snipe-it/commit/2d7a348ab705fbca6f432f7adf0861085ab836c5">view</a> &bull; Fixed multi-level array nesting for locations
* <a href="http://github.com/snipe/snipe-it/commit/95279f885b231eda371835b9eeb998c683cfbfd3">view</a> &bull; Fixes #759 - populate form with parent location info
* <a href="http://github.com/snipe/snipe-it/commit/8cdea8a38404ed2187fa59f8e7f9198cb9ce94bb">view</a> &bull; Fix for location totals
* <a href="http://github.com/snipe/snipe-it/commit/496a768013c759a4e3fa190f5970bbb865cebd62">view</a> &bull; Fixes #795 - add model name if no asset name
* <a href="http://github.com/snipe/snipe-it/commit/7c95f4231e3281ca99744aa3ba8e530cf746c6ba">view</a> &bull; Fixes #799 - missing text in file delete confirmation
* <a href="http://github.com/snipe/snipe-it/commit/212f09dd310ba54f6b513ff867e7641bdc8cb3f1">view</a> &bull; Fixes #806
* <a href="http://github.com/snipe/snipe-it/commit/2540ac09ec9aa9d0e461be52fe117379a21474e0">view</a> &bull; Fixes #822
* <a href="http://github.com/snipe/snipe-it/commit/766b4b901f8dbefe4e052d1927f274a0ace4d7d3">view</a> &bull; Fixes #822 - make user notes field nullable default null
* <a href="http://github.com/snipe/snipe-it/commit/fdef26608971b747ca3ac9ada87f295311543892">view</a> &bull; Addresses #577 and fixes #165 - switch from email to username
* <a href="http://github.com/snipe/snipe-it/commit/f42540fedf92a315614c6c1dfacd31879fef2a78">view</a> &bull; More fixes for #165 - added username field
* <a href="http://github.com/snipe/snipe-it/commit/3d4607ebd3e7f6494912f38be40945eb4aa6a57b">view</a> &bull; Fixes #858 - find admin group by name instead of ID for consideration of clustered DBs
* <a href="http://github.com/snipe/snipe-it/commit/10135802367f015e0b91329d692e3358ef7ffeae">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/bf6674f6a0252abf51977a355cadc6fccbde7cd7">view</a> &bull; Added table prefix for raw queries
* <a href="http://github.com/snipe/snipe-it/commit/ea0f2c5f347d31a1543b7b3c980c9909a3e2403d">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/edddf6ae80cfa60af17544ed06c1b7c5883afe7a">view</a> &bull; Fixes #833 - remove status label field if asset is checked out
* <a href="http://github.com/snipe/snipe-it/commit/2e585f9cd205e7fad93559281ac92b0fb09f816e">view</a> &bull; Fixes #839 - bad seed data
* <a href="http://github.com/snipe/snipe-it/commit/75b9b70a8632f10c7c55b6a62e8d19e6f8b4ebe8">view</a> &bull; Fix email field so it's nullable, fix app command to add user
* <a href="http://github.com/snipe/snipe-it/commit/94f8c6172042899f5f28723ceed2b562a5dca912">view</a> &bull; Fixes #280, #64 and #860 - added license expiration alert
* <a href="http://github.com/snipe/snipe-it/commit/85d6b062f3b2a4da6171d8e026f4077fa3cf4c39">view</a> &bull; Fixed checkbox alignment
* <a href="http://github.com/snipe/snipe-it/commit/f2e1ec092830822150d463d969ece2ce2f4795d4">view</a> &bull; Fixed QR simple view route
* <a href="http://github.com/snipe/snipe-it/commit/8ef3d00f2264d5338043887f6d23bb5c0b5cc508">view</a> &bull; Fixed language string for users
* <a href="http://github.com/snipe/snipe-it/commit/84e130d6aa4a53aea8fc75679ca270b25509a9a9">view</a> &bull; Fixes #869 - compatibility mode for IE
* <a href="http://github.com/snipe/snipe-it/commit/95920be8ea5608f0b3da831f3bac369b05d5aafe">view</a> &bull; Fixed weird commenting
* <a href="http://github.com/snipe/snipe-it/commit/d4af197b0e8ecde9a36e2417fe7dd2fb7c5c28ec">view</a> &bull; Merge pull request #886 from madd15/Fix---Edit-user
* <a href="http://github.com/snipe/snipe-it/commit/a22687abc5cc913d5f83ecbac4046ba05353d30e">view</a> &bull; Fix #896 - Only show Checkout/Checkin if deployable
* <a href="http://github.com/snipe/snipe-it/commit/e714def74aa6aeada6716ef091e599c5ebf9f8a1">view</a> &bull; Fix Reports showing class="active"
* <a href="http://github.com/snipe/snipe-it/commit/05f0b94bf6b3e746093b45a1ecb6f432e6901880">view</a> &bull; Fixed language string
* <a href="http://github.com/snipe/snipe-it/commit/de23ec57851f6c5a25b288919d82175dacc27426">view</a> &bull; Fixes #544 - disable checking an asset out to a user if it is not a deployable status
* <a href="http://github.com/snipe/snipe-it/commit/fd59ca0802998f9d24e3b682182ccea0652b9c6d">view</a> &bull; Fixed spacing
* <a href="http://github.com/snipe/snipe-it/commit/c2d63915c3ed7e87fcc0b62c0171f6326d15f624">view</a> &bull; Fixed insecure font call
* <a href="http://github.com/snipe/snipe-it/commit/4a5066054b1bb75222c6765675366405a4f70b73">view</a> &bull; Display bugfixes for #819
* <a href="http://github.com/snipe/snipe-it/commit/f8be47dfbf567ab75657e02a4e75661a12381a8f">view</a> &bull; Fixes #903 - adds config variable for multi_login, overrides Sentry method
* <a href="http://github.com/snipe/snipe-it/commit/e9443a244cdf7f9495d1b780ae6478204988f207">view</a> &bull; Small fix to config value
* <a href="http://github.com/snipe/snipe-it/commit/7e5f32c9d85cc9a28976732d6232632e1cf0314a">view</a> &bull; Merge pull request #898 from madd15/Default-Layout-fix
### v.0.3.4-alpha - Released Jun 19, 2014 10:27:59
### v1.2.8 - Released Jun 19, 2015 04:16:08
* <a href="http://github.com/snipe/snipe-it/commit/a8a0a59982e6f956662b6ff53a1a8c02802b54e2">view</a> &bull; Fixes #825 - title bar spacing issue
* <a href="http://github.com/snipe/snipe-it/commit/5939e46eeeeb6b1c54cc241ea8e85e358bc21d40">view</a> &bull; Bumped version for fixed 1.2.7
* <a href="http://github.com/snipe/snipe-it/commit/c69038d3ae7eeb36c3d3f8552092774bdff5340c">view</a> &bull; Fixes #836
* <a href="http://github.com/snipe/snipe-it/commit/5a6fe6ccf8aa9af8ab09f0cb2fa79130b8ab81ee">view</a> &bull; Fixes #806
* <a href="http://github.com/snipe/snipe-it/commit/7820efc12127068dff9e1c7a8c97cc2cf939d976">view</a> &bull; Fixes #822 and #847 - added notes field on import for MySQL strict mode
* <a href="http://github.com/snipe/snipe-it/commit/c3c4e9def212b8bc5a36526bbfff8b1939c01464">view</a> &bull; Fixes #852 - localized string for file types, added zip and rar for asset upload
### v1.2.7-master - Released May 27, 2015 06:45:44
* <a href="http://github.com/snipe/snipe-it/commit/73a08c031c2ff48bbe7e2886dd986a4566f14908">view</a> &bull; Fixes #818, and randomizes password for dummy user
### v1.2.7 - Released May 02, 2015 07:28:34
* <a href="http://github.com/snipe/snipe-it/commit/9f9a9a51b36f19969497b196c8dbbeec08f7bdde">view</a> &bull; Fixes #774 - layout issue on profiles
* <a href="http://github.com/snipe/snipe-it/commit/c95af8445298f3de326f3b3535a62ad2b772c1cb">view</a> &bull; Fixes #750 because @uberbrady can't code
* <a href="http://github.com/snipe/snipe-it/commit/77d1d93ebcc4867066a1dee5bd049378a1255436">view</a> &bull; Fixes #729 - CSS wordwrap for long licenses
### v1.2.7-beta - Released Apr 30, 2015 01:01:43
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/08d05b481f6366ad48fcdce72a8df53755f5dee8">view</a> &bull; Fixes #158
* <a href="http://github.com/snipe/snipe-it/commit/62d5ed48f087d6e1e4f486e59039d2f87619b056">view</a> &bull; Fixes #645 - added zip/rar to filetypes
* <a href="http://github.com/snipe/snipe-it/commit/fc81e404cabb734ab90b8fd69ba33e78d2c89157">view</a> &bull; Fix #652 - Change UX of signin form
* <a href="http://github.com/snipe/snipe-it/commit/5cfb2d5f6a424b7f2d71cc488d76ebcfdf6f802e">view</a> &bull; Fixed modal delete in ajax tables
* <a href="http://github.com/snipe/snipe-it/commit/6f38f76e4a1c09a3dcbfa6db6dcb56f03f083c12">view</a> &bull; Haha - TOTALLY cheated. But it works. Fixed ordering for linked names
* <a href="http://github.com/snipe/snipe-it/commit/69b80dc9c6dc4acf7cfad5f61da326b203dad1f8">view</a> &bull; Fixed Sorting
* <a href="http://github.com/snipe/snipe-it/commit/958a7298fe905e933c1e68f65d22dfa20875ee8a">view</a> &bull; Fix excludes
* <a href="http://github.com/snipe/snipe-it/commit/bb7d3d1a8515684e646255584bd977e706b75c6f">view</a> &bull; Fix button layouts
* <a href="http://github.com/snipe/snipe-it/commit/46c1f2a28bb141b65f362936c59779376ba0ce3e">view</a> &bull; Server side datatables for user view - needs fix for deleted users
* <a href="http://github.com/snipe/snipe-it/commit/0ffb5df40b1983527efabad44e6c32fe0af3141f">view</a> &bull; Fixed changelog order
* <a href="http://github.com/snipe/snipe-it/commit/3da652216bca192c16783fa52eb83ac650c7fba5">view</a> &bull; Possible fix for #652 - need to test mobile and Cinema display
* <a href="http://github.com/snipe/snipe-it/commit/e01b1b3935786c7263a7e6fd4913bf1ffaf99965">view</a> &bull; Fix scopeGetDeleted - Missing withTrashed()
* <a href="http://github.com/snipe/snipe-it/commit/c00086c7407e885219ec18339b0a328652f006ce">view</a> &bull; Fix eager loading for user throttle
* <a href="http://github.com/snipe/snipe-it/commit/4c3033d414c30da9db73318edce6d75e3ebe2fec">view</a> &bull; Fix spacing between Create and Import
* <a href="http://github.com/snipe/snipe-it/commit/176264b3178fca6de30a0c5d18b6ac00e6b703b1">view</a> &bull; Fix title for deleted
* <a href="http://github.com/snipe/snipe-it/commit/4f18a71124bcf93943ae972ca4080a4943166003">view</a> &bull; Fix space in title
* <a href="http://github.com/snipe/snipe-it/commit/519575893d800790a3455ee263777cc675c49ad9">view</a> &bull; Fix JS modal error
* <a href="http://github.com/snipe/snipe-it/commit/9edcc39de244c76ae2b8f8df473aa891996cd53d">view</a> &bull; Fix restore button now showing
* <a href="http://github.com/snipe/snipe-it/commit/c14761b9a1af093c748c2bfa19b38a38c200502e">view</a> &bull; Re-fix button not showing
* <a href="http://github.com/snipe/snipe-it/commit/c8bf26a3b3d29f44f6b45dfbbda5a33985ae076d">view</a> &bull; Fix layout of loading box
* <a href="http://github.com/snipe/snipe-it/commit/4aa4e7c9fc831f151e4fd4a2676b7f8e1b845841">view</a> &bull; Fix error if user is not in throttle table
* <a href="http://github.com/snipe/snipe-it/commit/3782531f57b79a9877107ddee16c77e01e142cfd">view</a> &bull; Fix missing </div>
* <a href="http://github.com/snipe/snipe-it/commit/2d9e49f245565e7236145981163af64cc20233c4">view</a> &bull; Fix #682 - Updated buttons and data loading
* <a href="http://github.com/snipe/snipe-it/commit/c79fd5ed304915450109652d4d4cb13b322f90d2">view</a> &bull; Fix showAll on Print
* <a href="http://github.com/snipe/snipe-it/commit/da983af2cb05901ecc22fbc9691f3dff9e23a5e8">view</a> &bull; Fix #683 - Use sAjaxSource, change to processing
* <a href="http://github.com/snipe/snipe-it/commit/86623822f5d0641764913a9db51cda0ecc79dfd5">view</a> &bull; Trying to fix the build
* <a href="http://github.com/snipe/snipe-it/commit/35bbea30521984cf9038244b52deab97a8565f5a">view</a> &bull; Fixes #688 - show model if no asset name
* <a href="http://github.com/snipe/snipe-it/commit/faa999ab2b471fed92062d738f695cdc0c0985c8">view</a> &bull; Fix incorrect values
* <a href="http://github.com/snipe/snipe-it/commit/66d187223041093f9e75190cf6e7c54586ec885d">view</a> &bull; Fix button spacing
* <a href="http://github.com/snipe/snipe-it/commit/a9f15fbcaef14ae1f78f08da632032c41074c0f9">view</a> &bull; Convert Categories View to use Datatables, and fix Model View missing comma
* <a href="http://github.com/snipe/snipe-it/commit/d9b92240450f559d60b811d6ab6be948995de9e5">view</a> &bull; Fix mobile unable to click sign in
* <a href="http://github.com/snipe/snipe-it/commit/7f2ccc860b5af8effdadff91119d5d9ffe9c0584">view</a> &bull; Remove forgot password link and fix save icon
* <a href="http://github.com/snipe/snipe-it/commit/d952a1199b285dd2c7de3567ea6f4d006c489920">view</a> &bull; Remove forgot password link and fix save icon
* <a href="http://github.com/snipe/snipe-it/commit/b32379393f7572fe0199920ec6453ca4bc05aab6">view</a> &bull; Fix missed hardware statuses
* <a href="http://github.com/snipe/snipe-it/commit/06b3d6e5cef265546ae457d6088324bff6a97440">view</a> &bull; Fix saveState, change chumper defaults
* <a href="http://github.com/snipe/snipe-it/commit/7d35fae0f499f4f4e4453e74e3b144a4ca2f4f5c">view</a> &bull; Fix processing stuck on exit print view
* <a href="http://github.com/snipe/snipe-it/commit/5d946b19cb9a00676fb5d40e7d15238bbb8aec86">view</a> &bull; Fixed checkmodel at route level
* <a href="http://github.com/snipe/snipe-it/commit/0c827b318bfe6d4e5ac28c0cee133e5c625abf57">view</a> &bull; Default location fix
* <a href="http://github.com/snipe/snipe-it/commit/b0886f970acffdec302bd6836157c9f7dacfdee0">view</a> &bull; Fix link to the demo
* <a href="http://github.com/snipe/snipe-it/commit/ff23616bb56cdc83e0f3aadc97ab6288c42ee42e">view</a> &bull; Fix #712 - Change RTD to Deployed if checkedout
* <a href="http://github.com/snipe/snipe-it/commit/92a4f025d83e1aed2cdd041296f5d46fc61c39eb">view</a> &bull; Fixes #718 - uppercase state/country abbreviations
* <a href="http://github.com/snipe/snipe-it/commit/46781c94cd9bcc49e7cc1e1fb9be309d4d690f0d">view</a> &bull; Fix #715 - Missing $modelCheck api call
* <a href="http://github.com/snipe/snipe-it/commit/6b853750e59eacbb13ab3ef7ed403be4702e701c">view</a> &bull; Fix for strict mode app install
* <a href="http://github.com/snipe/snipe-it/commit/e4b45231ecfa34b4f504db42f3f18c4440f0085a">view</a> &bull; Fix for bad seed data if Jon Doe doesn't get created
* <a href="http://github.com/snipe/snipe-it/commit/33e7ce67616e8153785516ceca7423257bca9718">view</a> &bull; Fixes for #722 localization
* <a href="http://github.com/snipe/snipe-it/commit/c88ce0d14d605d74b297f18bf55533218ed445bf">view</a> &bull; Fixes for #722 datatables
* <a href="http://github.com/snipe/snipe-it/commit/efba1b90386b6481b9679a2ec8ddc85d1bd6d7d3">view</a> &bull; Fix update button to goto right group
* <a href="http://github.com/snipe/snipe-it/commit/9de083afa78d5e76e289007423cb74b05371efc9">view</a> &bull; Merge pull request #734 from snipe/depreciation_fix2
* <a href="http://github.com/snipe/snipe-it/commit/1a4f148318ca325bad1e042aeb7514933faeff7a">view</a> &bull; Fix #737 -Only display comma & address2 if not Null
* <a href="http://github.com/snipe/snipe-it/commit/ba58e718b4af2e2f60138e0b6fb3f6f6985f30e0">view</a> &bull; Resolved some deps from vendor changes
* <a href="http://github.com/snipe/snipe-it/commit/1c2e5ecc0f9460bc23f3c0e6ee44774263d08bd6">view</a> &bull; Remove space after concat to fix SQL FUNCTION CONCAT NOT EXIST error
* <a href="http://github.com/snipe/snipe-it/commit/564d5fcb31689ab22405cd56ff402af097e1af7a">view</a> &bull; Merge pull request #770 from southwolf/fix-concat-space
* <a href="http://github.com/snipe/snipe-it/commit/b4b273fc43a0e1a6d6b5bc128b42fe0f093735f1">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/6a7fcd5c40b201cc0744eab8b73bd66bfa8e33aa">view</a> &bull; Fixes #769 - set sort order for Accessory Category
* <a href="http://github.com/snipe/snipe-it/commit/d61506fcf7d8e368febb9bfbc3a404fde6374ca8">view</a> &bull; Fixes for #766 - add activity report
* <a href="http://github.com/snipe/snipe-it/commit/9841dbbbc42c182f98d561cc319175973a55b789">view</a> &bull; Fixed HTML so settings are saved correctly
* <a href="http://github.com/snipe/snipe-it/commit/a0fce2e0fb9f005c1dcdccccfb346ca1da72640a">view</a> &bull; Fixes #766
* <a href="http://github.com/snipe/snipe-it/commit/3b491d4a6bc02b3a0b46e8eae6804879a119f56e">view</a> &bull; Fixes #757 - use showAssetName method
* <a href="http://github.com/snipe/snipe-it/commit/767e2c69f324d32e0a49e0a386bd14640ad0304e">view</a> &bull; Fixes #751 - ignore whether depreciation was selected or not to display purchase cost
### v.0.3.3-alpha - Released Jun 18, 2014 08:04:46
### v1.2.6.1 - Released Mar 12, 2015 08:25:28
* <a href="http://github.com/snipe/snipe-it/commit/7047af44f6544d2eeed0f0fcefdbdd44489f189a">view</a> &bull; Fixed layout for remember me button
* <a href="http://github.com/snipe/snipe-it/commit/4502582beb064ffeee4a1cdf892f513e58534014">view</a> &bull; Trying to fix pre-commit hook :(
* <a href="http://github.com/snipe/snipe-it/commit/61b04d6e40baa9054e1701455259d8d62fa868ff">view</a> &bull; Fixes #579 - user cannot accept more than once
* <a href="http://github.com/snipe/snipe-it/commit/2d196b1595ec87f119ad5a82f8f676918c52c896">view</a> &bull; Fixes #602 for strict_mode
* <a href="http://github.com/snipe/snipe-it/commit/2540e90c37f37515d8d0277a4152c4b8198a4222">view</a> &bull; Fixes #605 - hides user requestable view from admins
* <a href="http://github.com/snipe/snipe-it/commit/1c333e4a24a4950418175a8c354d7541637b7658">view</a> &bull; Fixes #596 - better routes for checking in multiple items from user
* <a href="http://github.com/snipe/snipe-it/commit/7d5ee9750f912d85ac0c7f42e2beaba7e026989c">view</a> &bull; Added #596 fix for accessories
* <a href="http://github.com/snipe/snipe-it/commit/3f9d9f23d5190052deb1f36be919c650e8f773b8">view</a> &bull; Fixes #280 - updated link to use config url
* <a href="http://github.com/snipe/snipe-it/commit/817384b7615a301d6d692aefe6e41cd92ecfd6e1">view</a> &bull; Fixes #597 - print-friendly view on users
* <a href="http://github.com/snipe/snipe-it/commit/2115c82587e06049245f17f9d710fbc7a61e57b9">view</a> &bull; Fixed DB format for nullable EULA
* <a href="http://github.com/snipe/snipe-it/commit/f62f22b4bf1399c3b98041dfe17f4cc8450847b2">view</a> &bull; ref #599. showing groups in user detail view. fixes a small design bug with group edit view
* <a href="http://github.com/snipe/snipe-it/commit/ad25c048c4a52a7f80a479a3b7d621aaad18b1d7">view</a> &bull; Updated Sentry version to fix #625
* <a href="http://github.com/snipe/snipe-it/commit/d31c12cfafb2ba323973964215f033bd9aeb1f9b">view</a> &bull; Merge pull request #629 from uberbrady/unicode_fix
* <a href="http://github.com/snipe/snipe-it/commit/33dd59fb814089c81886c0264b2356df2b212864">view</a> &bull; Fix #637 - Remove Deleted Models from drop down
* <a href="http://github.com/snipe/snipe-it/commit/cb171bcac5c4ccbb347f370e3d2b28783378c0b2">view</a> &bull; Fixes #645 - adds zip and rar to filetype
### v1.2.6 - Released Feb 28, 2015 08:27:45
### v1.2.6-beta - Released Feb 27, 2015 03:17:06
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/3518ab9f55f7992d6d4f886389d67b062a02f2d8">view</a> &bull; Fixes #139
* <a href="http://github.com/snipe/snipe-it/commit/ad9b1fc446ab15157502fe7c52ddbda455e3ea8f">view</a> &bull; Fixes #139
* <a href="http://github.com/snipe/snipe-it/commit/dfa5d1c64205b23c4c3d16190d1478da8aa0edbb">view</a> &bull; Fixes #136
* <a href="http://github.com/snipe/snipe-it/commit/9714178ce1fa1e2814389e4b6b82eb596a650084">view</a> &bull; Fixes #141
* <a href="http://github.com/snipe/snipe-it/commit/607484b29407718238571eb5269c9c27830338f7">view</a> &bull; Fixes #141 for mysql with strict mode enabled
* <a href="http://github.com/snipe/snipe-it/commit/cbc945299e7f67f5f10dfdc6a875e5c53ac8440a">view</a> &bull; Fixes #148
* <a href="http://github.com/snipe/snipe-it/commit/dc256583d410cb09253e30b075149c79fb4864e5">view</a> &bull; Fixes #144
* <a href="http://github.com/snipe/snipe-it/commit/610c405aa50118163ad5d26d43e4bf6c2456f624">view</a> &bull; More fixes for #151
* <a href="http://github.com/snipe/snipe-it/commit/30df21c7aa2582bc3b1efbfd788c1aea2733aa7d">view</a> &bull; Fixed missing checkedout-to info on asset view
* <a href="http://github.com/snipe/snipe-it/commit/70ae59ed6260101bcfb6e3cbd6309ecb9c1c935a">view</a> &bull; Fixed a bug when no assets are in table that the autoincrement method blows up. Also optimzed the logic to get max id instead of popping top off creation date.
* <a href="http://github.com/snipe/snipe-it/commit/f8e12cabd4af8875abd759a3c9d6c2216cb88601">view</a> &bull; Fixes #476 - added logo upload and header color
* <a href="http://github.com/snipe/snipe-it/commit/f85061f988a946f1d4a284fbfc8c442636c1364c">view</a> &bull; Fix #541 - Headers not being skipped if checked
* <a href="http://github.com/snipe/snipe-it/commit/8b3e22b58e080b44e4de809b8598283fa6ba5bb0">view</a> &bull; Fixes #546 - only insert data if values exist
* <a href="http://github.com/snipe/snipe-it/commit/083cb1b5ec51aa2b6932a59b9436a1a45fad5460">view</a> &bull; Fix activate for strict db
* <a href="http://github.com/snipe/snipe-it/commit/35cf5b3d609fec2bc3613bdae42d338448413520">view</a> &bull; Fixes #423
* <a href="http://github.com/snipe/snipe-it/commit/097bb38a231795aa52ff772a38887700e828256d">view</a> &bull; Fixes #163 - accept acceptance + eula
* <a href="http://github.com/snipe/snipe-it/commit/b2af455523fcca1bb02018b38fdb6dc4861819d8">view</a> &bull; Merge conflict resolution. Added a use at the same line as remote. Fixed
* <a href="http://github.com/snipe/snipe-it/commit/8879bff16084b2cfa0280fcb1f83d3f90368797f">view</a> &bull; Fixed bug for reporting on upload in dashboard
* <a href="http://github.com/snipe/snipe-it/commit/3135869d5a3fafcf70e49dcbb99e36c2ec04ddd0">view</a> &bull; Fixed font path
* <a href="http://github.com/snipe/snipe-it/commit/a5a1c4223b357b9cc2751a28e0c4e3085e476733">view</a> &bull; Fixed chevrons
* <a href="http://github.com/snipe/snipe-it/commit/734dc49564e4f970846f786177c9d2928284fb5f">view</a> &bull; Fixed icon
* <a href="http://github.com/snipe/snipe-it/commit/a6232cbfd8050ace613259df56afae243954c625">view</a> &bull; Fix language string for create accessory
* <a href="http://github.com/snipe/snipe-it/commit/c2bbc1281ccdda65caa55665c66c78613142099f">view</a> &bull; Mobile fixes
* <a href="http://github.com/snipe/snipe-it/commit/29863004e2e622a9b3b4616abdcd92f2b950bebe">view</a> &bull; more small mobile fixes
* <a href="http://github.com/snipe/snipe-it/commit/8eaa70c39b3ace90a517387dc91f452aede18958">view</a> &bull; Fixes #567 - bug in depreciation report csv export
* <a href="http://github.com/snipe/snipe-it/commit/e41621def05994302627cd4a6a81abd8e43c86be">view</a> &bull; Fixed relation between accessory and category
* <a href="http://github.com/snipe/snipe-it/commit/9f3edd701b51a7aecf792e5736534c1bb15aca9a">view</a> &bull; Fixes #565 - Soft Delete Models and Allow Restore
* <a href="http://github.com/snipe/snipe-it/commit/528c06cf7fb4f5c35d4b90eb256c0d195b8366b7">view</a> &bull; Reverting icon fix
* <a href="http://github.com/snipe/snipe-it/commit/1ac401f0c036eca0cec1df0986d4c7e1903556fa">view</a> &bull; Fixed EULA mail
* <a href="http://github.com/snipe/snipe-it/commit/6d16c97902dadad2351b627f3157257774a075f3">view</a> &bull; Fixed back arrow
* <a href="http://github.com/snipe/snipe-it/commit/3e189d3502f8147c012b641cc366394875e9005c">view</a> &bull; Fixes #538 - sortable tables
* <a href="http://github.com/snipe/snipe-it/commit/31df29cac878deeb75d8b9b5a2efc7c84ef4b592">view</a> &bull; Fixed funky layout from datatables
* <a href="http://github.com/snipe/snipe-it/commit/efaf067b948899d0b784f47092dc3bc22fe504ca">view</a> &bull; Fixed user relationship
* <a href="http://github.com/snipe/snipe-it/commit/5010720a976019306e37b89f5aa0e917c0ffdea3">view</a> &bull; Fixed accessory relationship
* <a href="http://github.com/snipe/snipe-it/commit/a20e1f6943eab11fc937fcfeb3fe99dc0d520734">view</a> &bull; Fixed attach to relation
* <a href="http://github.com/snipe/snipe-it/commit/19ad8970d76a1676de3494b758efa65c0ed6a5c1">view</a> &bull; Fixed arrow icon
* <a href="http://github.com/snipe/snipe-it/commit/430b8233ed6f23402597fe54215b9988a3405dd7">view</a> &bull; Fixed user relationship
* <a href="http://github.com/snipe/snipe-it/commit/c0c563b1c77ff9942212af89384c8ded40b83b29">view</a> &bull; Fixes accessory relationshop for pivot
* <a href="http://github.com/snipe/snipe-it/commit/ef6eae63d86f159a170c3a322a44e08bab827080">view</a> &bull; Fixed error icon
* <a href="http://github.com/snipe/snipe-it/commit/d33dcbbcb12172527cec977f679198f594ac975b">view</a> &bull; Fixed bad method call in accessories on delete
* <a href="http://github.com/snipe/snipe-it/commit/04735f1affd2fdff9d6cf96ed583ece895cfb341">view</a> &bull; Fixed assetlog display
* <a href="http://github.com/snipe/snipe-it/commit/c484afb12b0720eaba2d28f501bf547e2ad9caa9">view</a> &bull; Fixed typo for accessories accept
### v.0.3.2-alpha - Released May 06, 2014 08:26:21
### v1.2.5 - Released Feb 18, 2015 03:18:10
* <a href="http://github.com/snipe/snipe-it/commit/00f7717142e11b90764ffce2d554c566f8ad219f">view</a> &bull; Fix #475 and styling
* <a href="http://github.com/snipe/snipe-it/commit/49f25a23a99c08606d58101e039a885b89503fa7">view</a> &bull; Merge pull request #516 from splaer/fix-475
* <a href="http://github.com/snipe/snipe-it/commit/58ff929d7193b054073ef46ae2fafdef51d51919">view</a> &bull; Fixes error when no model present because new asset
* <a href="http://github.com/snipe/snipe-it/commit/f57c61dd4d789635cee6f62899807b1a7928800e">view</a> &bull; Possible fix for #518 - license count issue
* <a href="http://github.com/snipe/snipe-it/commit/064c0211dbb310d1dfdb126e3ce2cee72a80f628">view</a> &bull; Fix #517 - User Requestable Assets
* <a href="http://github.com/snipe/snipe-it/commit/4a5007264e1712250726047162df91041d12d28c">view</a> &bull; Fixed mac address not showing
* <a href="http://github.com/snipe/snipe-it/commit/17258b73a1c09918960d894702a0ae341a18f0b8">view</a> &bull; Fixes #520 - state no longer required
* <a href="http://github.com/snipe/snipe-it/commit/f40bb7b8b3a17ff772c797a3f91a845b068be3d2">view</a> &bull; Fixes #520 postal code requirement
* <a href="http://github.com/snipe/snipe-it/commit/08ee02d0cd4d1ff9ed2b0600b75390c1e34c1f53">view</a> &bull; Fixes #525 - added serial to asset model UI
* <a href="http://github.com/snipe/snipe-it/commit/24f5cdc743acd55ead02282e13e07f3cbd3551b0">view</a> &bull; Fixes #523 - added file uploads to assets
* <a href="http://github.com/snipe/snipe-it/commit/e02bea4275306fb3d2696e3018066b4b1486fa8d">view</a> &bull; Fixes #457 - added bulk options to hardware
* <a href="http://github.com/snipe/snipe-it/commit/4e4144ea749974332f645fa77eb74fbbfef51b90">view</a> &bull; Fixed blade reference
* <a href="http://github.com/snipe/snipe-it/commit/b32d74de57a3a26326a220236838f57550549ca5">view</a> &bull; Fixed seeder with duplicate ID
* <a href="http://github.com/snipe/snipe-it/commit/ea6a6d098ad1795fc5463c61b72240cdcd8a43e7">view</a> &bull; Fixes #440 - removed unique constraint on serial
* <a href="http://github.com/snipe/snipe-it/commit/38961298ed6efe3649fdbf4b1e9b3278ab85567a">view</a> &bull; Fixes #439 - loads javascript and CSS locally
* <a href="http://github.com/snipe/snipe-it/commit/063e5c407c8f817c16026887be16eeb42598417f">view</a> &bull; Fixed the depreciation report, fixes to calculate current depreciated value (which were only used there). Additional fixes and refactoring around Depreciable, in terms of how assets get depreciation via models, and licenses get depreciation directly.
### v1.2.4 - Released Feb 12, 2015 06:57:47
* <a href="http://github.com/snipe/snipe-it/commit/2277b6ee699a78108523eee11695a280e76b1bb4">view</a> &bull; Fixed checkout logic for new assigned_to
* <a href="http://github.com/snipe/snipe-it/commit/dbc93de6b3966470f83254547f8029c60f489490">view</a> &bull; Fixes checkin button on view
* <a href="http://github.com/snipe/snipe-it/commit/c06a4d4118039d112b69e48f9d4efc2be796f2e0">view</a> &bull; Fixed wonky checkin/checkout buttons
* <a href="http://github.com/snipe/snipe-it/commit/31f4ba88f655e1386f2f4f0efae84399f7aa6d52">view</a> &bull; Fix RTD query to not display checked out asset
* <a href="http://github.com/snipe/snipe-it/commit/5867c604104781c351f870ff3e0fd4b4d6eeb35a">view</a> &bull; Fixed scope chaining on assigned_to
* <a href="http://github.com/snipe/snipe-it/commit/a2178392e65bcc35594d516a20f67eea8466e5c1">view</a> &bull; Fixed seeder
* <a href="http://github.com/snipe/snipe-it/commit/7715731c4a2e423afb94873227eb728ad4877221">view</a> &bull; Fix count in header
* <a href="http://github.com/snipe/snipe-it/commit/c2e532e32e4943e251dcb5fdd005e9b65d9798a5">view</a> &bull; Fixed language file for status label messages
* <a href="http://github.com/snipe/snipe-it/commit/f36029a34a696d89b1058c9abdca7953d51e2bc4">view</a> &bull; Fixed migration for to set assigned_to to null per #506
* <a href="http://github.com/snipe/snipe-it/commit/f72b38579037d76b5b188c5d85e24ca567e2480b">view</a> &bull; Fix licenses so null instead of 0
* <a href="http://github.com/snipe/snipe-it/commit/34032c73ceee7a9666680f21bf7490fdc32dbdb6">view</a> &bull; Fixed licenses so null instead of 0
* <a href="http://github.com/snipe/snipe-it/commit/7b165a12e05396b72381fc2789124acd2b98a2b8">view</a> &bull; Fixes #508 - compacted UI for licenses overview
* <a href="http://github.com/snipe/snipe-it/commit/c89be345033bfbed326ffd4207a63438ea09378f">view</a> &bull; Fixes #329 and #454 - added category asset view
* <a href="http://github.com/snipe/snipe-it/commit/35a133bbf9f7330a038dda2e79995b9825ca7633">view</a> &bull; Fixes #382 - allow admins to restore deleted assets
* <a href="http://github.com/snipe/snipe-it/commit/80e10c4c9838ae4acea8847ed907c6ad05bfac1a">view</a> &bull; Fixes #387 - sortable asset view by manufacturer
* <a href="http://github.com/snipe/snipe-it/commit/e343c157c5998d6f30a4e25da23ad1092d50c103">view</a> &bull; Fixed naming conflict for requestable
* <a href="http://github.com/snipe/snipe-it/commit/cd5a352961a1e1e8d90368abf81fedee5ce94bef">view</a> &bull; Fix for wrong math on remaining licenses when assigned to an asset
* <a href="http://github.com/snipe/snipe-it/commit/342a8b81afb2060a128d0667acc15fa5caafc2ea">view</a> &bull; Fix for error when asset has null status
* <a href="http://github.com/snipe/snipe-it/commit/8cdd2156143864974423bea70521d45db6d0cb9c">view</a> &bull; Fixed intenting
* <a href="http://github.com/snipe/snipe-it/commit/fbf03b225d732e12821bfc83b9bae7fb7b4b8be8">view</a> &bull; Fixes #509 - added MAC address as model option
### v1.2.4-beta - Released Feb 11, 2015 01:11:40
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/f4c5da57d0397877d90aa398267e59fcffee7b47">view</a> &bull; Fixed auth error when user isn't logged in
* <a href="http://github.com/snipe/snipe-it/commit/389c27b2e691743eb361cc1fbe4ece4259ae6046">view</a> &bull; Fixes #477 - wrong sidebar on asset view
* <a href="http://github.com/snipe/snipe-it/commit/7009b24748edab02921c609c26bc549fa96dcd2f">view</a> &bull; Merge pull request #498 from snipe/fixes/477
* <a href="http://github.com/snipe/snipe-it/commit/c1600a33db6d4463d27f74f87389489210de700e">view</a> &bull; Fixes #499 - timestamps in asset logs
* <a href="http://github.com/snipe/snipe-it/commit/b360736b7728d2ac872193bbe8888037c9794494">view</a> &bull; Fixes #484
* <a href="http://github.com/snipe/snipe-it/commit/addfcd4bc5417784f95145394940f90f1302376f">view</a> &bull; Fix RTD bug
* <a href="http://github.com/snipe/snipe-it/commit/d2438f9fdb9b281025c17e22ac2bfaa07ce04a2d">view</a> &bull; Fixes #502 - normalized statuses
* <a href="http://github.com/snipe/snipe-it/commit/aef3a734a3530f109b82fc0897e25727293f9862">view</a> &bull; Small fix for pending status
* <a href="http://github.com/snipe/snipe-it/commit/f175f52530e58bd5ab80139c526fc7838750cb11">view</a> &bull; Fixed spacer in sidenav for list all
### v.0.3.1-alpha - Released May 06, 2014 04:48:09
### v1.2.3 - Released Feb 09, 2015 12:22:12
### v1.2.3-beta - Released Feb 07, 2015 06:02:52
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/efad5db082d1461ea26556fad2f1671a49dc1480">view</a> &bull; Fix for broken datatables in upgrading to v2.2
* <a href="http://github.com/snipe/snipe-it/commit/5690e9ce1f178486179ce6cdfb00ca417acd87dd">view</a> &bull; Fixed code indentation for Apache virtualhost example
* <a href="http://github.com/snipe/snipe-it/commit/67aba76d3f83c5f374c05fe07d52eebd81d13278">view</a> &bull; Fixing this change from #109 that somehow got reverted
* <a href="http://github.com/snipe/snipe-it/commit/06067fc19c0127fdcbb78541e7cdc8e77f5444ac">view</a> &bull; Fixed CSV rexport
* <a href="http://github.com/snipe/snipe-it/commit/950567e9d66a6836cbca1383d24fc8548d3cbadf">view</a> &bull; Fixes issue related to #471 - assigning to user ID 0 causes erro
* <a href="http://github.com/snipe/snipe-it/commit/2b86f14e30c155f72b903428fd05a896ee9adfcc">view</a> &bull; Possible fix for #484 - fullname issue
* <a href="http://github.com/snipe/snipe-it/commit/b3af102d22a2f4f147b863e0ba8c2e4064aad01a">view</a> &bull; Fixed safe mode issue with license seeder
* <a href="http://github.com/snipe/snipe-it/commit/1db806f8b283e13dd04f20335d7087d12a04fa23">view</a> &bull; Fixes #488 - longer user jobtitle
* <a href="http://github.com/snipe/snipe-it/commit/f5efc368a58e1b26689dadb285918b090b66eb59">view</a> &bull; Fixes #487 - maintained and purchase order in strict mode
* <a href="http://github.com/snipe/snipe-it/commit/4dc81ce65fddced3282a9255a5a31ba8aa6a1458">view</a> &bull; Resolves #478 - redirects non-reporting users to view assets page
* <a href="http://github.com/snipe/snipe-it/commit/cd338d2a70e1bd4dca3bc651813e51095d7155f0">view</a> &bull; Fixes #483 - line breaks in notes on view
* <a href="http://github.com/snipe/snipe-it/commit/e67ba8a7437d4f27ae869072898e65749602f2dd">view</a> &bull; Fix reporting error on depreciation
* <a href="http://github.com/snipe/snipe-it/commit/1aeb4de0fae723801f0cdb555c77b5ee17ae1919">view</a> &bull; Possible fix for #491 - solving for giticide on package dep
* <a href="http://github.com/snipe/snipe-it/commit/c255edaf617872ac4a896106e56cc816209c2d5b">view</a> &bull; More travis fixes
* <a href="http://github.com/snipe/snipe-it/commit/feeef4b66c1b6049a1f18c67e034907ea26c7da9">view</a> &bull; Fix for asset log incorrectly using soft deletes
* <a href="http://github.com/snipe/snipe-it/commit/140bd137a48c199269d635aef57d14b1f0a4330a">view</a> &bull; Minor display fixes
* <a href="http://github.com/snipe/snipe-it/commit/29f5b7c5e3adc994b727842730c0157429520197">view</a> &bull; Fixed datetime
### v0.3.0-alpha - Released Jan 29, 2014 01:28:31
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/d91d75abe4df19dd6cd54705ba9967295973ced0">view</a> &bull; Fixing JSON parse errors from #97
* <a href="http://github.com/snipe/snipe-it/commit/baab758377e117a86c3273dd1d6e03e66b02dc8b">view</a> &bull; Fixed language support
* <a href="http://github.com/snipe/snipe-it/commit/a678ec41714f5d7f77418b5933bc112aa67eae9c">view</a> &bull; Fixed Gravatar Hash
* <a href="http://github.com/snipe/snipe-it/commit/c08d672e4923b12972eae76d0699e6a301f911cd">view</a> &bull; Fixes mail config documentation
* <a href="http://github.com/snipe/snipe-it/commit/fba853a6a7a2f8166265cac2e99a526fd9b88c7b">view</a> &bull; Fixes composer formatting issues
* <a href="http://github.com/snipe/snipe-it/commit/c11510fdcac2b2de09ae9e241c846426bdf0b187">view</a> &bull; Removes sorting from actions column. Fixes #56
* <a href="http://github.com/snipe/snipe-it/commit/ae05f2701559a841cb8d9bc8767e6d7a56dcd93c">view</a> &bull; Fixed depreciation bug
* <a href="http://github.com/snipe/snipe-it/commit/d591c1ea0495de091eb0f71daa8572929096c897">view</a> &bull; Fixed bug where RTD = 1 instead of 0
* <a href="http://github.com/snipe/snipe-it/commit/e49420f62d26405b2fa0385f0ae7b3009b3beeaf">view</a> &bull; Fixed bug in depreciation display
* <a href="http://github.com/snipe/snipe-it/commit/1dc7fd1bdf8852fed6d886938f632c8ea69d4798">view</a> &bull; Fixed depreciation display on asset view
* <a href="http://github.com/snipe/snipe-it/commit/211a527ae176df667f6f8fbc95901c53a368d8e2">view</a> &bull; Fixed FK
* <a href="http://github.com/snipe/snipe-it/commit/aaebaa8d36158aafc61988a6370239e85f2e75e5">view</a> &bull; Bugfix to put custom title in the page title
* <a href="http://github.com/snipe/snipe-it/commit/194150bbf0493512018390d011e8d88d144e9763">view</a> &bull; Hacky shit to fix pagination weirdness - will come back to this
* <a href="http://github.com/snipe/snipe-it/commit/5fb649b59e76aa9db6e433ad8c9fc75b4b8d5fc2">view</a> &bull; Fixed error message layout
* <a href="http://github.com/snipe/snipe-it/commit/7bc9a53b133895206a3df230baca50d3879abbe5">view</a> &bull; Fixed error when user is invalid
* <a href="http://github.com/snipe/snipe-it/commit/82de635a75aba376209b741ce1ed4497b91e65e0">view</a> &bull; Fixed invalid seed data
* <a href="http://github.com/snipe/snipe-it/commit/b697c77cd85416ca502ec3bb28c990099c7faae3">view</a> &bull; Fixing error when no depreciation
* <a href="http://github.com/snipe/snipe-it/commit/432f44118f46381bdaa44daf61dfa35677aba0ee">view</a> &bull; Fixed FK in licenses model
* <a href="http://github.com/snipe/snipe-it/commit/4468cbd096e9990300240205baf7139eafbc423c">view</a> &bull; Fixes #112
* <a href="http://github.com/snipe/snipe-it/commit/cd62be0de03da071f344c8f66730cbc9e1475fb7">view</a> &bull; Minor div fix
* <a href="http://github.com/snipe/snipe-it/commit/9c369d72e1e7e29f3c205586c916b2f42b250047">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/60d94eea04d1ebb93704e6a0d20621ff18708272">view</a> &bull; Changes serial to text area, allow new lines. Fixes #118
* <a href="http://github.com/snipe/snipe-it/commit/580590b4c0b4a2f76ef8edfe02de986267fc7395">view</a> &bull; Fixed === to == (PHP is loosely typed)
### v1.2.2 - Released Jan 22, 2015 11:41:36
* <a href="http://github.com/snipe/snipe-it/commit/4a77dee79c18f0e2ab155c7024234150ce98b808">view</a> &bull; Fixes #447 - added asset log entry on save
* <a href="http://github.com/snipe/snipe-it/commit/d85e5246807e597c1efac85c368a642a6fdcf944">view</a> &bull; Fixes #451 - allows spaces in state name
* <a href="http://github.com/snipe/snipe-it/commit/95141d49ba3c4f2b17ed6a26c20e7ad2a8aac9cb">view</a> &bull; Fixes #432 - add model name to checkout
* <a href="http://github.com/snipe/snipe-it/commit/3787a3f4bab9908f4903abdc2951cc254c8dc911">view</a> &bull; Fixed language strings for incrementing IDs
### v0.2.0-alpha - Released Nov 29, 2013 10:09:07
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/06cbd0723e415d81ea12aa48f2c37188741b2dbc">view</a> &bull; Fixes #93
* <a href="http://github.com/snipe/snipe-it/commit/e305099b45401c871f16fec23c200080830fcd5d">view</a> &bull; Fixed model view
* <a href="http://github.com/snipe/snipe-it/commit/7003eff42ca0e0ea2b9070187c0afd8ba1a8d8b0">view</a> &bull; More fixes for #88
* <a href="http://github.com/snipe/snipe-it/commit/567f395afaa19335671f366ce889630426f33273">view</a> &bull; More fixes for #88
* <a href="http://github.com/snipe/snipe-it/commit/02f1977d301cd449aa806e02e8a829516d436ef7">view</a> &bull; Fixed error message
* <a href="http://github.com/snipe/snipe-it/commit/11c657ffa4c3bdd01cd04b81d01980b2d795107c">view</a> &bull; Fixes #36
### v1.2.1 - Released Jan 22, 2015 09:24:01
### v0.1.2-alpha - Released Nov 29, 2013 01:59:05
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/b1aa67ddb72158513f0a706996c8c1f5b3609aa5">view</a> &bull; Fixes #69
* <a href="http://github.com/snipe/snipe-it/commit/aa38d83ba6369215451d905e599492214e9f4b8b">view</a> &bull; Fixes #63 and #70
* <a href="http://github.com/snipe/snipe-it/commit/65cd28aad3903e11879e01faba382454dec7e75c">view</a> &bull; Fixes #14
* <a href="http://github.com/snipe/snipe-it/commit/6552401fd869fd285aef5e217438f4f055b53ab6">view</a> &bull; Fixes #77
* <a href="http://github.com/snipe/snipe-it/commit/012a889444fa25b174a5fb2c67e89c8c5fcf09aa">view</a> &bull; Corrected license seat count associated with license. Fixes #75
* <a href="http://github.com/snipe/snipe-it/commit/9e189aa309750c221c27352f35e2ca1f5fab9173">view</a> &bull; Fixes #80, also prevents the user from checking out an asset that is undeployable, etc
* <a href="http://github.com/snipe/snipe-it/commit/8680d98bc36bffa08f87020300b315d26be09928">view</a> &bull; Fixed status display bug
* <a href="http://github.com/snipe/snipe-it/commit/4fcdf72ab6505625f244a6e6ee8683204fb81ccd">view</a> &bull; Responsive design bug fixes, placeholder code for #64 (commented out)
* <a href="http://github.com/snipe/snipe-it/commit/d9a37f38228d55bb6265efc626e3ab7919013362">view</a> &bull; Fixes #88
* <a href="http://github.com/snipe/snipe-it/commit/5858bfb99b2144fbc805ec62cc90e6aaaf019f77">view</a> &bull; Fixed language file paths caused by #88
* <a href="http://github.com/snipe/snipe-it/commit/9f7cbc8a4f01ddf2596e831f658c9a8c321b2f46">view</a> &bull; Another fix related to #88, also accounts for users with invalid location_ids
* <a href="http://github.com/snipe/snipe-it/commit/1b56c31a22afd39a875677714b9c07e96876b8df">view</a> &bull; Fixed relationship between users/locations because fuck you ORM
* <a href="http://github.com/snipe/snipe-it/commit/f0f07b578b2439a627e5e946df0849d88d8526cf">view</a> &bull; Fixing pivot for users
* <a href="http://github.com/snipe/snipe-it/commit/9fa826b2e77ce22d25a8b3094bc825802d25be85">view</a> &bull; Fixed assigned to id
* <a href="http://github.com/snipe/snipe-it/commit/839d01a3af08d780be4152bc02b33bff1a7d7f20">view</a> &bull; Fixed relationship method because fuck you ORM
### v0.1.1-alpha - Released Nov 26, 2013 11:11:00
#### This is a pre-release
* <a href="http://github.com/snipe/snipe-it/commit/1527b88fd671a20c879c9b2061ae95f3b386ba27">view</a> &bull; Fixes #61
* <a href="http://github.com/snipe/snipe-it/commit/4c0af1eae1031c2630f6e29cc73f8a9dfac1081c">view</a> &bull; Fixed typo causing failure with mysql strict
* <a href="http://github.com/snipe/snipe-it/commit/0e3bcfecd05a39bfea6fc7ba11cb24d9d49e6d86">view</a> &bull; Should be final fixes for mysql strict mode
### Initial alpha - Released Nov 26, 2013 09:01:13
#### This is a pre-release
### v1.2.0 - Released Jan 22, 2015 09:24:01
* <a href="http://github.com/snipe/snipe-it/commit/14972f894bb0e761e2d0170a2c93c9aac4edfca6">view</a> &bull; fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/79da13dff767d57f6f4fbb12f195e25f409ee5ec">view</a> &bull; Fixed layout for category view
* <a href="http://github.com/snipe/snipe-it/commit/0e4e26206bdcc164e5df586368ed45edd45b9a74">view</a> &bull; fixed broken redirect route
@@ -234,3 +750,143 @@
* <a href="http://github.com/snipe/snipe-it/commit/dc5ad876863a1e17babce06adfb365f38c30ca59">view</a> &bull; Fixes #59
* <a href="http://github.com/snipe/snipe-it/commit/d7a8cac1dc6158983673688c2e48e9a48217b6f2">view</a> &bull; Fixed validation
* <a href="http://github.com/snipe/snipe-it/commit/196710dac807d48f6c73b02c2444a5b8d301b8a6">view</a> &bull; Fixed bug in error validation display
* <a href="http://github.com/snipe/snipe-it/commit/1527b88fd671a20c879c9b2061ae95f3b386ba27">view</a> &bull; Fixes #61
* <a href="http://github.com/snipe/snipe-it/commit/4c0af1eae1031c2630f6e29cc73f8a9dfac1081c">view</a> &bull; Fixed typo causing failure with mysql strict
* <a href="http://github.com/snipe/snipe-it/commit/0e3bcfecd05a39bfea6fc7ba11cb24d9d49e6d86">view</a> &bull; Should be final fixes for mysql strict mode
* <a href="http://github.com/snipe/snipe-it/commit/b1aa67ddb72158513f0a706996c8c1f5b3609aa5">view</a> &bull; Fixes #69
* <a href="http://github.com/snipe/snipe-it/commit/aa38d83ba6369215451d905e599492214e9f4b8b">view</a> &bull; Fixes #63 and #70
* <a href="http://github.com/snipe/snipe-it/commit/65cd28aad3903e11879e01faba382454dec7e75c">view</a> &bull; Fixes #14
* <a href="http://github.com/snipe/snipe-it/commit/6552401fd869fd285aef5e217438f4f055b53ab6">view</a> &bull; Fixes #77
* <a href="http://github.com/snipe/snipe-it/commit/012a889444fa25b174a5fb2c67e89c8c5fcf09aa">view</a> &bull; Corrected license seat count associated with license. Fixes #75
* <a href="http://github.com/snipe/snipe-it/commit/9e189aa309750c221c27352f35e2ca1f5fab9173">view</a> &bull; Fixes #80, also prevents the user from checking out an asset that is undeployable, etc
* <a href="http://github.com/snipe/snipe-it/commit/8680d98bc36bffa08f87020300b315d26be09928">view</a> &bull; Fixed status display bug
* <a href="http://github.com/snipe/snipe-it/commit/4fcdf72ab6505625f244a6e6ee8683204fb81ccd">view</a> &bull; Responsive design bug fixes, placeholder code for #64 (commented out)
* <a href="http://github.com/snipe/snipe-it/commit/d9a37f38228d55bb6265efc626e3ab7919013362">view</a> &bull; Fixes #88
* <a href="http://github.com/snipe/snipe-it/commit/5858bfb99b2144fbc805ec62cc90e6aaaf019f77">view</a> &bull; Fixed language file paths caused by #88
* <a href="http://github.com/snipe/snipe-it/commit/9f7cbc8a4f01ddf2596e831f658c9a8c321b2f46">view</a> &bull; Another fix related to #88, also accounts for users with invalid location_ids
* <a href="http://github.com/snipe/snipe-it/commit/f0f07b578b2439a627e5e946df0849d88d8526cf">view</a> &bull; Fixing pivot for users
* <a href="http://github.com/snipe/snipe-it/commit/9fa826b2e77ce22d25a8b3094bc825802d25be85">view</a> &bull; Fixed assigned to id
* <a href="http://github.com/snipe/snipe-it/commit/06cbd0723e415d81ea12aa48f2c37188741b2dbc">view</a> &bull; Fixes #93
* <a href="http://github.com/snipe/snipe-it/commit/e305099b45401c871f16fec23c200080830fcd5d">view</a> &bull; Fixed model view
* <a href="http://github.com/snipe/snipe-it/commit/7003eff42ca0e0ea2b9070187c0afd8ba1a8d8b0">view</a> &bull; More fixes for #88
* <a href="http://github.com/snipe/snipe-it/commit/567f395afaa19335671f366ce889630426f33273">view</a> &bull; More fixes for #88
* <a href="http://github.com/snipe/snipe-it/commit/02f1977d301cd449aa806e02e8a829516d436ef7">view</a> &bull; Fixed error message
* <a href="http://github.com/snipe/snipe-it/commit/11c657ffa4c3bdd01cd04b81d01980b2d795107c">view</a> &bull; Fixes #36
* <a href="http://github.com/snipe/snipe-it/commit/d91d75abe4df19dd6cd54705ba9967295973ced0">view</a> &bull; Fixing JSON parse errors from #97
* <a href="http://github.com/snipe/snipe-it/commit/baab758377e117a86c3273dd1d6e03e66b02dc8b">view</a> &bull; Fixed language support
* <a href="http://github.com/snipe/snipe-it/commit/a678ec41714f5d7f77418b5933bc112aa67eae9c">view</a> &bull; Fixed Gravatar Hash
* <a href="http://github.com/snipe/snipe-it/commit/c08d672e4923b12972eae76d0699e6a301f911cd">view</a> &bull; Fixes mail config documentation
* <a href="http://github.com/snipe/snipe-it/commit/fba853a6a7a2f8166265cac2e99a526fd9b88c7b">view</a> &bull; Fixes composer formatting issues
* <a href="http://github.com/snipe/snipe-it/commit/c11510fdcac2b2de09ae9e241c846426bdf0b187">view</a> &bull; Removes sorting from actions column. Fixes #56
* <a href="http://github.com/snipe/snipe-it/commit/ae05f2701559a841cb8d9bc8767e6d7a56dcd93c">view</a> &bull; Fixed depreciation bug
* <a href="http://github.com/snipe/snipe-it/commit/d591c1ea0495de091eb0f71daa8572929096c897">view</a> &bull; Fixed bug where RTD = 1 instead of 0
* <a href="http://github.com/snipe/snipe-it/commit/e49420f62d26405b2fa0385f0ae7b3009b3beeaf">view</a> &bull; Fixed bug in depreciation display
* <a href="http://github.com/snipe/snipe-it/commit/1dc7fd1bdf8852fed6d886938f632c8ea69d4798">view</a> &bull; Fixed depreciation display on asset view
* <a href="http://github.com/snipe/snipe-it/commit/cc275367bffa3965a229e1527f6cd8cffd3415f1">view</a> &bull; Removed close button on 'no results' error
* <a href="http://github.com/snipe/snipe-it/commit/211a527ae176df667f6f8fbc95901c53a368d8e2">view</a> &bull; Fixed FK
* <a href="http://github.com/snipe/snipe-it/commit/aaebaa8d36158aafc61988a6370239e85f2e75e5">view</a> &bull; Bugfix to put custom title in the page title
* <a href="http://github.com/snipe/snipe-it/commit/194150bbf0493512018390d011e8d88d144e9763">view</a> &bull; Hacky shit to fix pagination weirdness - will come back to this
* <a href="http://github.com/snipe/snipe-it/commit/5fb649b59e76aa9db6e433ad8c9fc75b4b8d5fc2">view</a> &bull; Fixed error message layout
* <a href="http://github.com/snipe/snipe-it/commit/7bc9a53b133895206a3df230baca50d3879abbe5">view</a> &bull; Fixed error when user is invalid
* <a href="http://github.com/snipe/snipe-it/commit/82de635a75aba376209b741ce1ed4497b91e65e0">view</a> &bull; Fixed invalid seed data
* <a href="http://github.com/snipe/snipe-it/commit/b697c77cd85416ca502ec3bb28c990099c7faae3">view</a> &bull; Fixing error when no depreciation
* <a href="http://github.com/snipe/snipe-it/commit/432f44118f46381bdaa44daf61dfa35677aba0ee">view</a> &bull; Fixed FK in licenses model
* <a href="http://github.com/snipe/snipe-it/commit/4468cbd096e9990300240205baf7139eafbc423c">view</a> &bull; Fixes #112
* <a href="http://github.com/snipe/snipe-it/commit/cd62be0de03da071f344c8f66730cbc9e1475fb7">view</a> &bull; Minor div fix
* <a href="http://github.com/snipe/snipe-it/commit/9c369d72e1e7e29f3c205586c916b2f42b250047">view</a> &bull; Fixed typo
* <a href="http://github.com/snipe/snipe-it/commit/60d94eea04d1ebb93704e6a0d20621ff18708272">view</a> &bull; Changes serial to text area, allow new lines. Fixes #118
* <a href="http://github.com/snipe/snipe-it/commit/580590b4c0b4a2f76ef8edfe02de986267fc7395">view</a> &bull; Fixed === to == (PHP is loosely typed)
* <a href="http://github.com/snipe/snipe-it/commit/efad5db082d1461ea26556fad2f1671a49dc1480">view</a> &bull; Fix for broken datatables in upgrading to v2.2
* <a href="http://github.com/snipe/snipe-it/commit/5690e9ce1f178486179ce6cdfb00ca417acd87dd">view</a> &bull; Fixed code indentation for Apache virtualhost example
* <a href="http://github.com/snipe/snipe-it/commit/67aba76d3f83c5f374c05fe07d52eebd81d13278">view</a> &bull; Fixing this change from #109 that somehow got reverted
* <a href="http://github.com/snipe/snipe-it/commit/06067fc19c0127fdcbb78541e7cdc8e77f5444ac">view</a> &bull; Fixed CSV rexport
* <a href="http://github.com/snipe/snipe-it/commit/f4c5da57d0397877d90aa398267e59fcffee7b47">view</a> &bull; Fixed auth error when user isn't logged in
* <a href="http://github.com/snipe/snipe-it/commit/3518ab9f55f7992d6d4f886389d67b062a02f2d8">view</a> &bull; Fixes #139
* <a href="http://github.com/snipe/snipe-it/commit/ad9b1fc446ab15157502fe7c52ddbda455e3ea8f">view</a> &bull; Fixes #139
* <a href="http://github.com/snipe/snipe-it/commit/dfa5d1c64205b23c4c3d16190d1478da8aa0edbb">view</a> &bull; Fixes #136
* <a href="http://github.com/snipe/snipe-it/commit/9714178ce1fa1e2814389e4b6b82eb596a650084">view</a> &bull; Fixes #141
* <a href="http://github.com/snipe/snipe-it/commit/607484b29407718238571eb5269c9c27830338f7">view</a> &bull; Fixes #141 for mysql with strict mode enabled
* <a href="http://github.com/snipe/snipe-it/commit/cbc945299e7f67f5f10dfdc6a875e5c53ac8440a">view</a> &bull; Fixes #148
* <a href="http://github.com/snipe/snipe-it/commit/dc256583d410cb09253e30b075149c79fb4864e5">view</a> &bull; Fixes #144
* <a href="http://github.com/snipe/snipe-it/commit/610c405aa50118163ad5d26d43e4bf6c2456f624">view</a> &bull; More fixes for #151
* <a href="http://github.com/snipe/snipe-it/commit/08d05b481f6366ad48fcdce72a8df53755f5dee8">view</a> &bull; Fixes #158
* <a href="http://github.com/snipe/snipe-it/commit/d1499deecdff3c7a4235ffdfad5adbddc1a5098f">view</a> &bull; Provisions for strict mode, fixed license deletion bug
* <a href="http://github.com/snipe/snipe-it/commit/3e7a9e45d1954531bbc3b73f2ed59dd16d59c657">view</a> &bull; Fixes PR #168 and #167
* <a href="http://github.com/snipe/snipe-it/commit/945cb3253f1349e30aafa4e7cb57bb507a2ea0cc">view</a> &bull; Fix #117
* <a href="http://github.com/snipe/snipe-it/commit/6f42b3045e2a65cdf98ec1038284cc2ecf01fa5d">view</a> &bull; Resolves #155
* <a href="http://github.com/snipe/snipe-it/commit/380417953b6b67a506f0cc395fd2dfb744cf26cd">view</a> &bull; Fixed missing string
* <a href="http://github.com/snipe/snipe-it/commit/b09aec67f1ab76ff0435a2e1e49b179c3d73bc12">view</a> &bull; Fixes #155
* <a href="http://github.com/snipe/snipe-it/commit/124acc89c4027e346daf54c62cb38b85586de870">view</a> &bull; Resolves #174
* <a href="http://github.com/snipe/snipe-it/commit/afabd2814205fdcd83b7bf9ce9095aa367b08311">view</a> &bull; Additional fixes for #167
* <a href="http://github.com/snipe/snipe-it/commit/a170efae2796314896d548d86b79d89d859c37d2">view</a> &bull; fix for #167
* <a href="http://github.com/snipe/snipe-it/commit/ec9eab81bfb3b35bfe7ad06008b26f19009e6638">view</a> &bull; Closes #177 - change log file added, needs refining
* <a href="http://github.com/snipe/snipe-it/commit/2825bcb4310899e89ccbc73dfa8b59ade28018da">view</a> &bull; Fixed #179 - account page to show assets checked out to the logged in user
* <a href="http://github.com/snipe/snipe-it/commit/c782f29f5aae752a6246be9778d418df172dd4f6">view</a> &bull; Pulled account sub-nav into top menu to free up UI space. #changelog
* <a href="http://github.com/snipe/snipe-it/commit/fad2ec66fa9abe0b34baf16cce453a7e9fc9e4d4">view</a> &bull; More README fixes and refinement
* <a href="http://github.com/snipe/snipe-it/commit/89a8f3c277d2482b2cd04c4c5c582c9e507770f8">view</a> &bull; Fixes #183 - added employee number to users
* <a href="http://github.com/snipe/snipe-it/commit/a7b809cb91f49fb2c8eaecc67822fa155a0f20ce">view</a> &bull; Updated title/header for users, additional fixes for #151
* <a href="http://github.com/snipe/snipe-it/commit/5266d9a30a9663fa80ff764b25ff71726e5c4f4c">view</a> &bull; Fixed title tag for user list view
* <a href="http://github.com/snipe/snipe-it/commit/43485e1a51330ef585a65b469d7eb85ae7bde13a">view</a> &bull; Fixed language definition
* <a href="http://github.com/snipe/snipe-it/commit/6b5a552d95ff6f6d5567275b50fcd487fb793820">view</a> &bull; Fixed #186 - Bug with select box not retaining selections on edit screen
* <a href="http://github.com/snipe/snipe-it/commit/90eb883b671919ea360122c2bf44433995a12144">view</a> &bull; Fixed #187 - replaced dummy site name with site name from admin panel preferences
* <a href="http://github.com/snipe/snipe-it/commit/f22f23f21dc11d393854849580f0c1229cec9827">view</a> &bull; Fixed button label on forgotten password page
* <a href="http://github.com/snipe/snipe-it/commit/2b9494ed8271254f8f84e016f238d518e6109842">view</a> &bull; Fixed inconsistent password requirements across admin user creation, user profile and forgotten password
* <a href="http://github.com/snipe/snipe-it/commit/9dc40a3a9c161267fd8c88aacc1fbf536c1ec2de">view</a> &bull; Fixed a few CSS quirks
* <a href="http://github.com/snipe/snipe-it/commit/99003e126a8fd0ad9aaea5a550e0af5e306fc1bb">view</a> &bull; Fixed bug with edit (supplier_id), added requestable field for assets
* <a href="http://github.com/snipe/snipe-it/commit/21251b462308f2d783b83be1a331a0faf0813d16">view</a> &bull; Fixed #190, where depreciation on licenses would not be saved
* <a href="http://github.com/snipe/snipe-it/commit/89000440f344f766a31adc69718d7f66df235abf">view</a> &bull; Added admin ability to unsuspend locked accounts #changelog
* <a href="http://github.com/snipe/snipe-it/commit/e203fc516fadf6218f5ce87c070d0cdba9fca188">view</a> &bull; Fixes #194
* <a href="http://github.com/snipe/snipe-it/commit/ac4c905c42d920d2cf8455d644f4c65332a81d0d">view</a> &bull; Fixed #140
* <a href="http://github.com/snipe/snipe-it/commit/4a13cded607415d749151cef495332c48c58cf86">view</a> &bull; Fixed path for Travis composer
* <a href="http://github.com/snipe/snipe-it/commit/ddf946ad5eb6dd8480eeaa709f82af75e0c61444">view</a> &bull; Tried to fix failing build caused by travis composer
* <a href="http://github.com/snipe/snipe-it/commit/a4b220d6c31c97f6504023f0b52527825a4cd897">view</a> &bull; Fixed #191 - allow admins to assign a user during asset creation
* <a href="http://github.com/snipe/snipe-it/commit/dc1033025a0bc1b2d657e06c89058c3ab95f2c59">view</a> &bull; Fixed #151 - more complete translations
* <a href="http://github.com/snipe/snipe-it/commit/56d619b218794b43d8c6b182c89c75f83af9dcd9">view</a> &bull; Fixed missing language string
* <a href="http://github.com/snipe/snipe-it/commit/69fca5d1eda0e5f26d2085f7eebc08fafd84a3ae">view</a> &bull; Fixed #58
* <a href="http://github.com/snipe/snipe-it/commit/8197e6174e9f12bcfddd94c6bf606ee36e6801bf">view</a> &bull; Fixes #200
* <a href="http://github.com/snipe/snipe-it/commit/cb8369e9de96aaf1cf9108e22f4038fa6486b881">view</a> &bull; Initial QA Patch to fix errors Add License Add Asset Show Deleted Users License Assign
* <a href="http://github.com/snipe/snipe-it/commit/62a3ed671bbd957075563933f49e8a5445042737">view</a> &bull; DB migration, layout and clone fixes
* <a href="http://github.com/snipe/snipe-it/commit/9ccc7d756f9361757eafc1dce9684ee9f5ecc1c3">view</a> &bull; A0.4.2: Added asset, license, user, model cloning and fixed some bugs.
* <a href="http://github.com/snipe/snipe-it/commit/652f1c746c4757dce9d33d7bd90a9357822c4656">view</a> &bull; Fixes Travis CI build
* <a href="http://github.com/snipe/snipe-it/commit/363d084bd623f778cd72ca7d385a4fb2f67ef474">view</a> &bull; Fixed DB name in travis CI
* <a href="http://github.com/snipe/snipe-it/commit/49c5607e1c8a82a3111123ad84b537644546ebb3">view</a> &bull; Fixes #222
* <a href="http://github.com/snipe/snipe-it/commit/96e40d72b9ac3f74b94b0e39b6f296f0f0b2a1f4">view</a> &bull; fix typo: artisand -> artisan
* <a href="http://github.com/snipe/snipe-it/commit/e978038cc044f60c2eca71b6319063009a57886f">view</a> &bull; Merge pull request #234 from burlito/typo-fix
* <a href="http://github.com/snipe/snipe-it/commit/a829fcf52f933d087c3776993b42311ec9a8988e">view</a> &bull; fix: Use the old asset tag when cloning
* <a href="http://github.com/snipe/snipe-it/commit/ee7d9bec7082dc2e60a4797dea84a0b7443c8090">view</a> &bull; Fixes #279 - QR checkbox not staying checked
* <a href="http://github.com/snipe/snipe-it/commit/bf1e07555160ede517d41f649d6b1d0911f89dd2">view</a> &bull; Fixes #87 - made datatables responsive
* <a href="http://github.com/snipe/snipe-it/commit/fafd03f00f49cb9ffe81d50aa9ca3d1f1fa1d043">view</a> &bull; Added DB Prefix to Migrations
* <a href="http://github.com/snipe/snipe-it/commit/309772e67d62989f1f60141a4a10d724a44c6baa">view</a> &bull; Fixed operator for setting bool display
* <a href="http://github.com/snipe/snipe-it/commit/22f81912e416cfe1227a08b5d8b6323e32e1ef36">view</a> &bull; Fixes #299
* <a href="http://github.com/snipe/snipe-it/commit/86b7b6946f1e1bd404127e228c615e4abe0b20fb">view</a> &bull; Fixes #316 - added model name back to view
* <a href="http://github.com/snipe/snipe-it/commit/9e85dcb9fcb4cc932ecddd23caa6b51e83110543">view</a> &bull; Fixes #315 - add EOL as display option in settings (run migrations)
* <a href="http://github.com/snipe/snipe-it/commit/ee35948980c22f9256241c02d7febd90275f6229">view</a> &bull; fix div issues
* <a href="http://github.com/snipe/snipe-it/commit/0022389463e251e73402450cfbc280cb05633bd1">view</a> &bull; Fix dropdown menu position
* <a href="http://github.com/snipe/snipe-it/commit/343798d241172707145ef365445062db9bb6b99a">view</a> &bull; Merge pull request #322 from madd15/fix-js-delete-asset
* <a href="http://github.com/snipe/snipe-it/commit/1078dbf5c5f6a5bec1a2ef864cebfcc7883d31e6">view</a> &bull; Fixes #324
* <a href="http://github.com/snipe/snipe-it/commit/6b2d3efe3e76429c9c2f5de78f04c4f7e2748a3d">view</a> &bull; Fixes #237 - reporting-only group
* <a href="http://github.com/snipe/snipe-it/commit/e04cc806d9209b54a1833172ebb66ab55b5f0c06">view</a> &bull; Fixes #327
* <a href="http://github.com/snipe/snipe-it/commit/8699a90093bd27c0502dcc25f6e7d55344d54a3b">view</a> &bull; Fixed changelog
* <a href="http://github.com/snipe/snipe-it/commit/cff24309a1514f9ea991881ca72898c7a6358562">view</a> &bull; Possibly fixes #343
* <a href="http://github.com/snipe/snipe-it/commit/b2d5dc9ec5460ff1f02db6c1a31ea87d224de4c9">view</a> &bull; Fix #342
* <a href="http://github.com/snipe/snipe-it/commit/74ae2fceea68d18514e87edc008cb3016361beee">view</a> &bull; Fix class on th
* <a href="http://github.com/snipe/snipe-it/commit/fc2d472ed350d7d63fb97942d00a97b62d4bed55">view</a> &bull; Fixed english language string
* <a href="http://github.com/snipe/snipe-it/commit/89c7159c56f88bcf8459a5eb02d79d636335cb28">view</a> &bull; Fix array check for empty rows
* <a href="http://github.com/snipe/snipe-it/commit/7ddc6d497af13e7894031ac763939be9863889a4">view</a> &bull; Fix Report Langs
* <a href="http://github.com/snipe/snipe-it/commit/13b173409fcd5b5ce8e79566b5110eadcf51c233">view</a> &bull; Fix License form langs
* <a href="http://github.com/snipe/snipe-it/commit/b73ae3147a60b29ac455063ecf419a609cce2cac">view</a> &bull; Fixes #362, reduced asset name to 2 char min
* <a href="http://github.com/snipe/snipe-it/commit/637009054cc74b17e2dd226c6f8c467eed5b0962">view</a> &bull; Fixed typo in english
* <a href="http://github.com/snipe/snipe-it/commit/6905d82fc48998f9c95c454c8bf37a34e30c002e">view</a> &bull; Fixes #374 to keep the requirement to PHP 5.4
* <a href="http://github.com/snipe/snipe-it/commit/102481631330fbed894bf72510845bff6c88e59e">view</a> &bull; Fix #377 - Checkout users last_name, first_name
* <a href="http://github.com/snipe/snipe-it/commit/d6a0249c60cbb026b2e3190285d50723a76f22ee">view</a> &bull; Fixed #373 - added ability to auto-increment asset tags
* <a href="http://github.com/snipe/snipe-it/commit/1b41c974cf67c550b2cae39eeec8f90cb2da79e0">view</a> &bull; Fixes #348 - remove constraints on license keys
* <a href="http://github.com/snipe/snipe-it/commit/89a2b87e42c18b308835ef71d196b91002b451ef">view</a> &bull; Fixes #367 - added model number to dropdown
* <a href="http://github.com/snipe/snipe-it/commit/64c16a0bacfcde7c4d92971f2129f1b1aeac2c0e">view</a> &bull; Fixes #386 and #273 - altered column type to text
* <a href="http://github.com/snipe/snipe-it/commit/daefc86e5878a21f9909806599f22198360c1f9b">view</a> &bull; Formattig fixes for #386
* <a href="http://github.com/snipe/snipe-it/commit/73dd339772fcc35e50603ded115f67714620da69">view</a> &bull; Fix #388 - License not showing checked out in view
* <a href="http://github.com/snipe/snipe-it/commit/0663ccb99fa926ff944dded330ba1f0cd95abbb3">view</a> &bull; Check if ->adminuser->id isset before trying to print the fullName so we can catch when a user that created an asset has been deleted. Fixes #349
* <a href="http://github.com/snipe/snipe-it/commit/533be7f942cb6dfccd1e8a79c043d61791e4c54b">view</a> &bull; fixed #435. using namespace with route groups to increase the readability
* <a href="http://github.com/snipe/snipe-it/commit/e434616db83a8d693af63b4705e1b24476fc3c17">view</a> &bull; Merge pull request #436 from rashivkp/fix-435
* <a href="http://github.com/snipe/snipe-it/commit/5e496672c66428a1bbd37772aabd44f8bb1cb0fa">view</a> &bull; Fixes #469
* <a href="http://github.com/snipe/snipe-it/commit/3c141e8f5017e8f161b6fd1fb82b288283b8450c">view</a> &bull; Fixes #467
* <a href="http://github.com/snipe/snipe-it/commit/548de1a1a217e6b5c6fcbbf6cd4918f078e64542">view</a> &bull; Fixes #468 - updated ordering on license checkout
+15
View File
@@ -0,0 +1,15 @@
# Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.1.0, available at [http://contributor-covenant.org/version/1/1/0/](http://contributor-covenant.org/version/1/1/0/)
+3 -21
View File
@@ -1,25 +1,7 @@
# Contribution Guidelines
Please submit all issues and pull requests to the [snipe/snipe-it](http://github.com/snipe/snipe-it) repository in the `develop` branch!
**Before opening an issue to report a bug or request help, make sure you've checked the [Common Issues](http://docs.snipeitapp.com/common-issues.html) and [Getting Help](http://docs.snipeitapp.com/getting-help.html) pages.**
**As you're working on bug-fixes or features, please break them out into their own feature branches and open the pull request against your feature branch**. It makes it _much_ easier to decipher down the road, as you open multiple pull requests over time, and makes it much easier for me to approve pull requests quickly.
## Developing on Snipe-IT
If you don't have a feature in mind, but would like to contribute back to the project, check out the [open issues](https://github.com/snipe/snipe-it/issues?state=open) and see if there are any you can tackle.
-----
## Translations!
If you're not great at PHP and you still want to help, consider contributing some translation files (assuming, of course, that you are fluent in another language.)
To do so:
* fork the develop branch
* create a new branch on your new fork (something like `translations/french`)
* copy the `en` directory and name it according to the [two-letter ISO 639-1 code](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
* translate the strings
* submit a pull request!
**If you've translated Snipe IT into another language already for your own usage, please consider contributing those translation files back to the project so that everyone can benefit.**
Thanks!
Please see the [Contributing guidelines in the documentation](http://docs.snipeitapp.com/contributing.html).
+78
View File
@@ -0,0 +1,78 @@
FROM ubuntu
MAINTAINER Brady Wetherington <uberbrady@gmail.com>
RUN apt-get update && apt-get install -y \
apache2-bin \
libapache2-mod-php5 \
php5-curl \
php5-ldap \
php5-mysql \
php5-mcrypt \
php5-gd \
patch \
curl \
vim \
git
RUN php5enmod mcrypt
RUN php5enmod gd
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php5/apache2/php.ini
RUN sed -i 's/variables_order = .*/variables_order = "EGPCS"/' /etc/php5/cli/php.ini
RUN useradd --uid 1000 --gid 50 docker
RUN echo export APACHE_RUN_USER=docker >> /etc/apache2/envvars
RUN echo export APACHE_RUN_GROUP=staff >> /etc/apache2/envvars
COPY docker/000-default.conf /etc/apache2/sites-enabled/000-default.conf
#SSL
COPY docker/001-default-ssl.conf /etc/apache2/sites-enabled/001-default-ssl.conf
#COPY docker/001-default-ssl.conf /etc/apache2/sites-available/001-default-ssl.conf
RUN a2enmod ssl
#RUN a2ensite 001-default-ssl.conf
COPY . /var/www/html
RUN a2enmod rewrite
############ INITIAL APPLICATION SETUP #####################
WORKDIR /var/www/html
#Append to bootstrap file (less brittle than 'patch')
RUN sed -i 's/return $app;/$env="production";\nreturn $app;/' bootstrap/start.php
#copy all configuration files
COPY docker/*.php /var/www/html/app/config/production/
RUN chown -R docker /var/www/html
############## DEPENDENCIES via COMPOSER ###################
#global install of composer
RUN cd /tmp;curl -sS https://getcomposer.org/installer | php;mv /tmp/composer.phar /usr/local/bin/composer
# Get dependencies
RUN cd /var/www/html;composer install
############### APPLICATION INSTALL/INIT #################
#RUN php artisan app:install
# too interactive! Try something else
#COPY docker/app_install.exp /tmp/app_install.exp
#RUN chmod +x /tmp/app_install.exp
#RUN /tmp/app_install.exp
##### START SERVER
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80
EXPOSE 443
+26 -27
View File
@@ -3,22 +3,29 @@
## Snipe-IT - Asset Management For the Rest of Us
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/snipe/snipe-it?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
This is a FOSS project for asset management in IT Operations. Knowing who has which laptop, when it was purchased in order to depreciate it correctly, handling software licenses, etc.
It is built on [Laravel 4.1](http://laravel.com) and uses the [Sentry 2](https://github.com/cartalyst/sentry) package.
It is built on [Laravel 4.2](http://laravel.com) and uses the [Sentry 2](https://github.com/cartalyst/sentry) package.
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](http://snipeitapp.com/demo.php).)
This project is being actively developed and we're [releasing quite frequently](https://github.com/snipe/snipe-it/releases). ([Check out the live demo here](https://snipeitapp.com/demo/).)
__This is web-based software__. This means there there is no executable file (aka no .exe files), and it must be run on a web server and accessed through a web browser. It runs on any Mac OSX, flavor of Linux, as well as Windows.
-----
### Documentation & Installation
__Installation and configuration documentation for this project has been moved to http://docs.snipeitapp.com.__ This provides a more easily navigated, organized view of the documentation, and is based off of the [documentation branch](https://github.com/snipe/snipe-it/tree/documentation) in this repo. Contributions and bugfixes to the documentation are always welcome!
### Installation
We'll be adding a long-overdue user's manual soon as well.
__Installation and configuration documentation for this project has been moved to http://docs.snipeitapp.com.__
__To deploy on Ubuntu using Ansible and Vagrant, be sure to check out the [Snipe-IT Installation scripts](https://github.com/GR360RY/snipeit-ansible) created by [@GR360RY](https://github.com/GR360RY/).__
#### Server Requirements
Please see the [requirements documentation](http://docs.snipeitapp.com/requirements.html) for full requirements.
To deploy on Ubuntu using Ansible and Vagrant, check out the [Snipe-IT Installation scripts](https://github.com/GR360RY/snipeit-ansible) created by [@GR360RY](https://github.com/GR360RY/).
To deploy on a fresh Ubuntu / CentOS install that will be dedicated to Snipe-It, run the "install.sh". Make sure to chmod +x install.sh and run as sudo on Ubuntu systems (or equivalent on CentOS.)
-----
### Bug Reports & Feature Requests
@@ -27,39 +34,31 @@ Feel free to check out the [GitHub Issues for this project](https://github.com/s
We use Waffle.io to help better communicate our roadmap with users. Our [project page there](http://waffle.io/snipe/snipe-it) will show you the backlog, what's ready to be worked on, what's in progress, and what's completed.
[![Stories in Ready](https://badge.waffle.io/snipe/snipe-it.png?label=ready&title=Ready)](http://waffle.io/snipe/snipe-it)
If you're having trouble with the installation, please check the [Common Issues](http://docs.snipeitapp.com/common-issues.html) and [Getting Help](http://docs.snipeitapp.com/getting-help.html) documentation.
-----
### Upgrading
Please see the [upgrading documentation](http://docs.snipeitapp.com/upgrading.html) for instructions on upgrading Snipe-IT.
------
### Announcement List
To be notified of important news (such as new releases, security advisories, etc), [sign up for our list](http://eepurl.com/XyZKz). We'll never sell or give away your info, and we'll only email you when it's important.
------
### Translations!
If you're not a coder but want to give back to the project and you're fluent in other languages, consider helping out with the translations. We use [CrowdIn](https://crowdin.com) to manage translations, and it makes it super-simple for you to add translations to the project without messing with code. Check out [the Snipe-IT CrowdIn translation project here](https://crowdin.com/project/snipe-it/).
We currently have English, Chinese, Finnish, Malay, Romanian and Spanish completed, and are looking for lots more!
-----
## Requirements
- PHP 5.4 or later
- MCrypt PHP Extension
- Fileinfo Extension
And _one_ of the following image libraries (for QR codes, asset model image and user avatar image uploads).
- GD Library (>=2.0) … or …
- Imagick PHP extension (>=6.3.8)
Please see the [translations documentation](http://docs.snipeitapp.com/translations.html) for information about available languages and how to add translations to Snipe-IT.
-----
## Important Notes on Updating
### Contributing
Whenever you pull down a new version from master or develop, when you grab the [latest official release](https://github.com/snipe/snipe-it/releases), make sure to run the following commands via command line:
Please see the documentation on [contributing and developing for Snipe-IT](http://docs.snipeitapp.com/contributing.html).
php composer.phar dump-autoload
php artisan migrate
[![Stories in Ready](https://badge.waffle.io/snipe/snipe-it.png?label=ready+for+dev&title=Ready+for+Development)](http://waffle.io/snipe/snipe-it)
Forgetting to do this can mean your DB might end up out of sync with the new files you just pulled, or you may have some funky cached autoloader values. It's a good idea to get into the habit of running these every time you pull anything new down. If there are no database changes to migrate, it won't hurt anything to run migrations anyway.
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
+87 -13
View File
@@ -18,7 +18,7 @@ class AppCommand extends Command
*
* @var string
*/
protected $description = '';
protected $description = 'This command kicks off your database table creation and migration, and creates your first admin user.';
/**
* Holds the user information.
@@ -28,10 +28,12 @@ class AppCommand extends Command
protected $userData = array(
'first_name' => null,
'last_name' => null,
'email' => null,
'username' => null,
'password' => null
);
protected $dummyData = false;
/**
* Create a new command instance.
*
@@ -64,9 +66,11 @@ class AppCommand extends Command
// Let's ask the user some questions, shall we?
$this->askUserFirstName();
$this->askUserLastName();
$this->askUserUsername();
$this->askUserEmail();
$this->askUserPassword();
$this->askUserDummyData();
$this->comment('');
$this->comment('');
@@ -86,16 +90,28 @@ class AppCommand extends Command
$this->call('migrate:install');
// Run the Sentry Migrations
$this->call('migrate', array('--package' => 'cartalyst/sentry'));
$this->call('migrate', array('--package' => 'cartalyst/sentry','--force'=>true));
// Run the Migrations
$this->call('migrate');
$this->call('migrate', array('--force'=>true));
// Create the default user and default groups.
$this->sentryRunner();
// Seed the tables with dummy data
$this->call('db:seed');
if( $this->dummyData === true )
{
$this->call('db:seed', array('--force'=>true));
}
else
{
// Seeding Settings table is mandatory
$this->call('db:seed', array('--class' => 'SettingsSeeder', '--force'=>true));
// Seeding Statuslabels is strongly recommended
$this->call('db:seed', array('--class' => 'StatuslabelsSeeder', '--force'=>true));
// Seeding Categories is good to have
$this->call('db:seed', array('--class' => 'CategoriesSeeder', '--force'=>true));
}
}
/**
@@ -147,7 +163,7 @@ class AppCommand extends Command
}
/**
* Asks the user for the user email address.
* Asks the user for the username address.
*
* @return void
* @todo Use the Laravel Validator
@@ -156,7 +172,7 @@ class AppCommand extends Command
{
do {
// Ask the user to input the email address
$email = $this->ask('Please enter your user email: ');
$email = $this->ask('Please enter your email: ');
// Check if email is valid
if ($email == '') {
@@ -170,6 +186,32 @@ class AppCommand extends Command
while ( ! $email);
}
/**
* Asks the user for the username address.
*
* @return void
* @todo Use the Laravel Validator
*/
protected function askUserUsername()
{
do {
// Ask the user to input the username
$username = $this->ask('Please enter your username: ');
// Check if username is valid
if ($username == '') {
// Return an error message
$this->error('Username is invalid. Please try again.');
}
// Store the username address
$this->userData['username'] = $username;
}
while ( ! $username);
}
/**
* Asks the user for the user password.
*
@@ -180,12 +222,23 @@ class AppCommand extends Command
{
do {
// Ask the user to input the user password
$password = $this->ask('Please enter your user password (at least 8 characters): ');
$password = $this->secret('Please enter your user password (at least 8 characters): ');
$password1 = $this->secret('Please confirm your user password: ');
// Check if email is valid
if ($password == '') {
// Check if password is valid
if ($password == '' || $password1 == '') {
// Return an error message
$this->error('Password is invalid. Please try again.');
$password = '';
$password1 = '';
}
else{
// Verify the user password
if ($password != $password1){
$this->error('Password do not match. Please try again.');
$password = '';
$password1 = '';
}
}
// Store the password
@@ -193,6 +246,19 @@ class AppCommand extends Command
} while( ! $password);
}
/**
* Asks the user to create dummy data
*
* @return void
* @todo Use the Laravel Validator
*/
protected function askUserDummyData()
{
// Ask the user to input the user password
$dummydata = $this->ask('Do you want to seed your database with dummy data? y/N (default is no): ');
$this->dummyData = (strstr($dummydata, 'y' )) ? true : false;
}
/**
* Runs all the necessary Sentry commands.
*
@@ -207,7 +273,10 @@ class AppCommand extends Command
$this->sentryCreateUser();
// Create dummy user
$this->sentryCreateDummyUser();
if( $this->dummyData === true )
{
$this->sentryCreateDummyUser();
}
}
/**
@@ -286,9 +355,12 @@ class AppCommand extends Command
$data = array_merge($this->userData, array(
'activated' => 1,
'manager_id' => NULL,
'notes' => 'Generated on install',
'permissions' => array(
'admin' => 1,
'user' => 1,
'superuser' => 1,
'reports' => 1,
),
));
@@ -296,7 +368,7 @@ class AppCommand extends Command
$user = Sentry::getUserProvider()->create($data);
// Associate the Admin group to this user
$group = Sentry::getGroupProvider()->findById(1);
$group = Sentry::findGroupByName('Admin');
$user->addGroup($group);
// Show the success message
@@ -317,7 +389,9 @@ class AppCommand extends Command
'first_name' => 'John',
'last_name' => 'Doe',
'email' => 'john.doe@example.com',
'password' => 'johndoe',
'username' => 'john.doe@example.com',
'password' => substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', mt_rand(1,10))),1,10),
'notes' => 'Generated on install',
'activated' => 1,
'manager_id' => 1,
);
+457
View File
@@ -0,0 +1,457 @@
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use League\Csv\Reader;
class AssetImportCommand extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'asset-import:csv';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Import Assets from CSV';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$filename = $this->argument('filename');
if (!$this->option('testrun')=='true') {
$this->comment('======= Importing Assets from '.$filename.' =========');
} else {
$this->comment('====== TEST ONLY Asset Import for '.$filename.' ====');
$this->comment('============== NO DATA WILL BE WRITTEN ==============');
}
if (! ini_get("auto_detect_line_endings")) {
ini_set("auto_detect_line_endings", '1');
}
$csv = Reader::createFromPath($this->argument('filename'));
$csv->setNewline("\r\n");
$csv->setOffset(1);
$duplicates = '';
// Loop through the records
$nbInsert = $csv->each(function ($row) use ($duplicates) {
$status_id = 1;
// Let's just map some of these entries to more user friendly words
// User's name
if (array_key_exists('0',$row)) {
$user_name = trim($row[0]);
} else {
$user_name = '';
}
// User's email
if (array_key_exists('1',$row)) {
$user_email = trim($row[1]);
} else {
$user_email = '';
}
// User's email
if (array_key_exists('2',$row)) {
$user_username = trim($row[2]);
} else {
$user_username = '';
}
// Asset Name
if (array_key_exists('3',$row)) {
$user_asset_asset_name = trim($row[3]);
} else {
$user_asset_asset_name = '';
}
// Asset Category
if (array_key_exists('4',$row)) {
$user_asset_category = trim($row[4]);
} else {
$user_asset_category = '';
}
// Asset Name
if (array_key_exists('5',$row)) {
$user_asset_name = trim($row[5]);
} else {
$user_asset_name = '';
}
// Asset Manufacturer
if (array_key_exists('6',$row)) {
$user_asset_mfgr = trim($row[6]);
} else {
$user_asset_mfgr = '';
}
// Asset model number
if (array_key_exists('7',$row)) {
$user_asset_modelno = trim($row[7]);
} else {
$user_asset_modelno = '';
}
// Asset serial number
if (array_key_exists('8',$row)) {
$user_asset_serial = trim($row[8]);
} else {
$user_asset_serial = '';
}
// Asset tag
if (array_key_exists('9',$row)) {
$user_asset_tag = trim($row[9]);
} else {
$user_asset_tag = '';
}
// Asset location
if (array_key_exists('10',$row)) {
$user_asset_location = trim($row[10]);
} else {
$user_asset_location = '';
}
// Asset notes
if (array_key_exists('11',$row)) {
$user_asset_notes = trim($row[11]);
} else {
$user_asset_notes = '';
}
// Asset purchase date
if (array_key_exists('12',$row)) {
if ($row[12]!='') {
$user_asset_purchase_date = date("Y-m-d 00:00:01", strtotime($row[12]));
} else {
$user_asset_purchase_date = '';
}
} else {
$user_asset_purchase_date = '';
}
// Asset purchase cost
if (array_key_exists('13',$row)) {
if ($row[13]!='') {
$user_asset_purchase_cost = trim($row[13]);
} else {
$user_asset_purchase_cost = '';
}
} else {
$user_asset_purchase_cost = '';
}
// Asset Company Name
if (array_key_exists('14',$row)) {
if ($row[14]!='') {
$user_asset_company_name = trim($row[14]);
} else {
$user_asset_company_name= '';
}
} else {
$user_asset_company_name = '';
}
// A number was given instead of a name
if (is_numeric($user_name)) {
$this->comment('User '.$user_name.' is not a name - assume this user already exists');
$user_username = '';
// No name was given
} elseif ($user_name=='') {
$this->comment('No user data provided - skipping user creation, just adding asset');
$first_name = '';
$last_name = '';
//$user_username = '';
} else {
$user_email_array = User::generateFormattedNameFromFullName($this->option('email_format'), $user_name);
$first_name = $user_email_array['first_name'];
$last_name = $user_email_array['last_name'];
if ($user_email=='') {
$user_email = $user_email_array['username'].'@'.Config::get('app.domain');
}
if ($user_username=='') {
if ($this->option('username_format')=='email') {
$user_username = $user_email;
} else {
$user_name_array = User::generateFormattedNameFromFullName($this->option('username_format'), $user_name);
$user_username = $user_name_array['username'];
}
}
}
$this->comment('Full Name: '.$user_name);
$this->comment('First Name: '.$first_name);
$this->comment('Last Name: '.$last_name);
$this->comment('Username: '.$user_username);
$this->comment('Email: '.$user_email);
$this->comment('Category Name: '.$user_asset_category);
$this->comment('Item: '.$user_asset_name);
$this->comment('Manufacturer ID: '.$user_asset_mfgr);
$this->comment('Model No: '.$user_asset_modelno);
$this->comment('Serial No: '.$user_asset_serial);
$this->comment('Asset Tag: '.$user_asset_tag);
$this->comment('Location: '.$user_asset_location);
$this->comment('Purchase Date: '.$user_asset_purchase_date);
$this->comment('Purchase Cost: '.$user_asset_purchase_cost);
$this->comment('Notes: '.$user_asset_notes);
$this->comment('Company Name: '.$user_asset_company_name);
$this->comment('------------- Action Summary ----------------');
if ($user_username!='') {
if ($user = User::MatchEmailOrUsername($user_username, $user_email)
->whereNotNull('username')->first()) {
$this->comment('User '.$user_username.' already exists');
} else {
// Create the user
$user = Sentry::createUser(array(
'first_name' => $first_name,
'last_name' => $last_name,
'email' => $user_email,
'username' => $user_username,
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 12),
'activated' => true,
'permissions' => array(
'admin' => 0,
'user' => 1,
),
'notes' => 'User imported through asset importer'
));
// Find the group using the group id
$userGroup = Sentry::findGroupById(3);
// Assign the group to the user
$user->addGroup($userGroup);
$this->comment('User '.$first_name.' created');
}
} else {
$user = new User;
}
// Check for the location match and create it if it doesn't exist
if ($location = Location::where('name', e($user_asset_location))->first()) {
$this->comment('Location '.$user_asset_location.' already exists');
} else {
$location = new Location();
if ($user_asset_location!='') {
$location->name = e($user_asset_location);
$location->address = '';
$location->city = '';
$location->state = '';
$location->country = '';
$location->user_id = 1;
if (!$this->option('testrun')=='true') {
if ($location->save()) {
$this->comment('Location '.$user_asset_location.' was created');
} else {
$this->comment('Something went wrong! Location '.$user_asset_location.' was NOT created');
}
} else {
$this->comment('Location '.$user_asset_location.' was (not) created - test run only');
}
} else {
$this->comment('No location given, so none created.');
}
}
if (e($user_asset_category)=='') {
$category_name = 'Unnamed Category';
} else {
$category_name = e($user_asset_category);
}
// Check for the category match and create it if it doesn't exist
if ($category = Category::where('name', e($category_name))->where('category_type', 'asset')->first()) {
$this->comment('Category '.$category_name.' already exists');
} else {
$category = new Category();
$category->name = e($category_name);
$category->category_type = 'asset';
$category->user_id = 1;
if ($category->save()) {
$this->comment('Category '.$user_asset_category.' was created');
} else {
$this->comment('Something went wrong! Category '.$user_asset_category.' was NOT created');
}
}
// Check for the manufacturer match and create it if it doesn't exist
if ($manufacturer = Manufacturer::where('name', e($user_asset_mfgr))->first()) {
$this->comment('Manufacturer '.$user_asset_mfgr.' already exists');
} else {
$manufacturer = new Manufacturer();
$manufacturer->name = e($user_asset_mfgr);
$manufacturer->user_id = 1;
if ($manufacturer->save()) {
$this->comment('Manufacturer '.$user_asset_mfgr.' was created');
} else {
$this->comment('Something went wrong! Manufacturer '.$user_asset_mfgr.' was NOT created');
}
}
// Check for the asset model match and create it if it doesn't exist
if ($asset_model = Model::where('name', e($user_asset_name))->where('modelno', e($user_asset_modelno))->where('category_id', $category->id)->where('manufacturer_id', $manufacturer->id)->first()) {
$this->comment('The Asset Model '.$user_asset_name.' with model number '.$user_asset_modelno.' already exists');
} else {
$asset_model = new Model();
$asset_model->name = e($user_asset_name);
$asset_model->manufacturer_id = $manufacturer->id;
$asset_model->modelno = e($user_asset_modelno);
$asset_model->category_id = $category->id;
$asset_model->user_id = 1;
if ($asset_model->save()) {
$this->comment('Asset Model '.$user_asset_name.' with model number '.$user_asset_modelno.' was created');
} else {
$this->comment('Something went wrong! Asset Model '.$user_asset_name.' was NOT created');
}
}
// Check for the asset company match and create it if it doesn't exist
if ($user_asset_company_name!='') {
if ($company = Company::where('name', e($user_asset_company_name))->first()) {
$this->comment('Company '.$user_asset_company_name.' already exists');
} else {
$company = new Company();
$company->name = e($user_asset_company_name);
if ($company->save()) {
$this->comment('Company '.$user_asset_company_name.' was created');
} else {
$this->comment('Something went wrong! Company '.$user_asset_company_name.' was NOT created');
}
}
} else {
$company = new Company();
}
// Check for the asset match and create it if it doesn't exist
if ($asset = Asset::where('asset_tag', e($user_asset_tag))->first()) {
$this->comment('The Asset with asset tag '.$user_asset_tag.' already exists');
} else {
$asset = new Asset();
$asset->name = e($user_asset_asset_name);
if ($user_asset_purchase_date!='') {
$asset->purchase_date = $user_asset_purchase_date;
} else {
$asset->purchase_date = NULL;
}
if ($user_asset_purchase_cost!='') {
$asset->purchase_cost = ParseFloat(e($user_asset_purchase_cost));
} else {
$asset->purchase_cost = 0.00;
}
$asset->serial = e($user_asset_serial);
$asset->asset_tag = e($user_asset_tag);
$asset->model_id = $asset_model->id;
$asset->assigned_to = $user->id;
$asset->rtd_location_id = $location->id;
$asset->user_id = 1;
$asset->status_id = $status_id;
$asset->company_id = $company->id;
if ($user_asset_purchase_date!='') {
$asset->purchase_date = $user_asset_purchase_date;
} else {
$asset->purchase_date = NULL;
}
$asset->notes = e($user_asset_notes);
if ($asset->save()) {
$this->comment('Asset '.$user_asset_name.' with serial number '.$user_asset_serial.' was created');
} else {
$this->comment('Something went wrong! Asset '.$user_asset_name.' was NOT created');
}
}
$this->comment('=====================================');
return true;
});
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
array('filename', InputArgument::REQUIRED, 'File for the CSV import.'),
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
array('username_format', null, InputOption::VALUE_REQUIRED, 'The format of the username that should be generated. Options are firstname.lastname, firstname, filastname, email', null),
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
);
}
}
+381
View File
@@ -0,0 +1,381 @@
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use League\Csv\Reader;
class LicenseImportCommand extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'license-import:csv';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Import Licenses from CSV';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$filename = $this->argument('filename');
if (!$this->option('testrun')=='true') {
$this->comment('======= Importing Licenses from '.$filename.' =========');
} else {
$this->comment('====== TEST ONLY License Import for '.$filename.' ====');
$this->comment('============== NO DATA WILL BE WRITTEN ==============');
}
if (! ini_get("auto_detect_line_endings")) {
ini_set("auto_detect_line_endings", '1');
}
$csv = Reader::createFromPath($this->argument('filename'));
$csv->setNewline("\r\n");
$csv->setOffset(1);
$duplicates = '';
// Loop through the records
$nbInsert = $csv->each(function ($row) use ($duplicates) {
$status_id = 1;
// Let's just map some of these entries to more user friendly words
if (array_key_exists('0',$row)) {
$user_name = trim($row[0]);
} else {
$user_name = '';
}
if (array_key_exists('1',$row)) {
$user_email = trim($row[1]);
} else {
$user_email = '';
}
if (array_key_exists('2',$row)) {
$user_username = trim($row[2]);
} else {
$user_username = '';
}
if (array_key_exists('3',$row)) {
$user_license_name = trim($row[3]);
} else {
$user_license_name = '';
}
if (array_key_exists('4',$row)) {
$user_license_serial = trim($row[4]);
} else {
$user_license_serial = '';
}
if (array_key_exists('5',$row)) {
$user_licensed_to_name = trim($row[5]);
} else {
$user_licensed_to_name = '';
}
if (array_key_exists('6',$row)) {
$user_licensed_to_email = trim($row[6]);
} else {
$user_licensed_to_email = '';
}
if (array_key_exists('7',$row)) {
$user_license_seats = trim($row[7]);
} else {
$user_license_seats = '';
}
if (array_key_exists('8',$row)) {
$user_license_reassignable = trim($row[8]);
if ($user_license_reassignable!='') {
if ((strtolower($user_license_reassignable)=='yes') || (strtolower($user_license_reassignable)=='true') || ($user_license_reassignable=='1')) {
$user_license_reassignable = 1;
}
} else {
$user_license_reassignable = 0;
}
} else {
$user_license_reassignable = 0;
}
if (array_key_exists('9',$row)) {
$user_license_supplier = trim($row[9]);
} else {
$user_license_supplier = '';
}
if (array_key_exists('10',$row)) {
$user_license_maintained = trim($row[10]);
if ($user_license_maintained!='') {
if ((strtolower($user_license_maintained)=='yes') || (strtolower($user_license_maintained)=='true') || ($user_license_maintained=='1')) {
$user_license_maintained = 1;
}
} else {
$user_license_maintained = 0;
}
} else {
$user_license_maintained = '';
}
if (array_key_exists('11',$row)) {
$user_license_notes = trim($row[11]);
} else {
$user_license_notes = '';
}
if (array_key_exists('12',$row)) {
if ($row[12]!='') {
$user_license_purchase_date = date("Y-m-d 00:00:01", strtotime($row[12]));
} else {
$user_license_purchase_date = '';
}
} else {
$user_license_purchase_date = 0;
}
// A number was given instead of a name
if (is_numeric($user_name)) {
$this->comment('User '.$user_name.' is not a name - assume this user already exists');
$user_username = '';
// No name was given
} elseif ($user_name=='') {
$this->comment('No user data provided - skipping user creation, just adding license');
$first_name = '';
$last_name = '';
$user_username = '';
} else {
$name = explode(" ", $user_name);
$first_name = $name[0];
$email_last_name = '';
$email_prefix = $first_name;
if (!array_key_exists(1, $name)) {
$last_name='';
$email_last_name = $last_name;
$email_prefix = $first_name;
} else {
$last_name = str_replace($first_name,'',$user_name);
if ($this->option('email_format')=='filastname') {
$email_last_name.=str_replace(' ','',$last_name);
$email_prefix = $first_name[0].$email_last_name;
} elseif ($this->option('email_format')=='firstname.lastname') {
$email_last_name.=str_replace(' ','',$last_name);
$email_prefix = $first_name.'.'.$email_last_name;
} elseif ($this->option('email_format')=='firstname') {
$email_last_name.=str_replace(' ','',$last_name);
$email_prefix = $first_name;
}
}
$user_username = $email_prefix;
// Generate an email based on their name if no email address is given
if ($user_email=='') {
if ($first_name=='Unknown') {
$status_id = 7;
}
$email = strtolower($email_prefix).'@'.$this->option('domain');
$user_email = str_replace("'",'',$email);
}
}
$this->comment('Full Name: '.$user_name);
$this->comment('First Name: '.$first_name);
$this->comment('Last Name: '.$last_name);
$this->comment('Username: '.$user_username);
$this->comment('Email: '.$user_email);
$this->comment('License Name: '.$user_license_name);
$this->comment('Serial No: '.$user_license_serial);
$this->comment('Licensed To Name: '.$user_licensed_to_name);
$this->comment('Licensed To Email: '.$user_licensed_to_email);
$this->comment('Seats: '.$user_license_seats);
$this->comment('Reassignable: '.$user_license_reassignable);
$this->comment('Supplier: '.$user_license_supplier);
$this->comment('Maintained: '.$user_license_maintained);
$this->comment('Notes: '.$user_license_notes);
$this->comment('Purchase Date: '.$user_license_purchase_date);
$this->comment('------------- Action Summary ----------------');
if ($user_username!='') {
if ($user = User::where('username', $user_username)->whereNotNull('username')->first()) {
$this->comment('User '.$user_username.' already exists');
} else {
// Create the user
$user = Sentry::createUser(array(
'first_name' => $first_name,
'last_name' => $last_name,
'email' => $user_email,
'username' => $user_username,
'password' => substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10),
'activated' => true,
'permissions' => array(
'admin' => 0,
'user' => 1,
),
'notes' => 'User importerd through license importer'
));
// Find the group using the group id
$userGroup = Sentry::findGroupById(3);
// Assign the group to the user
$user->addGroup($userGroup);
$this->comment('User '.$first_name.' created');
}
} else {
$user = new User;
$user->user_id = NULL;
}
// Check for the supplier match and create it if it doesn't exist
if ($supplier = Supplier::where('name', $user_license_supplier)->first()) {
$this->comment('Supplier '.$user_license_supplier.' already exists');
} else {
$supplier = new Supplier();
$supplier->name = e($user_license_supplier);
$supplier->user_id = 1;
if ($supplier->save()) {
$this->comment('Supplier '.$user_license_supplier.' was created');
} else {
$this->comment('Something went wrong! Supplier '.$user_license_supplier.' was NOT created');
}
}
// Add the license
$license = new License();
$license->name = e($user_license_name);
if ($user_license_purchase_date!='') {
$license->purchase_date = $user_license_purchase_date;
} else {
$license->purchase_date = NULL;
}
$license->serial = e($user_license_serial);
$license->seats = e($user_license_seats);
$license->supplier_id = $supplier->id;
$license->user_id = 1;
if ($user_license_purchase_date!='') {
$license->purchase_date = $user_license_purchase_date;
} else {
$license->purchase_date = NULL;
}
$license->license_name = $user_licensed_to_name;
$license->license_email = $user_licensed_to_email;
$license->notes = e($user_license_notes);
if ($license->save()) {
$this->comment('License '.$user_license_name.' with serial number '.$user_license_serial.' was created');
$license_seat_created = 0;
for ($x = 0; $x < $user_license_seats; $x++) {
// Create the license seat entries
$license_seat = new LicenseSeat();
$license_seat->license_id = $license->id;
// Only assign the first seat to the user
if ($x==0) {
$license_seat->assigned_to = $user->id;
} else {
$license_seat->assigned_to = NULL;
}
if ($license_seat->save()) {
$license_seat_created++;
}
}
if ($license_seat_created > 0) {
$this->comment($license_seat_created.' seats were created');
} else {
$this->comment('Something went wrong! NO seats for '.$user_license_name.' were created');
}
} else {
$this->comment('Something went wrong! License '.$user_license_name.' was NOT created');
}
$this->comment('=====================================');
return true;
});
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
array('filename', InputArgument::REQUIRED, 'File for the CSV import.'),
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
array('domain', null, InputOption::VALUE_REQUIRED, 'Email domain for generated email addresses.', null),
array('email_format', null, InputOption::VALUE_REQUIRED, 'The format of the email addresses that should be generated. Options are firstname.lastname, firstname, filastname', null),
array('testrun', null, InputOption::VALUE_REQUIRED, 'Test the output without writing to the database or not.', null),
);
}
}
+130
View File
@@ -0,0 +1,130 @@
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class SendExpirationAlerts extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'alerts:expiring';
/**
* The console command description.
*
* @var string
*/
protected $description = 'This command checks for expiring warrantees and service agreements, and sends out an alert email.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
// Expiring Assets
$expiring_assets = Asset::getExpiringWarrantee(60);
$this->info(count($expiring_assets).' expiring assets');
$asset_data['count'] = count($expiring_assets);
$asset_data['email_content'] ='';
$now = date("Y-m-d");
foreach ($expiring_assets as $asset) {
$expires = $asset->warrantee_expires();
$difference = round(abs(strtotime($expires) - strtotime($now))/86400);
if ($difference > 30) {
$asset_data['email_content'] .= '<tr style="background-color: #fcffa3;">';
} else {
$asset_data['email_content'] .= '<tr style="background-color:#d9534f;">';
}
$asset_data['email_content'] .= '<td><a href="'.Config::get('app.url').'/hardware/'.$asset->id.'/view">';
$asset_data['email_content'] .= $asset->showAssetName().'</a></td><td>'.$asset->asset_tag.'</td>';
$asset_data['email_content'] .= '<td>'.$asset->warrantee_expires().'</td>';
$asset_data['email_content'] .= '<td>'.$difference.' days</td>';
$asset_data['email_content'] .= '</tr>';
}
// Expiring licenses
$expiring_licenses = License::getExpiringLicenses(60);
$this->info(count($expiring_licenses).' expiring licenses');
$license_data['count'] = count($expiring_licenses);
$license_data['email_content'] = '';
foreach ($expiring_licenses as $license) {
$expires = $license->expiration_date;
$difference = round(abs(strtotime($expires) - strtotime($now))/86400);
if ($difference > 30) {
$license_data['email_content'] .= '<tr style="background-color: #fcffa3;">';
} else {
$license_data['email_content'] .= '<tr style="background-color:#d9534f;">';
}
$license_data['email_content'] .= '<td><a href="'.Config::get('app.url').'/admin/licenses/'.$license->id.'/view">';
$license_data['email_content'] .= $license->name.'</a></td>';
$license_data['email_content'] .= '<td>'.$license->expiration_date.'</td>';
$license_data['email_content'] .= '<td>'.$difference.' days</td>';
$license_data['email_content'] .= '</tr>';
}
if ((Setting::getSettings()->alert_email!='') && (Setting::getSettings()->alerts_enabled==1)) {
if (count($expiring_assets) > 0) {
Mail::send('emails.expiring-assets-report', $asset_data, function ($m) {
$m->to(Setting::getSettings()->alert_email, Setting::getSettings()->site_name);
$m->subject('Expiring Assets Report');
});
}
if (count($expiring_licenses) > 0) {
Mail::send('emails.expiring-licenses-report', $license_data, function ($m) {
$m->to(Setting::getSettings()->alert_email, Setting::getSettings()->site_name);
$m->subject('Expiring Licenses Report');
});
}
} else {
if (Setting::getSettings()->alert_email=='') {
echo "Could not send email. No alert email configured in settings. \n";
} elseif (Setting::getSettings()->alerts_enabled!=1) {
echo "Alerts are disabled in the settings. No mail will be sent. \n";
}
}
}
}
+65
View File
@@ -0,0 +1,65 @@
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class SystemBackup extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'snipeit:backup';
/**
* The console command description.
*
* @var string
*/
protected $description = 'This command creates a database dump and zips up all of the uploaded files in the upload directories.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
//
$files['avatars'] = glob(public_path().'/uploads/avatars/*');
$files['models'] = glob(public_path().'/uploads/models/*');
$files['suppliers'] = glob(public_path().'/uploads/suppliers/*');
$files['private_uploads'] = glob(app_path().'/private_uploads/*');
$base_filename = date('Ymdgis');
$zip_file = app_path().'/storage/dumps/'.$base_filename.'-backup.zip';
$db_dump = Config::get('backup::path').$base_filename.'-db.sql';
$this->call('db:backup', array('filename' => $db_dump));
Zipper::make($zip_file)
->folder('avatars')->add($files['avatars'])
->folder('models')->add($files['models'])
->folder('suppliers')->add($files['suppliers'])
->folder('private_uploads')->add($files['private_uploads'])
->folder('database')->add($db_dump)->close();
$this->info('Backup file created at '.$zip_file);
$this->info('Removing SQL dump at '.$db_dump);
unlink($db_dump);
}
}
+89
View File
@@ -0,0 +1,89 @@
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Versioning extends Command {
/**
* The console command name.
*
* @var string
*/
protected $name = 'versioning:update';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Generate and update app\'s version via git.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
// Path to the file containing your version
// This will be overwritten everything you commit a message
$versionFile = app_path().'/config/version.php';
// The git's output
// get the argument passed in the git command
$hash_version = $this->argument('app_version');
// discard the commit hash
$version = explode('-', $hash_version);
$realVersion = $version[0] . '-' . $version[1];
// save the version array to a variable
$array = var_export(array('app_version' => $realVersion,'hash_version' => $hash_version), true);
// Construct our file content
$content = <<<CON
<?php
return $array;
CON;
// And finally write the file and output the current version
\File::put($versionFile, $content);
$this->line('Setting version: '. \Config::get('version.latest'));
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return array(
array('app_version', InputArgument::REQUIRED, 'version number is required.'),
);
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return array(
);
}
}
+80 -41
View File
@@ -20,13 +20,44 @@ return array(
| Application Locale
|--------------------------------------------------------------------------
|
| This locale ties into the languaage files in app/lang, which contain the
| This locale ties into the language files in app/lang, which contain the
| language files for each translation.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| This setting may be used to control the default cipher used by the Laravel
| encryption facilities.
|
| Note: In Laravel 4.2, the default cipher is MCRYPT_RIJNDAEL_128 (AES),
| which is considered to be the most secure cipher. Changing the cipher
| back to MCRYPT_RIJNDAEL_256 is required to decrypt cookies/values that
| were encrypted in Laravel <= 4.1
|
*/
'cipher' => MCRYPT_RIJNDAEL_256,
/*
|--------------------------------------------------------------------------
| Prevent Password changes
|--------------------------------------------------------------------------
|
| If for some reason you do not wish for admins to be able to edit the password
| for any user (including themselves), set this to true.
|
*/
'lock_passwords' => false,
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
@@ -70,6 +101,10 @@ return array(
'Barryvdh\Debugbar\ServiceProvider',
'Cartalyst\Sentry\SentryServiceProvider',
'Chumper\Datatable\DatatableServiceProvider',
'Maknz\Slack\SlackServiceProvider',
'Schickling\Backup\BackupServiceProvider',
'Chumper\Zipper\ZipperServiceProvider',
'Fideloper\Proxy\ProxyServiceProvider',
),
@@ -99,46 +134,50 @@ return array(
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'ClassLoader' => 'Illuminate\Support\ClassLoader',
'Config' => 'Illuminate\Support\Facades\Config',
'Controller' => 'Illuminate\Routing\Controller',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Support\Facades\Form',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Support\Facades\HTML',
'Image' => 'Intervention\Image\ImageManagerStatic',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Seeder' => 'Illuminate\Database\Seeder',
'Sentry' => 'Cartalyst\Sentry\Facades\Laravel\Sentry',
'Session' => 'Illuminate\Support\Facades\Session',
'SSH' => 'Illuminate\Support\Facades\SSH',
'Str' => 'Illuminate\Support\Str',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View'
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Cache' => 'Illuminate\Support\Facades\Cache',
'ClassLoader' => 'Illuminate\Support\ClassLoader',
'Config' => 'Illuminate\Support\Facades\Config',
'Controller' => 'Illuminate\Routing\Controller',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Form' => 'Illuminate\Support\Facades\Form',
'Hash' => 'Illuminate\Support\Facades\Hash',
'HTML' => 'Illuminate\Support\Facades\HTML',
'Image' => 'Intervention\Image\ImageManagerStatic',
'Input' => 'Illuminate\Support\Facades\Input',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Paginator' => 'Illuminate\Support\Facades\Paginator',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Seeder' => 'Illuminate\Database\Seeder',
'Sentry' => 'Cartalyst\Sentry\Facades\Laravel\Sentry',
'Session' => 'Illuminate\Support\Facades\Session',
'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait',
'SSH' => 'Illuminate\Support\Facades\SSH',
'Str' => 'Illuminate\Support\Str',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
'Reader' => 'League\Csv\Reader',
'Slack' => 'Maknz\Slack\Facades\Slack',
'Zipper' => 'Chumper\Zipper\Zipper',
),
+13
View File
@@ -28,6 +28,19 @@ return array(
'url' => 'http://snipe-it-laravel.local:8888',
/*
|--------------------------------------------------------------------------
| Organization Domain Name
|--------------------------------------------------------------------------
|
| The domain name of the organization, used when generating email addresses
| through the import tools.
|
*/
'domain' => 'yourserver.com',
/*
|--------------------------------------------------------------------------
| Encryption Key
+1
View File
@@ -61,6 +61,7 @@ return array(
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
),
'pgsql' => array(
+112
View File
@@ -0,0 +1,112 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| URL
|--------------------------------------------------------------------------
|
| URL for the LDAP server. This should start with ldap://, for example:
| ldap://ldap.yourserver.com
|
*/
'url' => "",
/*
|--------------------------------------------------------------------------
| Username
|--------------------------------------------------------------------------
|
| Username to use to connect authenticate to LDAP, for example:
| cn=read-only-admin,dc=example,dc=com
|
*/
'username' => "",
/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
|
| Password to use when authenticating to LDAP.
|
*/
'password' => "",
/*
|--------------------------------------------------------------------------
| Basedn
|--------------------------------------------------------------------------
|
| The base where the search for users will be executed, for example:
| dc=example,dc=com
|
*/
'basedn' => "",
/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query. This probably does not have to be
| changed.
|
*/
'filter' => "&(cn=*)",
/*
|--------------------------------------------------------------------------
| LDAP field names that will be retrieved to create a user.
|
| Using the username as an example:
| If I set 'result.username' => 'my-org-username', the code will connect to
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
| Note: all these fields are required.
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query.
|
*/
'result.username' => "",
'result.last.name' => "",
'result.first.name' => "",
/*
| These fields are optional as not all LDAP directories will have it. If yours
| does not have them, just leave these blank and the extra check will
| be omitted.
*/
'result.active.flag' => "",
'result.emp.num' => "",
'result.email' => "",
/*
|--------------------------------------------------------------------------
| LDAP filter query for authentication
|--------------------------------------------------------------------------
|
| The LDAP query that we want to execute when authenticating a user. This
| should not have to be changed.
|
*/
'authentication.filter.query' => "uid=",
/*
|--------------------------------------------------------------------------
| LDAP Version
|--------------------------------------------------------------------------
|
| Version of LDAP you are using.
|
*/
'version' => 3,
);
+1 -1
View File
@@ -28,7 +28,7 @@ return array(
|
*/
'host' => 'smtp.mailgun.org',
'host' => 'smtp.mandrillapp.com',
/*
|--------------------------------------------------------------------------
+140
View File
@@ -0,0 +1,140 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => 'file',
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 12000,
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path().'/sessions',
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => array(2, 100),
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'snipeit_session',
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => null,
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => false,
);
@@ -46,7 +46,7 @@ return array(
|
*/
'hasher' => 'native',
'hasher' => 'bcrypt',
/*
|--------------------------------------------------------------------------
@@ -134,7 +134,7 @@ return array(
|
*/
'login_attribute' => 'email',
'login_attribute' => 'username',
),
@@ -0,0 +1,210 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Table specific configuration options.
|--------------------------------------------------------------------------
|
*/
'table' => array(
/*
|--------------------------------------------------------------------------
| Table class
|--------------------------------------------------------------------------
|
| Class(es) added to the table
| Supported: string
|
*/
'class' => 'table table-bordered',
/*
|--------------------------------------------------------------------------
| Table ID
|--------------------------------------------------------------------------
|
| ID given to the table. Used for connecting the table and the Datatables
| jQuery plugin. If left empty a random ID will be generated.
| Supported: string
|
*/
'id' => '',
/*
|--------------------------------------------------------------------------
| DataTable options
|--------------------------------------------------------------------------
|
| jQuery dataTable plugin options. The array will be json_encoded and
| passed through to the plugin. See https://datatables.net/usage/options
| for more information.
| Supported: array
|
*/
'options' => array(
"pagingType" => "full_numbers",
'processing'=>true,
'language'=>array(
'processing'=>'<i class="fa fa-spinner fa-spin"></i> Loading...'
),
'deferRender'=> true,
'stateSave'=> true,
'paging'=>true,
'pageLength'=> Setting::getSettings()->per_page,
'lengthMenu'=>array(array(10,25,50,75,100,125,150,-1), array(10,25,50,75,100,125,150,'All')),
'tableTools' => array(
'sSwfPath'=> Config::get('app.url').'/assets/swf/copy_csv_xls_pdf.swf',
'aButtons'=>array(
array(
'sExtends'=>'copy',
'sButtonText'=>'Copy',
'mColumns'=>'visible',
'bFooter'=>false,
),
array(
'sExtends'=>'print',
'sButtonText'=>'Print',
'mColumns'=>'visible',
'bShowAll'=>true,
),
array(
'sExtends'=>'collection',
'sButtonText'=>'Export',
'aButtons'=>array(
array(
'sExtends'=>'csv',
'sButtonText'=>'csv',
'mColumns'=>'visible',
'bFooter'=>false,
),
array(
'sExtends'=>'xls',
'sButtonText'=>'XLS',
'mColumns'=>'visible',
'bFooter'=>false,
),
array(
'sExtends'=>'pdf',
'sButtonText'=>'PDF',
'mColumns'=>'visible',
'bFooter'=>false,
)
)
)
)
),
),
/*
|--------------------------------------------------------------------------
| DataTable callbacks
|--------------------------------------------------------------------------
|
| jQuery dataTable plugin callbacks. The array will be json_encoded and
| passed through to the plugin. See https://datatables.net/usage/callbacks
| for more information.
| Supported: array
|
*/
'callbacks' => array(
"stateSaveCallback"=>"function (oSettings, oData) {
localStorage.setItem('DataTables_'+window.location.pathname, JSON.stringify(oData));
}",
"stateLoadCallback"=>"function (oSettings) {
return JSON.parse(localStorage.getItem('DataTables_'+window.location.pathname));
}",
),
/*
|--------------------------------------------------------------------------
| Skip javascript in table template
|--------------------------------------------------------------------------
|
| Determines if the template should echo the javascript
| Supported: boolean
|
*/
'noScript' => false,
/*
|--------------------------------------------------------------------------
| Table view
|--------------------------------------------------------------------------
|
| Template used to render the table
| Supported: string
|
*/
'table_view' => 'datatable::template',
/*
|--------------------------------------------------------------------------
| Script view
|--------------------------------------------------------------------------
|
| Template used to render the javascript
| Supported: string
|
*/
'script_view' => 'datatable::javascript',
),
/*
|--------------------------------------------------------------------------
| Engine specific configuration options.
|--------------------------------------------------------------------------
|
*/
'engine' => array(
/*
|--------------------------------------------------------------------------
| Search for exact words
|--------------------------------------------------------------------------
|
| If the search should be done with exact matching
| Supported: boolean
|
*/
'exactWordSearch' => false,
/*
|--------------------------------------------------------------------------
| Enable to display all records.
|--------------------------------------------------------------------------
|
| Be careful! It may be overloaded with large record.
| Supported: boolean
|
*/
'enableDisplayAll' => false,
/*
|--------------------------------------------------------------------------
| Limit display when iDisplayLength invaild
|--------------------------------------------------------------------------
*/
'defaultDisplayLength' => 10,
)
);
@@ -0,0 +1,31 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Trusted Proxies
|--------------------------------------------------------------------------
|
| Set an array of trusted proxies, so Laravel knows to grab the client's
| information via the X-Forwarded-* headers.
|
| To trust all proxies, use the value '*':
|
| 'proxies' => '*'
|
|
| To trust only specific proxies (recommended), set an array of those
| proxies' IP addresses:
|
| 'proxies' => array('192.168.1.1', '192.168.1.2')
|
|
| Or use CIDR notation:
|
| 'proxies' => array('192.168.12.0/23')
|
*/
'proxies' => '*',
);
+122
View File
@@ -0,0 +1,122 @@
<?php
return [
/*
|-------------------------------------------------------------
| Incoming webhook endpoint
|-------------------------------------------------------------
|
| The endpoint which Slack generates when creating a
| new incoming webhook. It will look something like
| https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXXXXXXXX
|
*/
'endpoint' => '',
/*
|-------------------------------------------------------------
| Default channel
|-------------------------------------------------------------
|
| The default channel we should post to. The channel can either be a
| channel like #general, a private #group, or a @username. Set to
| null to use the default set on the Slack webhook
|
*/
'channel' => '#general',
/*
|-------------------------------------------------------------
| Default username
|-------------------------------------------------------------
|
| The default username we should post as. Set to null to use
| the default set on the Slack webhook
|
*/
'username' => 'Snipe-IT Bot',
/*
|-------------------------------------------------------------
| Default icon
|-------------------------------------------------------------
|
| The default icon to use. This can either be a URL to an image or Slack
| emoji like :ghost: or :heart_eyes:. Set to null to use the default
| set on the Slack webhook
|
*/
'icon' => null,
/*
|-------------------------------------------------------------
| Link names
|-------------------------------------------------------------
|
| Whether names like @regan should be converted into links
| by Slack
|
*/
'link_names' => false,
/*
|-------------------------------------------------------------
| Unfurl links
|-------------------------------------------------------------
|
| Whether Slack should unfurl links to text-based content
|
*/
'unfurl_links' => false,
/*
|-------------------------------------------------------------
| Unfurl media
|-------------------------------------------------------------
|
| Whether Slack should unfurl links to media content such
| as images and YouTube videos
|
*/
'unfurl_media' => true,
/*
|-------------------------------------------------------------
| Markdown in message text
|-------------------------------------------------------------
|
| Whether message text should be interpreted in Slack's Markdown-like
| language. For formatting options, see Slack's help article: http://goo.gl/r4fsdO
|
*/
'allow_markdown' => true,
/*
|-------------------------------------------------------------
| Markdown in attachments
|-------------------------------------------------------------
|
| Which attachment fields should be interpreted in Slack's Markdown-like
| language. By default, Slack assumes that no fields in an attachment
| should be formatted as Markdown.
|
*/
'markdown_in_attachments' => [],
// Allow Markdown in just the text and title fields
// 'markdown_in_attachments' => ['text', 'title']
// Allow Markdown in all fields
// 'markdown_in_attachments' => ['pretext', 'text', 'title', 'fields', 'fallback']
];
@@ -0,0 +1,15 @@
<?php
return array(
'path' => 'app/storage/dumps/',
'mysql' => array(
'dump_command_path' => '',
'restore_command_path' => '',
),
's3' => array(
'path' => ''
),
'compress' => false,
);
+11
View File
@@ -6,6 +6,7 @@ return array(
array(
'permission' => 'superuser',
'label' => 'Super User',
'note' => 'Determines whether the user has full access to all aspects of the admin. ',
),
),
@@ -13,6 +14,7 @@ return array(
array(
'permission' => 'admin',
'label' => 'Admin Rights',
'note' => 'Determines whether the user has access to most aspects of the admin.',
),
),
@@ -20,6 +22,15 @@ return array(
array(
'permission' => 'reports',
'label' => 'View Reports',
'note' => 'Determines whether the user has the abiity to view reports.',
),
),
'Licenses' => array(
array(
'permission' => 'license_keys',
'label' => 'View License Keys',
'note' => 'Determines whether the user has the ability to view the license keys assigned to them in their own profile. (Usually granted for lower-level permissions that wouldn\'t normally have access.)',
),
),
+1
View File
@@ -1,3 +1,4 @@
app.php
mail.php
database.php
ldap.php
+15 -2
View File
@@ -13,7 +13,7 @@ return array(
|
*/
'debug' => true,
'debug' => false,
/*
|--------------------------------------------------------------------------
@@ -26,7 +26,20 @@ return array(
|
*/
'url' => 'http://staging.yourserver.com',
'url' => 'https://production.yourserver.com',
/*
|--------------------------------------------------------------------------
| Organization Domain Name
|--------------------------------------------------------------------------
|
| The domain name of the organization, used when generating email addresses
| through the import tools.
|
*/
'domain' => 'yourserver.com',
/*
|--------------------------------------------------------------------------
+112
View File
@@ -0,0 +1,112 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| URL
|--------------------------------------------------------------------------
|
| URL for the LDAP server. This should start with ldap://, for example:
| ldap://ldap.yourserver.com
|
*/
'url' => "",
/*
|--------------------------------------------------------------------------
| Username
|--------------------------------------------------------------------------
|
| Username to use to connect authenticate to LDAP, for example:
| cn=read-only-admin,dc=example,dc=com
|
*/
'username' => "",
/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
|
| Password to use when authenticating to LDAP.
|
*/
'password' => "",
/*
|--------------------------------------------------------------------------
| Basedn
|--------------------------------------------------------------------------
|
| The base where the search for users will be executed, for example:
| dc=example,dc=com
|
*/
'basedn' => "",
/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query. This probably does not have to be
| changed.
|
*/
'filter' => "&(cn=*)",
/*
|--------------------------------------------------------------------------
| LDAP field names that will be retrieved to create a user.
|
| Using the username as an example:
| If I set 'result.username' => 'my-org-username', the code will connect to
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query.
| Note: all these fields are required, and they should all be lowercase.
|
*/
'result.username' => "",
'result.last.name' => "",
'result.first.name' => "",
/*
| These fields are optional as not all LDAP directories will have it. If yours
| does not have them, just leave these blank and the extra check will
| be omitted.
*/
'result.active.flag' => "",
'result.emp.num' => "",
'result.email' => "",
/*
|--------------------------------------------------------------------------
| LDAP filter query for authentication
|--------------------------------------------------------------------------
|
| The LDAP query that we want to execute when authenticating a user. This
| should not have to be changed.
|
*/
'authentication.filter.query' => "uid=",
/*
|--------------------------------------------------------------------------
| LDAP Version
|--------------------------------------------------------------------------
|
| Version of LDAP you are using.
|
*/
'version' => 3,
);
+1 -1
View File
@@ -28,7 +28,7 @@ return array(
|
*/
'host' => 'smtp.mailgun.org',
'host' => 'smtp.mandrillapp.com',
/*
|--------------------------------------------------------------------------
+154
View File
@@ -0,0 +1,154 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => 'file',
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 12000,
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path().'/sessions',
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => array(2, 100),
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'snipeit_session',
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => null,
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => false,
/*
|--------------------------------------------------------------------------
| Allow multiple logins from different devices at the same time
|--------------------------------------------------------------------------
|
| By default, if a user logs into an account where someone is already
| logged in, the previous user will be logged out. We recommend leaving
| this set to false for security reasons.
|
*/
'multi_login' => false,
);
+14 -1
View File
@@ -13,7 +13,7 @@ return array(
|
*/
'debug' => true,
'debug' => false,
/*
|--------------------------------------------------------------------------
@@ -28,6 +28,19 @@ return array(
'url' => 'http://staging.yourserver.com',
/*
|--------------------------------------------------------------------------
| Organization Domain Name
|--------------------------------------------------------------------------
|
| The domain name of the organization, used when generating email addresses
| through the import tools.
|
*/
'domain' => 'yourserver.com',
/*
|--------------------------------------------------------------------------
| Encryption Key
+112
View File
@@ -0,0 +1,112 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| URL
|--------------------------------------------------------------------------
|
| URL for the LDAP server. This should start with ldap://, for example:
| ldap://ldap.yourserver.com
|
*/
'url' => "",
/*
|--------------------------------------------------------------------------
| Username
|--------------------------------------------------------------------------
|
| Username to use to connect authenticate to LDAP, for example:
| cn=read-only-admin,dc=example,dc=com
|
*/
'username' => "",
/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
|
| Password to use when authenticating to LDAP.
|
*/
'password' => "",
/*
|--------------------------------------------------------------------------
| Basedn
|--------------------------------------------------------------------------
|
| The base where the search for users will be executed, for example:
| dc=example,dc=com
|
*/
'basedn' => "",
/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query. This probably does not have to be
| changed.
|
*/
'filter' => "&(cn=*)",
/*
|--------------------------------------------------------------------------
| LDAP field names that will be retrieved to create a user.
|
| Using the username as an example:
| If I set 'result.username' => 'my-org-username', the code will connect to
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
| Note: all these fields are required.
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query.
|
*/
'result.username' => "",
'result.last.name' => "",
'result.first.name' => "",
/*
| These fields are optional as not all LDAP directories will have it. If yours
| does not have them, just leave these blank and the extra check will
| be omitted.
*/
'result.active.flag' => "",
'result.emp.num' => "",
'result.email' => "",
/*
|--------------------------------------------------------------------------
| LDAP filter query for authentication
|--------------------------------------------------------------------------
|
| The LDAP query that we want to execute when authenticating a user. This
| should not have to be changed.
|
*/
'authentication.filter.query' => "uid=",
/*
|--------------------------------------------------------------------------
| LDAP Version
|--------------------------------------------------------------------------
|
| Version of LDAP you are using.
|
*/
'version' => 3,
);
+1 -1
View File
@@ -28,7 +28,7 @@ return array(
|
*/
'host' => 'smtp.mailgun.org',
'host' => 'smtp.mandrillapp.com',
/*
|--------------------------------------------------------------------------
+154
View File
@@ -0,0 +1,154 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use the lightweight native driver but
| you may specify any of the other wonderful drivers provided here.
|
| Supported: "file", "cookie", "database", "apc",
| "memcached", "redis", "array"
|
*/
'driver' => 'file',
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/
'lifetime' => 12000,
'expire_on_close' => false,
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When using the native session driver, we need a location where session
| files may be stored. A default has been set for you but a different
| location may be specified. This is only needed for file sessions.
|
*/
'files' => storage_path().'/sessions',
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table we
| should use to manage the sessions. Of course, a sensible default is
| provided for you; however, you are free to change this as needed.
|
*/
'table' => 'sessions',
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => array(2, 100),
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'snipeit_session',
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application but you are free to change this when necessary.
|
*/
'path' => '/',
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| Here you may change the domain of the cookie used to identify a session
| in your application. This will determine which domains the cookie is
| available to in your application. A sensible default has been set.
|
*/
'domain' => null,
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you if it can not be done securely.
|
*/
'secure' => true,
/*
|--------------------------------------------------------------------------
| Allow multiple logins from different devices at the same time
|--------------------------------------------------------------------------
|
| By default, if a user logs into an account where someone is already
| logged in, the previous user will be logged out. We recommend leaving
| this set to false for security reasons.
|
*/
'multi_login' => true,
);
+2 -2
View File
@@ -26,7 +26,7 @@ return array(
|
*/
'url' => 'http://staging.yourserver.com',
'url' => 'http://snipe-it.dev',
/*
|--------------------------------------------------------------------------
@@ -40,6 +40,6 @@ return array(
| Run a php artisan key:generate --env=staging to create a random one
*/
'key' => 'Change_this_key_or_snipe_will_get_ya',
'key' => '8YHfiO4EyWBewqrpGHDA4Iuom2ZIahXQ',
);
+13 -1
View File
@@ -26,7 +26,7 @@ return array(
|
*/
'default' => 'sqlite',
'default' => 'mysql',
/*
|--------------------------------------------------------------------------
@@ -50,6 +50,18 @@ return array(
'database' => ':memory:',
'prefix' => ''
),
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'snipeit_unit',
'username' => 'travis',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
),
/*
+112
View File
@@ -0,0 +1,112 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| URL
|--------------------------------------------------------------------------
|
| URL for the LDAP server. This should start with ldap://, for example:
| ldap://ldap.yourserver.com
|
*/
'url' => "",
/*
|--------------------------------------------------------------------------
| Username
|--------------------------------------------------------------------------
|
| Username to use to connect authenticate to LDAP, for example:
| cn=read-only-admin,dc=example,dc=com
|
*/
'username' => "",
/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
|
| Password to use when authenticating to LDAP.
|
*/
'password' => "",
/*
|--------------------------------------------------------------------------
| Basedn
|--------------------------------------------------------------------------
|
| The base where the search for users will be executed, for example:
| dc=example,dc=com
|
*/
'basedn' => "",
/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query. This probably does not have to be
| changed.
|
*/
'filter' => "&(cn=*)",
/*
|--------------------------------------------------------------------------
| LDAP field names that will be retrieved to create a user.
|
| Using the username as an example:
| If I set 'result.username' => 'my-org-username', the code will connect to
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
| Note: all these fields are required.
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query.
|
*/
'result.username' => "",
'result.last.name' => "",
'result.first.name' => "",
/*
| These fields are optional as not all LDAP directories will have it. If yours
| does not have them, just leave these blank and the extra check will
| be omitted.
*/
'result.active.flag' => "",
'result.emp.num' => "",
'result.email' => "",
/*
|--------------------------------------------------------------------------
| LDAP filter query for authentication
|--------------------------------------------------------------------------
|
| The LDAP query that we want to execute when authenticating a user. This
| should not have to be changed.
|
*/
'authentication.filter.query' => "uid=",
/*
|--------------------------------------------------------------------------
| LDAP Version
|--------------------------------------------------------------------------
|
| Version of LDAP you are using.
|
*/
'version' => 3,
);
+2 -2
View File
@@ -28,7 +28,7 @@ return array(
|
*/
'host' => 'smtp.mailgun.org',
'host' => 'smtp.mandrillapp.com',
/*
|--------------------------------------------------------------------------
@@ -119,6 +119,6 @@ return array(
|
*/
'pretend' => false,
'pretend' => true,
);
+45
View File
@@ -0,0 +1,45 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => true,
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => 'http://localhost:8007',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
| Run a php artisan key:generate --env=staging to create a random one
*/
'key' => '8YHfiO4EyWBewqrpGHDA4Iuom2ZIahXQ',
);
+20
View File
@@ -0,0 +1,20 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| This option controls the default cache "driver" that will be used when
| using the Caching library. Of course, you may use other drivers any
| time you wish. This is the default when another is not specified.
|
| Supported: "file", "database", "apc", "memcached", "redis", "array"
|
*/
'driver' => 'array',
);
+103
View File
@@ -0,0 +1,103 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire to retrieve records in an
| array format for simplicity. Here you can tweak the fetch style.
|
*/
'fetch' => PDO::FETCH_CLASS,
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for all database work. Of course
| you may use many connections at once using the Database library.
|
*/
'default' => 'mysql',
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Here are each of the database connections setup for your application.
| Of course, examples of configuring each database platform that is
| supported by Laravel is shown below to make development simple.
|
|
| All database work in Laravel is done through the PHP PDO facilities
| so make sure you have the driver for your particular database of
| choice installed on your machine before you begin development.
|
*/
'connections' => array(
'sqlite' => array(
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => ''
),
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'snipeit_unit',
'username' => 'travis',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
),
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk have not actually be run in the databases.
|
*/
'migrations' => 'migrations',
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => array(
'cluster' => true,
'default' => array(
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
),
),
);
+112
View File
@@ -0,0 +1,112 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| URL
|--------------------------------------------------------------------------
|
| URL for the LDAP server. This should start with ldap://, for example:
| ldap://ldap.yourserver.com
|
*/
'url' => "",
/*
|--------------------------------------------------------------------------
| Username
|--------------------------------------------------------------------------
|
| Username to use to connect authenticate to LDAP, for example:
| cn=read-only-admin,dc=example,dc=com
|
*/
'username' => "",
/*
|--------------------------------------------------------------------------
| Password
|--------------------------------------------------------------------------
|
| Password to use when authenticating to LDAP.
|
*/
'password' => "",
/*
|--------------------------------------------------------------------------
| Basedn
|--------------------------------------------------------------------------
|
| The base where the search for users will be executed, for example:
| dc=example,dc=com
|
*/
'basedn' => "",
/*
|--------------------------------------------------------------------------
| Filter
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query. This probably does not have to be
| changed.
|
*/
'filter' => "&(cn=*)",
/*
|--------------------------------------------------------------------------
| LDAP field names that will be retrieved to create a user.
|
| Using the username as an example:
| If I set 'result.username' => 'my-org-username', the code will connect to
| LDAP as follows (where $results[$i] represents a row in the LDAP query:
| $username-to-insert-in-snipe-it = $results[$i]["my-org-username"][0]
|
| Note: all these fields are required.
|--------------------------------------------------------------------------
|
| The search filter for the LDAP query.
|
*/
'result.username' => "",
'result.last.name' => "",
'result.first.name' => "",
/*
| These fields are optional as not all LDAP directories will have it. If yours
| does not have them, just leave these blank and the extra check will
| be omitted.
*/
'result.active.flag' => "",
'result.emp.num' => "",
'result.email' => "",
/*
|--------------------------------------------------------------------------
| LDAP filter query for authentication
|--------------------------------------------------------------------------
|
| The LDAP query that we want to execute when authenticating a user. This
| should not have to be changed.
|
*/
'authentication.filter.query' => "uid=",
/*
|--------------------------------------------------------------------------
| LDAP Version
|--------------------------------------------------------------------------
|
| Version of LDAP you are using.
|
*/
'version' => 3,
);
+124
View File
@@ -0,0 +1,124 @@
<?php
return array(
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "mail", "sendmail"
|
*/
'driver' => 'smtp',
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Postmark mail service, which will provide reliable delivery.
|
*/
'host' => 'smtp.mandrillapp.com',
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to delivery e-mails to
| users of your application. Like the host we have set this value to
| stay compatible with the Postmark e-mail application by default.
|
*/
'port' => 587,
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
'from' => array('address' => null, 'name' => null),
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption' => 'tls',
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username' => null,
/*
|--------------------------------------------------------------------------
| SMTP Server Password
|--------------------------------------------------------------------------
|
| Here you may set the password required by your SMTP server to send out
| messages from your application. This will be given to the server on
| connection so that the application will be able to send messages.
|
*/
'password' => null,
/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/
'sendmail' => '/usr/sbin/sendmail -bs',
/*
|--------------------------------------------------------------------------
| Mail "Pretend"
|--------------------------------------------------------------------------
|
| When this option is enabled, e-mail will not actually be sent over the
| web and will instead be written to your application's logs files so
| you may inspect the message. This is great for local development.
|
*/
'pretend' => true,
);
+5
View File
@@ -0,0 +1,5 @@
<?php
return array (
'app_version' => 'v2.1.0',
'hash_version' => 'v2.1.0-47-g39f40a3',
);
+2
View File
@@ -14,6 +14,8 @@ class AdminController extends AuthorizedController
// Apply the admin auth filter
//$this->beforeFilter('admin-auth', array('except' => $this->whitelist));
// CSRF Protection
$this->beforeFilter('csrf', array('on' => 'post'));
}
+204 -91
View File
@@ -18,6 +18,122 @@ class AuthController extends BaseController
return View::make('frontend.auth.signin');
}
/**
* Authenticates a user to LDAP
*
* @param $username
* @param $password
* @param bool|false $returnUser
* @return bool true if the username and/or password provided are valid
* false if the username and/or password provided are invalid
* array of ldap_attributes if $returnUser is true
*/
function ldap($username, $password, $returnUser = false) {
$ldaphost = Setting::getSettings()->ldap_server;
$ldaprdn = Setting::getSettings()->ldap_uname;
$ldappass = Crypt::decrypt(Setting::getSettings()->ldap_pword);
$baseDn = Setting::getSettings()->ldap_basedn;
$filterQuery = Setting::getSettings()->ldap_auth_filter_query . $username;
$ldapversion = Setting::getSettings()->ldap_version;
$ldap_server_cert_ignore = Setting::getSettings()->ldap_server_cert_ignore;
// If we are ignoring the SSL cert we need to setup the environment variable
// before we create the connection
if($ldap_server_cert_ignore) {
putenv('LDAPTLS_REQCERT=never');
}
// Connecting to LDAP
$connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
// Needed for AD
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION,$ldapversion);
try {
if ($connection) {
// binding to ldap server
$ldapbind = ldap_bind($connection, $ldaprdn, $ldappass);
if ( ($results = @ldap_search($connection, $baseDn, $filterQuery)) != false ) {
$entry = ldap_first_entry($connection, $results);
if ( ($userDn = @ldap_get_dn($connection, $entry)) != false ) {
if( ($isBound = ldap_bind($connection, $userDn, $password)) == "true") {
return $returnUser ?
array_change_key_case(ldap_get_attributes($connection, $entry),CASE_LOWER)
: true;
}
}
}
}
} catch (Exception $e) {
LOG::error($e->getMessage());
}
ldap_close($connection);
return false;
}
/**
* Create user from LDAP attributes
*
* @param $ldapatttibutes
* @return array|bool
*/
function createUserFromLdap($ldapatttibutes){
//Get LDAP attribute config
$ldap_result_username = Setting::getSettings()->ldap_username_field;
$ldap_result_emp_num = Setting::getSettings()->ldap_emp_num;
$ldap_result_last_name = Setting::getSettings()->ldap_lname_field;
$ldap_result_first_name = Setting::getSettings()->ldap_fname_field;
$ldap_result_email = Setting::getSettings()->ldap_email;
//Get LDAP user data
$item = array();
$item["username"] = isset( $ldapatttibutes[$ldap_result_username][0] ) ? $ldapatttibutes[$ldap_result_username][0] : "";
$item["employee_number"] = isset( $ldapatttibutes[$ldap_result_emp_num][0] ) ? $ldapatttibutes[$ldap_result_emp_num][0] : "";
$item["lastname"] = isset( $ldapatttibutes[$ldap_result_last_name][0] ) ? $ldapatttibutes[$ldap_result_last_name][0] : "";
$item["firstname"] = isset( $ldapatttibutes[$ldap_result_first_name][0] ) ? $ldapatttibutes[$ldap_result_first_name][0] : "";
$item["email"] = isset( $ldapatttibutes[$ldap_result_email][0] ) ? $ldapatttibutes[$ldap_result_email][0] : "" ;
//create user
if(!empty($item["username"])) {
//$pass = substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, 10);
$newuser = array(
'first_name' => $item["firstname"],
'last_name' => $item["lastname"],
'username' => $item["username"],
'email' => $item["email"],
'employee_num' => $item["employee_number"],
'password' => Input::get("password"), //$pass,
'activated' => 1,
'location_id' => null,
'permissions' => ["user" => 1], //'{"user":1}',
'notes' => 'Imported from LDAP'
);
Sentry::createUser($newuser);
/*DB::table('users')->insert($newuser);
$updateuser = Sentry::findUserByLogin($item["username"]);
$updateuser->setHasher(new Cartalyst\Sentry\Hashing\BcryptHasher);
// Update the user details
$updateuser->password = Input::get('password');
// Update the user
$updateuser->save(); */
} else {
throw new Cartalyst\Sentry\Users\UserNotFoundException();
}
//$item["note"] = "<strong>created</strong>";
$credentials = array(
'username' => $item["username"],
'password' => Input::get("password")//$pass,
);
return $credentials;
}
/**
* Account sign in form processing.
*
@@ -27,7 +143,7 @@ class AuthController extends BaseController
{
// Declare the rules for the form validation
$rules = array(
'email' => 'required|email',
'username' => 'required',
'password' => 'required',
);
@@ -39,10 +155,55 @@ class AuthController extends BaseController
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
try {
// Should we even check for LDAP users?
if (Setting::getSettings()->ldap_enabled=='1') {
LOG::debug("LDAP is enabled.");
// Check if the user exists in the database
$user = User::where('username','=',Input::get('username'))->whereNull('deleted_at')->first();
LOG::debug("Sentry lookup complete");
// The user does not exist in the database. Try to get them from LDAP.
// If user does not exist and authenticates sucessfully with LDAP we
// will create it on the fly and sign in with default permissions
if(!$user){
LOG::debug("Local user ".Input::get('username')." does not exist");
if($userattr = $this->ldap(Input::get('username'), Input::get('password'),true) ){
LOG::debug("Creating local user from authenticated LDAP user.");
$credentials = $this->createUserFromLdap($userattr);
} else {
LOG::debug("User did not authenticate correctly against LDAP. No local user was created.");
}
// If the user exists and they were imported from LDAP already
} else {
LOG::debug("Local user ".Input::get('username')." exists in database. Authenticating existing user against LDAP.");
if ($this->ldap(Input::get('username'), Input::get('password')) ) {
LOG::debug("Valid LDAP login. Updating the local data.");
$sentryuser=Sentry::findUserById($user->id); //need the Sentry object, not the Eloquent object, to access critical password hashing functions
$sentryuser->password = Input::get('password');
$sentryuser->save();
} else {
LOG::debug("User did not authenticate correctly against LDAP. Local user was not updated.");
}// End LDAP auth
} // End if(!user)
// NO LDAP enabled - just try to login the user normally
}
LOG::debug("Authenticating user against database.");
// Try to log the user in
Sentry::authenticate(Input::only('email', 'password'), Input::get('remember-me', 0));
if (!Sentry::authenticate(Input::only('username', 'password'), Input::get('remember-me', 0))) {
LOG::debug("Local authentication failed.");
throw new Cartalyst\Sentry\Users\UserNotFoundException();
}
// Get the page we were before
$redirect = Session::get('loginRedirect', 'account');
@@ -52,92 +213,32 @@ class AuthController extends BaseController
// Redirect to the users page
return Redirect::to($redirect)->with('success', Lang::get('auth/message.signin.success'));
} catch (Cartalyst\Sentry\Users\UserNotFoundException $e) {
$this->messageBag->add('email', Lang::get('auth/message.account_not_found'));
LOG::debug("Local authentication: User ".Input::get('username')." not found");
$this->messageBag->add('username', Lang::get('auth/message.account_not_found'));
} catch (Cartalyst\Sentry\Users\WrongPasswordException $e) {
LOG::debug("Local authentication: Password for ".Input::get('username')." is incorrect.");
$this->messageBag->add('username', Lang::get('auth/message.account_not_found'));
} catch (Cartalyst\Sentry\Users\UserNotActivatedException $e) {
$this->messageBag->add('email', Lang::get('auth/message.account_not_activated'));
LOG::debug("Local authentication: User not activated");
$this->messageBag->add('username', Lang::get('auth/message.account_not_activated'));
} catch (Cartalyst\Sentry\Throttling\UserSuspendedException $e) {
$this->messageBag->add('email', Lang::get('auth/message.account_suspended'));
LOG::debug("Local authentication: Account suspended");
$this->messageBag->add('username', Lang::get('auth/message.account_suspended'));
} catch (Cartalyst\Sentry\Throttling\UserBannedException $e) {
$this->messageBag->add('email', Lang::get('auth/message.account_banned'));
LOG::debug("Local authentication: Account banned.");
$this->messageBag->add('username', Lang::get('auth/message.account_banned'));
}
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($this->messageBag);
}
/**
* Account sign up.
*
* @return View
*/
public function getSignup()
{
// Is the user logged in?
if (Sentry::check()) {
return Redirect::route('account');
}
// Show the page
return View::make('frontend.auth.signup');
}
/**
* Account sign up form processing.
*
* @return Redirect
*/
public function postSignup()
{
// Declare the rules for the form validation
$rules = array(
'first_name' => 'required|min:2',
'last_name' => 'required|min:2',
'email' => 'required|email|unique:users',
'email_confirm' => 'required|email|same:email',
'password' => 'required|between:10,32',
'password_confirm' => 'required|same:password',
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails()) {
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
try {
// Register the user
$user = Sentry::register(array(
'first_name' => Input::get('first_name'),
'last_name' => Input::get('last_name'),
'email' => Input::get('email'),
'password' => Input::get('password'),
));
// Data to be used on the email view
$data = array(
'user' => $user,
'activationUrl' => URL::route('activate', $user->getActivationCode()),
);
// Send the activation code through email
Mail::send('emails.register-activate', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Welcome ' . $user->first_name);
});
// Redirect to the register page
return Redirect::back()->with('success', Lang::get('auth/message.signup.success'));
} catch (Cartalyst\Sentry\Users\UserExistsException $e) {
$this->messageBag->add('email', Lang::get('auth/message.account_already_exists'));
}
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($this->messageBag);
}
/**
* User account activation page.
@@ -192,7 +293,7 @@ class AuthController extends BaseController
{
// Declare the rules for the validator
$rules = array(
'email' => 'required|email',
'username' => 'required',
);
// Create a new validator instance from our dynamic rules
@@ -206,22 +307,33 @@ class AuthController extends BaseController
try {
// Get the user password recovery code
$user = Sentry::getUserProvider()->findByLogin(Input::get('email'));
if (!$user = Sentry::getUserProvider()->findByLogin(Input::get('username'))) {
$user = User::where('email','=',Input::get('username'));
}
// Data to be used on the email view
$reset = $user->getResetPasswordCode();
// Data to be used on the username view
$data = array(
'user' => $user,
'forgotPasswordUrl' => URL::route('forgot-password-confirm', $user->getResetPasswordCode()),
'forgotPasswordUrl' => URL::route('forgot-password-confirm', $reset),
);
// Send the activation code through email
Mail::send('emails.forgot-password', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Account Password Recovery');
});
$user->reset_password_code = $reset;
$user->save();
if ($user->email) {
// Send the activation code through username
Mail::send('emails.forgot-password', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Account Password Recovery');
});
}
} catch (Cartalyst\Sentry\Users\UserNotFoundException $e) {
// Even though the email was not found, we will pretend
// we have sent the password reset code through email,
// Even though the username was not found, we will pretend
// we have sent the password reset code through username,
// this is a security measure against hackers.
}
@@ -237,12 +349,13 @@ class AuthController extends BaseController
*/
public function getForgotPasswordConfirm($passwordResetCode = null)
{
try {
// Find the user using the password reset code
$user = Sentry::getUserProvider()->findByResetPasswordCode($passwordResetCode);
} catch(Cartalyst\Sentry\Users\UserNotFoundException $e) {
// Redirect to the forgot password page
return Redirect::route('forgot-password')->with('error', Lang::get('auth/message.account_not_found'));
//return Redirect::route('forgot-password')->with('error', Lang::get('auth/message.account_not_found'));
}
// Show the page
@@ -6,6 +6,8 @@ use Redirect;
use Sentry;
use Validator;
use View;
use Config;
use Lang;
class ChangeEmailController extends AuthorizedController
{
@@ -30,40 +32,47 @@ class ChangeEmailController extends AuthorizedController
*/
public function postIndex()
{
// Declare the rules for the form validation
$rules = array(
'current_password' => 'required|between:3,32',
'email' => 'required|email|unique:users,email,'.Sentry::getUser()->email.',email',
'email_confirm' => 'required|same:email',
);
if (Config::get('app.lock_passwords')) {
return Redirect::route('change-password')->with('error', Lang::get('admin/users/table.lock_passwords'));
} else {
// Declare the rules for the form validation
$rules = array(
'current_password' => 'required|between:3,32',
'email' => 'required|email|unique:users,email,'.Sentry::getUser()->email.',email',
'email_confirm' => 'required|same:email',
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails()) {
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
// Grab the user
$user = Sentry::getUser();
// Check the user current password
if ( ! $user->checkPassword(Input::get('current_password'))) {
// Set the error message
$this->messageBag->add('current_password', 'Your current password is incorrect');
// Redirect to the change email page
return Redirect::route('change-email')->withErrors($this->messageBag);
}
// Update the user email
$user->email = Input::get('email');
$user->save();
// Redirect to the settings page
return Redirect::route('change-email')->with('success', 'Email successfully updated');
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails()) {
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
// Grab the user
$user = Sentry::getUser();
// Check the user current password
if ( ! $user->checkPassword(Input::get('current_password'))) {
// Set the error message
$this->messageBag->add('current_password', 'Your current password is incorrect');
// Redirect to the change email page
return Redirect::route('change-email')->withErrors($this->messageBag);
}
// Update the user email
$user->email = Input::get('email');
$user->save();
// Redirect to the settings page
return Redirect::route('change-email')->with('success', 'Email successfully updated');
}
}
}
@@ -6,6 +6,8 @@ use Redirect;
use Sentry;
use Validator;
use View;
use Config;
use Lang;
class ChangePasswordController extends AuthorizedController
{
@@ -30,13 +32,19 @@ class ChangePasswordController extends AuthorizedController
*/
protected function postIndex()
{
// Declare the rules for the form validation
if (Config::get('app.lock_passwords')) {
return Redirect::route('change-password')->with('error', Lang::get('admin/users/table.lock_passwords'));
} else {
// Declare the rules for the form validation
$rules = array(
'old_password' => 'required|min:6',
'password' => 'required|min:6',
'password_confirm' => 'required|same:password',
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
@@ -61,6 +69,7 @@ class ChangePasswordController extends AuthorizedController
// Update the user password
$user->password = Input::get('password');
$user->save();
}
// Redirect to the change-password page
return Redirect::route('change-password')->with('success', 'Password successfully updated');
@@ -20,12 +20,7 @@ class ProfileController extends AuthorizedController
{
// Get the user information
$user = Sentry::getUser();
// Show the page
$location_list = array('' => 'Select One') + Location::lists('name', 'id');
// Show the page
$location_list = locationsList();
return View::make('frontend/account/profile', compact('user'))->with('location_list',$location_list);
}
@@ -63,7 +58,7 @@ class ProfileController extends AuthorizedController
$user->website = Input::get('website');
$user->location_id = Input::get('location_id');
$user->gravatar = Input::get('gravatar');
if (Input::file('avatar')) {
$image = Input::file('avatar');
$file_name = $user->first_name."-".$user->last_name.".".$image->getClientOriginalExtension();
@@ -75,7 +70,7 @@ class ProfileController extends AuthorizedController
if (Input::get('avatar_delete') == 1 && Input::file('avatar') == "") {
$user->avatar = NULL;
}
$user->save();
// Redirect to the settings page
@@ -7,6 +7,18 @@ use Sentry;
use Validator;
use Location;
use View;
use Asset;
use Actionlog;
use Company;
use Lang;
use Accessory;
use DB;
use Slack;
use Setting;
use Config;
use Mail;
use User;
class ViewAssetsController extends AuthorizedController
{
@@ -17,20 +29,236 @@ class ViewAssetsController extends AuthorizedController
*/
public function getIndex()
{
$user = Sentry::getUser();
$user = User::with('assets', 'assets.model', 'consumables', 'accessories', 'licenses', 'userloc')->withTrashed()->find(Sentry::getUser()->id);
$userlog = $user->userlog->load('assetlog', 'consumablelog', 'assetlog.model', 'licenselog', 'accessorylog', 'userlog', 'adminlog');
if (isset($user->id)) {
return View::make('frontend/account/view-assets', compact('user'));
} else {
// Prepare the error message
$error = Lang::get('admin/users/message.user_not_found', compact('id' ));
// Redirect to the user management page
return Redirect::route('users')->with('error', $error);
}
if (isset($user->id)) {
return View::make('frontend/account/view-assets', compact('user', 'userlog'));
} else {
// Prepare the error message
$error = Lang::get('admin/users/message.user_not_found', compact('id' ));
// Redirect to the user management page
return Redirect::route('users')->with('error', $error);
}
}
public function getRequestableIndex() {
$assets = Asset::with('model','defaultLoc')->Hardware()->RequestableAssets()->get();
return View::make('frontend/account/requestable-assets', compact('user','assets'));
}
public function getRequestAsset($assetId = null) {
$user = Sentry::getUser();
// Check if the asset exists and is requestable
if (is_null($asset = Asset::RequestableAssets()->find($assetId))) {
// Redirect to the asset management page
return Redirect::route('requestable-assets')->with('error', Lang::get('admin/hardware/message.does_not_exist_or_not_requestable'));
}
else if (!Company::isCurrentUserHasAccess($asset)) {
return Redirect::route('requestable-assets')->with('error', Lang::get('general.insufficient_permissions'));
}
else {
$logaction = new Actionlog();
$logaction->asset_id = $data['asset_id'] = $asset->id;
$logaction->asset_type = $data['asset_type'] = 'hardware';
$logaction->created_at = $data['requested_date'] = date("Y-m-d h:i:s");
if ($user->location_id) {
$logaction->location_id = $user->location_id;
}
$logaction->user_id = $data['user_id'] = Sentry::getUser()->id;
$log = $logaction->logaction('requested');
$data['requested_by'] = $user->fullName();
$data['asset_name'] = $asset->showAssetName();
$settings = Setting::getSettings();
if (($settings->alert_email!='') && ($settings->alerts_enabled=='1') && (!Config::get('app.lock_passwords'))) {
Mail::send('emails.asset-requested', $data, function ($m) use ($user, $settings) {
$m->to($settings->alert_email, $settings->site_name);
$m->subject('Asset Requested');
});
}
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'REQUESTED:',
'value' => strtoupper($logaction->asset_type).' asset <'.Config::get('app.url').'/hardware/'.$asset->id.'/view'.'|'.$asset->showAssetName().'> requested by <'.Config::get('app.url').'/hardware/'.$asset->id.'/view'.'|'.Sentry::getUser()->fullName().'>.'
]
]
])->send('Asset Requested');
} catch (Exception $e) {
}
}
return Redirect::route('requestable-assets')->with('success')->with('success', Lang::get('admin/hardware/message.requests.success'));
}
}
// Get the acceptance screen
public function getAcceptAsset($logID = null) {
if (is_null($findlog = Actionlog::find($logID))) {
// Redirect to the asset management page
return Redirect::to('account')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
}
$user = Sentry::getUser();
if ($user->id != $findlog->checkedout_to) {
return Redirect::to('account/view-assets')->with('error', Lang::get('admin/users/message.error.incorrect_user_accepted'));
}
// Asset
if (($findlog->asset_id!='') && ($findlog->asset_type=='hardware')) {
$item = Asset::find($findlog->asset_id);
// software
} elseif (($findlog->asset_id!='') && ($findlog->asset_type=='software')) {
$item = License::find($findlog->asset_id);
// accessories
} elseif ($findlog->accessory_id!='') {
$item = Accessory::find($findlog->accessory_id);
}
// Check if the asset exists
if (is_null($item)) {
// Redirect to the asset management page
return Redirect::to('account')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($item)) {
return Redirect::route('requestable-assets')->with('error', Lang::get('general.insufficient_permissions'));
}
else {
return View::make('frontend/account/accept-asset', compact('item'))->with('findlog', $findlog);
}
}
// Save the acceptance
public function postAcceptAsset($logID = null) {
// Check if the asset exists
if (is_null($findlog = Actionlog::find($logID))) {
// Redirect to the asset management page
return Redirect::to('account/view-assets')->with('error', Lang::get('admin/hardware/message.does_not_exist'));
}
// NOTE: make sure the global scope is applied
$is_unauthorized = is_null(Actionlog::where('id', '=', $logID)->first());
if ($is_unauthorized) {
return Redirect::route('requestable-assets')->with('error', Lang::get('general.insufficient_permissions'));
}
if ($findlog->accepted_id!='') {
// Redirect to the asset management page
return Redirect::to('account/view-assets')->with('error', Lang::get('admin/users/message.error.asset_already_accepted'));
}
if (!Input::has('asset_acceptance')) {
return Redirect::to('account/view-assets')->with('error', Lang::get('admin/users/message.error.accept_or_decline'));
}
$user = Sentry::getUser();
if ($user->id != $findlog->checkedout_to) {
return Redirect::to('account/view-assets')->with('error', Lang::get('admin/users/message.error.incorrect_user_accepted'));
}
$logaction = new Actionlog();
if (Input::get('asset_acceptance')=='accepted') {
$logaction_msg = 'accepted';
$accepted="accepted";
$return_msg = Lang::get('admin/users/message.accepted');
} else {
$logaction_msg = 'declined';
$accepted="rejected";
$return_msg = Lang::get('admin/users/message.declined');
}
// Asset
if (($findlog->asset_id!='') && ($findlog->asset_type=='hardware')) {
$logaction->asset_id = $findlog->asset_id;
$logaction->accessory_id = NULL;
$logaction->asset_type = 'hardware';
if (Input::get('asset_acceptance')!='accepted') {
DB::table('assets')
->where('id', $findlog->asset_id)
->update(array('assigned_to' => null));
}
// software
} elseif (($findlog->asset_id!='') && ($findlog->asset_type=='software')) {
$logaction->asset_id = $findlog->asset_id;
$logaction->accessory_id = NULL;
$logaction->asset_type = 'software';
// accessories
} elseif ($findlog->accessory_id!='') {
$logaction->asset_id = NULL;
$logaction->accessory_id = $findlog->accessory_id;
$logaction->asset_type = 'accessory';
}
$logaction->checkedout_to = $findlog->checkedout_to;
$logaction->note = e(Input::get('note'));
$logaction->user_id = $user->id;
$logaction->accepted_at = date("Y-m-d h:i:s");
$log = $logaction->logaction($logaction_msg);
$update_checkout = DB::table('asset_logs')
->where('id',$findlog->id)
->update(array('accepted_id' => $logaction->id));
$affected_asset=$logaction->assetlog;
$affected_asset->accepted=$accepted;
$affected_asset->save();
if ($update_checkout ) {
return Redirect::to('account/view-assets')->with('success', $return_msg);
} else {
return Redirect::to('account/view-assets')->with('error', 'Something went wrong ');
}
}
}
+643
View File
@@ -0,0 +1,643 @@
<?php namespace Controllers\Admin;
use AdminController;
use Input;
use Lang;
use Accessory;
use Redirect;
use Setting;
use DB;
use Sentry;
use Str;
use Validator;
use View;
use User;
use Actionlog;
use Company;
use Mail;
use Datatable;
use Slack;
use Config;
class AccessoriesController extends AdminController
{
/**
* Show a list of all the accessories.
*
* @return View
*/
public function getIndex()
{
return View::make('backend/accessories/index');
}
/**
* Accessory create.
*
* @return View
*/
public function getCreate()
{
// Show the page
$category_list = array('' => '') + DB::table('categories')->where('category_type','=','accessory')->whereNull('deleted_at')->orderBy('name','ASC')->lists('name', 'id');
$company_list = Company::getSelectList();
$location_list = locationsList();
return View::make('backend/accessories/edit')
->with('accessory', new Accessory)
->with('category_list', $category_list)
->with('company_list', $company_list)
->with('location_list', $location_list);
}
/**
* Accessory create form processing.
*
* @return Redirect
*/
public function postCreate()
{
// create a new model instance
$accessory = new Accessory();
$validator = Validator::make(Input::all(), $accessory->rules);
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
else{
// Update the accessory data
$accessory->name = e(Input::get('name'));
$accessory->category_id = e(Input::get('category_id'));
$accessory->location_id = e(Input::get('location_id'));
$accessory->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$accessory->order_number = e(Input::get('order_number'));
if (e(Input::get('purchase_date')) == '') {
$accessory->purchase_date = NULL;
} else {
$accessory->purchase_date = e(Input::get('purchase_date'));
}
if (e(Input::get('purchase_cost')) == '0.00') {
$accessory->purchase_cost = NULL;
} else {
$accessory->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
}
$accessory->qty = e(Input::get('qty'));
$accessory->user_id = Sentry::getId();
// Was the accessory created?
if($accessory->save()) {
// Redirect to the new accessory page
return Redirect::to("admin/accessories")->with('success', Lang::get('admin/accessories/message.create.success'));
}
}
// Redirect to the accessory create page
return Redirect::to('admin/accessories/create')->with('error', Lang::get('admin/accessories/message.create.error'));
}
/**
* Accessory update.
*
* @param int $accessoryId
* @return View
*/
public function getEdit($accessoryId = null)
{
// Check if the accessory exists
if (is_null($accessory = Accessory::find($accessoryId))) {
// Redirect to the blogs management page
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
$category_list = array('' => '') + DB::table('categories')->where('category_type','=','accessory')->whereNull('deleted_at')->orderBy('name','ASC')->lists('name', 'id');
$company_list = Company::getSelectList();
$location_list = locationsList();
return View::make('backend/accessories/edit', compact('accessory'))
->with('category_list',$category_list)
->with('company_list', $company_list)
->with('location_list', $location_list);
}
/**
* Accessory update form processing page.
*
* @param int $accessoryId
* @return Redirect
*/
public function postEdit($accessoryId = null)
{
// Check if the blog post exists
if (is_null($accessory = Accessory::find($accessoryId))) {
// Redirect to the blogs management page
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
// get the POST data
$new = Input::all();
// attempt validation
$validator = Validator::make(Input::all(), $accessory->validationRules($accessoryId));
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
// Update the accessory data
$accessory->name = e(Input::get('name'));
if (e(Input::get('location_id')) == '') {
$accessory->location_id = NULL;
} else {
$accessory->location_id = e(Input::get('location_id'));
}
$accessory->category_id = e(Input::get('category_id'));
$accessory->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$accessory->order_number = e(Input::get('order_number'));
if (e(Input::get('purchase_date')) == '') {
$accessory->purchase_date = NULL;
} else {
$accessory->purchase_date = e(Input::get('purchase_date'));
}
if (e(Input::get('purchase_cost')) == '0.00') {
$accessory->purchase_cost = NULL;
} else {
$accessory->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
}
$accessory->qty = e(Input::get('qty'));
// Was the accessory created?
if($accessory->save()) {
// Redirect to the new accessory page
return Redirect::to("admin/accessories")->with('success', Lang::get('admin/accessories/message.update.success'));
}
}
// Redirect to the accessory management page
return Redirect::to("admin/accessories/$accessoryID/edit")->with('error', Lang::get('admin/accessories/message.update.error'));
}
/**
* Delete the given accessory.
*
* @param int $accessoryId
* @return Redirect
*/
public function getDelete($accessoryId)
{
// Check if the blog post exists
if (is_null($accessory = Accessory::find($accessoryId))) {
// Redirect to the blogs management page
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
if ($accessory->hasUsers() > 0) {
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.assoc_users', array('count'=> $accessory->hasUsers())));
} else {
$accessory->delete();
// Redirect to the locations management page
return Redirect::to('admin/accessories')->with('success', Lang::get('admin/accessories/message.delete.success'));
}
}
/**
* Get the accessory information to present to the accessory view page
*
* @param int $accessoryId
* @return View
**/
public function getView($accessoryID = null)
{
$accessory = Accessory::find($accessoryID);
if (isset($accessory->id)) {
if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
else {
return View::make('backend/accessories/view', compact('accessory'));
}
} else {
// Prepare the error message
$error = Lang::get('admin/accessories/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('accessories')->with('error', $error);
}
}
/**
* Check out the accessory to a person
**/
public function getCheckout($accessoryId)
{
// Check if the accessory exists
if (is_null($accessory = Accessory::find($accessoryId))) {
// Redirect to the accessory management page with error
return Redirect::to('accessories')->with('error', Lang::get('admin/accessories/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
// Get the dropdown of users and then pass it to the checkout view
$users_list = array('' => 'Select a User') + DB::table('users')->select(DB::raw('concat(last_name,", ",first_name," (",username,")") as full_name, id'))->whereNull('deleted_at')->orderBy('last_name', 'asc')->orderBy('first_name', 'asc')->lists('full_name', 'id');
return View::make('backend/accessories/checkout', compact('accessory'))->with('users_list',$users_list);
}
/**
* Check out the accessory to a person
**/
public function postCheckout($accessoryId)
{
// Check if the accessory exists
if (is_null($accessory = Accessory::find($accessoryId))) {
// Redirect to the accessory management page with error
return Redirect::to('accessories')->with('error', Lang::get('admin/accessories/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
$admin_user = Sentry::getUser();
$assigned_to = e(Input::get('assigned_to'));
// Declare the rules for the form validation
$rules = array(
'assigned_to' => 'required|min:1'
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails()) {
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
// Check if the user exists
if (is_null($user = User::find($assigned_to))) {
// Redirect to the accessory management page with error
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.user_does_not_exist'));
}
// Update the accessory data
$accessory->assigned_to = e(Input::get('assigned_to'));
$accessory->users()->attach($accessory->id, array(
'accessory_id' => $accessory->id,
'assigned_to' => e(Input::get('assigned_to'))));
$logaction = new Actionlog();
$logaction->accessory_id = $accessory->id;
$logaction->checkedout_to = $accessory->assigned_to;
$logaction->asset_type = 'accessory';
$logaction->location_id = $user->location_id;
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('note'));
$settings = Setting::getSettings();
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'Checked Out:',
'value' => strtoupper($logaction->asset_type).' <'.Config::get('app.url').'/admin/accessories/'.$accessory->id.'/view'.'|'.$accessory->name.'> checked out to <'.Config::get('app.url').'/admin/users/'.$user->id.'/view|'.$user->fullName().'> by <'.Config::get('app.url').'/admin/users/'.$admin_user->id.'/view'.'|'.$admin_user->fullName().'>.'
],
[
'title' => 'Note:',
'value' => e($logaction->note)
],
]
])->send('Accessory Checked Out');
} catch (Exception $e) {
}
}
$log = $logaction->logaction('checkout');
$accessory_user = DB::table('accessories_users')->where('assigned_to','=',$accessory->assigned_to)->where('accessory_id','=',$accessory->id)->first();
$data['log_id'] = $logaction->id;
$data['eula'] = $accessory->getEula();
$data['first_name'] = $user->first_name;
$data['item_name'] = $accessory->name;
$data['checkout_date'] = $logaction->created_at;
$data['item_tag'] = '';
$data['expected_checkin'] = '';
$data['note'] = $logaction->note;
$data['require_acceptance'] = $accessory->requireAcceptance();
if (($accessory->requireAcceptance()=='1') || ($accessory->getEula())) {
Mail::send('emails.accept-asset', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Confirm accessory delivery');
});
}
// Redirect to the new accessory page
return Redirect::to("admin/accessories")->with('success', Lang::get('admin/accessories/message.checkout.success'));
}
/**
* Check the accessory back into inventory
*
* @param int $accessoryId
* @return View
**/
public function getCheckin($accessoryUserId = null, $backto = null)
{
// Check if the accessory exists
if (is_null($accessory_user = DB::table('accessories_users')->find($accessoryUserId))) {
// Redirect to the accessory management page with error
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.not_found'));
}
$accessory = Accessory::find($accessory_user->accessory_id);
if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
else {
return View::make('backend/accessories/checkin', compact('accessory'))->with('backto',$backto);
}
}
/**
* Check in the item so that it can be checked out again to someone else
*
* @param int $accessoryId
* @return View
**/
public function postCheckin($accessoryUserId = null, $backto = null)
{
// Check if the accessory exists
if (is_null($accessory_user = DB::table('accessories_users')->find($accessoryUserId))) {
// Redirect to the accessory management page with error
return Redirect::to('admin/accessories')->with('error', Lang::get('admin/accessories/message.not_found'));
}
$accessory = Accessory::find($accessory_user->accessory_id);
if (!Company::isCurrentUserHasAccess($accessory)) {
return Redirect::to('admin/accessories')->with('error', Lang::get('general.insufficient_permissions'));
}
$logaction = new Actionlog();
$logaction->checkedout_to = $accessory_user->assigned_to;
$return_to = $accessory_user->assigned_to;
$admin_user = Sentry::getUser();
// Was the accessory updated?
if(DB::table('accessories_users')->where('id', '=', $accessory_user->id)->delete()) {
$logaction->accessory_id = $accessory->id;
$logaction->location_id = NULL;
$logaction->asset_type = 'accessory';
$logaction->user_id = $admin_user->id;
$logaction->note = e(Input::get('note'));
$settings = Setting::getSettings();
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'Checked In:',
'value' => strtoupper($logaction->asset_type).' <'.Config::get('app.url').'/admin/accessories/'.$accessory->id.'/view'.'|'.$accessory->name.'> checked in by <'.Config::get('app.url').'/admin/users/'.$admin_user->id.'/view'.'|'.$admin_user->fullName().'>.'
],
[
'title' => 'Note:',
'value' => e($logaction->note)
],
]
])->send('Accessory Checked In');
} catch (Exception $e) {
}
}
$log = $logaction->logaction('checkin from');
if(!is_null($accessory_user->assigned_to)) {
$user = User::find($accessory_user->assigned_to);
}
$data['log_id'] = $logaction->id;
$data['first_name'] = $user->first_name;
$data['item_name'] = $accessory->name;
$data['checkin_date'] = $logaction->created_at;
$data['item_tag'] = '';
$data['note'] = $logaction->note;
if (($accessory->checkin_email()=='1')) {
Mail::send('emails.checkin-asset', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Confirm Accessory Checkin');
});
}
if ($backto=='user') {
return Redirect::to("admin/users/".$return_to.'/view')->with('success', Lang::get('admin/accessories/message.checkin.success'));
} else {
return Redirect::to("admin/accessories/".$accessory->id."/view")->with('success', Lang::get('admin/accessories/message.checkin.success'));
}
}
// Redirect to the accessory management page with error
return Redirect::to("admin/accessories")->with('error', Lang::get('admin/accessories/message.checkin.error'));
}
public function getDatatable()
{
$accessories = Accessory::select('accessories.*')->with('category', 'company')
->whereNull('accessories.deleted_at');
if (Input::has('search')) {
$accessories = $accessories->TextSearch(Input::get('search'));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['name','order_number','purchase_date','purchase_cost','companyName','category'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
switch ($sort)
{
case 'category':
$accessories = $accessories->OrderCategory($order);
break;
case 'companyName':
$accessories = $accessories->OrderCompany($order);
break;
default:
$accessories = $accessories->orderBy($sort, $order);
break;
}
$accessCount = $accessories->count();
$accessories = $accessories->skip($offset)->take($limit)->get();
$rows = array();
foreach ($accessories as $accessory) {
$actions = '<nobr><a href="'.route('checkout/accessory', $accessory->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($accessory->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/accessory', $accessory->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/accessory', $accessory->id).'" data-content="'.Lang::get('admin/accessories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($accessory->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></nobr>';
$company = $accessory->company;
$rows[] = array(
'name' => link_to('admin/accessories/'.$accessory->id.'/view', $accessory->name),
'category' => link_to('admin/settings/categories/'.$accessory->category->id.'/view', $accessory->category->name),
'qty' => $accessory->qty,
'order_number' => $accessory->order_number,
'location' => ($accessory->location) ? $accessory->location->name: '',
'purchase_date' => $accessory->purchase_date,
'purchase_cost' => $accessory->purchase_cost,
'numRemaining' => $accessory->numRemaining(),
'actions' => $actions,
'companyName' => is_null($company) ? '' : e($company->name)
);
}
$data = array('total'=>$accessCount, 'rows'=>$rows);
return $data;
}
public function getDataView($accessoryID)
{
$accessory = Accessory::find($accessoryID);
if (!Company::isCurrentUserHasAccess($accessory)) {
return ['total' => 0, 'rows' => []];
}
$accessory_users = $accessory->users;
$count = $accessory_users->count();
$rows = array();
foreach ($accessory_users as $user) {
$actions = '<a href="'.route('checkin/accessory', $user->pivot->id).'" class="btn-flat info">Checkin</a>';
$rows[] = array(
'name' => link_to('/admin/users/'.$user->id.'/view', $user->fullName()),
'actions' => $actions
);
}
$data = array('total'=>$count, 'rows'=>$rows);
return $data;
}
}
@@ -0,0 +1,504 @@
<?php
namespace Controllers\Admin;
use AdminController;
use AssetMaintenance;
use Carbon\Carbon;
use Company;
use DB;
use Input;
use Lang;
use Log;
use Mail;
use Redirect;
use Response;
use Sentry;
use Slack;
use Str;
use Supplier;
use TCPDF;
use Validator;
use View;
use Setting;
use Asset;
class AssetMaintenancesController extends AdminController
{
private static function getInsufficientPermissionsRedirect()
{
return Redirect::to( 'admin/asset_maintenances')
->with('error', Lang::get( 'general.insufficient_permissions' ) );
}
/**
* getIndex
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getIndex()
{
return View::make( 'backend/asset_maintenances/index' );
}
/**
* getDatatable
* Gets the datatable for the index page
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getDatatable()
{
$maintenances = AssetMaintenance::with('asset','supplier','asset.company')
->whereNull('deleted_at');
if (Input::has('search')) {
$maintenances = $maintenances->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','title','asset_maintenance_time','asset_maintenance_type','cost','start_date','completion_date','notes'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$maintenances->orderBy($sort, $order);
$maintenancesCount = $maintenances->count();
$maintenances = $maintenances->skip($offset)->take($limit)->get();
$rows = array();
$settings = Setting::getSettings();
foreach($maintenances as $maintenance) {
$actions = '<nobr><a href="'.route('update/asset_maintenance', $maintenance->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/asset_maintenance', $maintenance->id).'" data-content="'.Lang::get('admin/asset_maintenances/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($maintenance->title).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></nobr>';
if (($maintenance->cost) && ($maintenance->asset->assetloc) && ($maintenance->asset->assetloc->currency!='')) {
$maintenance_cost = $maintenance->asset->assetloc->currency.$maintenance->cost;
} else {
$maintenance_cost = $settings->default_currency.$maintenance->cost;
}
$company = $maintenance->asset->company;
$rows[] = array(
'id' => $maintenance->id,
'asset_name' => link_to('/hardware/'.$maintenance->asset->id.'/view', $maintenance->asset->showAssetName()) ,
'title' => $maintenance->title,
'notes' => $maintenance->notes,
'supplier' => $maintenance->supplier->name,
'cost' => $maintenance_cost,
'asset_maintenance_type' => e($maintenance->asset_maintenance_type),
'start_date' => $maintenance->start_date,
'asset_maintenance_time' => $maintenance->asset_maintenance_time,
'completion_date' => $maintenance->completion_date,
'actions' => $actions,
'companyName' => is_null($company) ? '' : $company->name
);
}
$data = array('total' => $maintenancesCount, 'rows' => $rows);
return $data;
}
/**
* getCreate
*
* @param null $assetId
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getCreate( $assetId = null )
{
// Prepare Asset Maintenance Type List
$assetMaintenanceType = [
'' => 'Select an asset maintenance type',
] + AssetMaintenance::getImprovementOptions();
// Mark the selected asset, if it came in
$selectedAsset = $assetId;
// Get the possible assets using a left join to get a list of assets and some other helpful info
$asset = Company::scopeCompanyables( DB::table( 'assets' ), 'assets.company_id' )
->leftJoin( 'users', 'users.id', '=', 'assets.assigned_to' )
->leftJoin( 'models', 'assets.model_id', '=', 'models.id' )
->select( 'assets.id', 'assets.name', 'first_name', 'last_name', 'asset_tag',
DB::raw( 'concat(first_name," ",last_name) as full_name, assets.id as id, models.name as modelname' ) )
->whereNull( 'assets.deleted_at' )
->get();
$asset_array = json_decode( json_encode( $asset ), true );
$asset_element[ '' ] = 'Please select an asset';
// Build a list out of the data results
for ($x = 0; $x < count( $asset_array ); $x++) {
if ($asset_array[ $x ][ 'full_name' ] != '') {
$full_name = ' (' . $asset_array[ $x ][ 'full_name' ] . ') ' . $asset_array[ $x ][ 'modelname' ];
} else {
$full_name = ' (Unassigned) ' . $asset_array[ $x ][ 'modelname' ];
}
$asset_element[ $asset_array[ $x ][ 'id' ] ] =
$asset_array[ $x ][ 'asset_tag' ] . ' - ' . $asset_array[ $x ][ 'name' ] . $full_name;
}
// Get Supplier List
$supplier_list = [ '' => 'Select Supplier' ] + Supplier::orderBy( 'name', 'asc' )
->lists( 'name', 'id' );
// Render the view
return View::make( 'backend/asset_maintenances/edit' )
->with( 'asset_list', $asset_element )
->with( 'selectedAsset', $selectedAsset )
->with( 'supplier_list', $supplier_list )
->with( 'assetMaintenanceType', $assetMaintenanceType )
->with( 'assetMaintenance', new AssetMaintenance );
}
/**
* postCreate
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function postCreate()
{
// get the POST data
$new = Input::all();
// create a new model instance
$assetMaintenance = new AssetMaintenance();
// attempt validation
if ($assetMaintenance->validate( $new )) {
if (e( Input::get( 'supplier_id' ) ) == '') {
$assetMaintenance->supplier_id = null;
} else {
$assetMaintenance->supplier_id = e( Input::get( 'supplier_id' ) );
}
if (e( Input::get( 'is_warranty' ) ) == '') {
$assetMaintenance->is_warranty = 0;
} else {
$assetMaintenance->is_warranty = e( Input::get( 'is_warranty' ) );
}
if (e( Input::get( 'cost' ) ) == '') {
$assetMaintenance->cost = '';
} else {
$assetMaintenance->cost = ParseFloat( e( Input::get( 'cost' ) ) );
}
if (e( Input::get( 'notes' ) ) == '') {
$assetMaintenance->notes = null;
} else {
$assetMaintenance->notes = e( Input::get( 'notes' ) );
}
$asset = Asset::find( e( Input::get( 'asset_id' ) ) );
if (!Company::isCurrentUserHasAccess($asset)) {
return static::getInsufficientPermissionsRedirect();
}
// Save the asset maintenance data
$assetMaintenance->asset_id = e( Input::get( 'asset_id' ) );
$assetMaintenance->asset_maintenance_type = e( Input::get( 'asset_maintenance_type' ) );
$assetMaintenance->title = e( Input::get( 'title' ) );
$assetMaintenance->start_date = e( Input::get( 'start_date' ) );
$assetMaintenance->completion_date = e( Input::get( 'completion_date' ) );
if (( $assetMaintenance->completion_date == "" )
|| ( $assetMaintenance->completion_date == "0000-00-00" )
) {
$assetMaintenance->completion_date = null;
}
if (( $assetMaintenance->completion_date !== "" )
&& ( $assetMaintenance->completion_date !== "0000-00-00" )
&& ( $assetMaintenance->start_date !== "" )
&& ( $assetMaintenance->start_date !== "0000-00-00" )
) {
$startDate = Carbon::parse( $assetMaintenance->start_date );
$completionDate = Carbon::parse( $assetMaintenance->completion_date );
$assetMaintenance->asset_maintenance_time = $completionDate->diffInDays( $startDate );
}
// Was the asset maintenance created?
if ($assetMaintenance->save()) {
// Redirect to the new asset maintenance page
return Redirect::to( "admin/asset_maintenances" )
->with( 'success', Lang::get( 'admin/asset_maintenances/message.create.success' ) );
}
} else {
// failure
$errors = $assetMaintenance->errors();
return Redirect::back()
->withInput()
->withErrors( $errors );
}
// Redirect to the asset maintenance create page
return Redirect::to( 'admin/asset_maintenances/edit' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.create.error' ) )
->with( 'assetMaintenance', new AssetMaintenance );
}
/**
* getEdit
*
* @param null $assetMaintenanceId
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getEdit( $assetMaintenanceId = null )
{
// Check if the asset maintenance exists
if (is_null( $assetMaintenance = AssetMaintenance::find( $assetMaintenanceId ) )) {
// Redirect to the improvement management page
return Redirect::to( 'admin/asset_maintenances' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.not_found' ) );
}
else if (!Company::isCurrentUserHasAccess( $assetMaintenance->asset )) {
return static::getInsufficientPermissionsRedirect();
}
if ($assetMaintenance->completion_date == '0000-00-00') {
$assetMaintenance->completion_date = null;
}
if ($assetMaintenance->start_date == '0000-00-00') {
$assetMaintenance->start_date = null;
}
if ($assetMaintenance->cost == '0.00') {
$assetMaintenance->cost = null;
}
// Prepare Improvement Type List
$assetMaintenanceType = [
'' => 'Select an improvement type',
] + AssetMaintenance::getImprovementOptions();
// Get the possible assets using a left join to get a list of assets and some other helpful info
$asset = Company::scopeCompanyables( DB::table( 'assets' ), 'assets.company_id' )
->leftJoin( 'users', 'users.id', '=', 'assets.assigned_to' )
->leftJoin( 'models', 'assets.model_id', '=', 'models.id' )
->select( 'assets.id', 'assets.name', 'first_name', 'last_name', 'asset_tag',
DB::raw( 'concat(first_name," ",last_name) as full_name, assets.id as id, models.name as modelname' ) )
->whereNull( 'assets.deleted_at' )
->get();
$asset_array = json_decode( json_encode( $asset ), true );
$asset_element[ '' ] = 'Please select an asset';
// Build a list out of the data results
for ($x = 0; $x < count( $asset_array ); $x++) {
if ($asset_array[ $x ][ 'full_name' ] != '') {
$full_name = ' (' . $asset_array[ $x ][ 'full_name' ] . ') ' . $asset_array[ $x ][ 'modelname' ];
} else {
$full_name = ' (Unassigned) ' . $asset_array[ $x ][ 'modelname' ];
}
$asset_element[ $asset_array[ $x ][ 'id' ] ] =
$asset_array[ $x ][ 'asset_tag' ] . ' - ' . $asset_array[ $x ][ 'name' ] . $full_name;
}
// Get Supplier List
$supplier_list = [ '' => 'Select Supplier' ] + Supplier::orderBy( 'name', 'asc' )
->lists( 'name', 'id' );
// Render the view
return View::make( 'backend/asset_maintenances/edit' )
->with( 'asset_list', $asset_element )
->with( 'selectedAsset', null )
->with( 'supplier_list', $supplier_list )
->with( 'assetMaintenanceType', $assetMaintenanceType )
->with( 'assetMaintenance', $assetMaintenance );
}
/**
* postEdit
*
* @param null $assetMaintenanceId
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function postEdit( $assetMaintenanceId = null )
{
// get the POST data
$new = Input::all();
// Check if the asset maintenance exists
if (is_null( $assetMaintenance = AssetMaintenance::find( $assetMaintenanceId ) )) {
// Redirect to the asset maintenance management page
return Redirect::to( 'admin/asset_maintenances' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.not_found' ) );
}
else if (!Company::isCurrentUserHasAccess( $assetMaintenance->asset )) {
return static::getInsufficientPermissionsRedirect();
}
// attempt validation
if ($assetMaintenance->validate( $new )) {
if (e( Input::get( 'supplier_id' ) ) == '') {
$assetMaintenance->supplier_id = null;
} else {
$assetMaintenance->supplier_id = e( Input::get( 'supplier_id' ) );
}
if (e( Input::get( 'is_warranty' ) ) == '') {
$assetMaintenance->is_warranty = 0;
} else {
$assetMaintenance->is_warranty = e( Input::get( 'is_warranty' ) );
}
if (e( Input::get( 'cost' ) ) == '') {
$assetMaintenance->cost = '';
} else {
$assetMaintenance->cost = ParseFloat( e( Input::get( 'cost' ) ) );
}
if (e( Input::get( 'notes' ) ) == '') {
$assetMaintenance->notes = null;
} else {
$assetMaintenance->notes = e( Input::get( 'notes' ) );
}
$asset = Asset::find( e( Input::get( 'asset_id' ) ) );
if (!Company::isCurrentUserHasAccess($asset)) {
return static::getInsufficientPermissionsRedirect();
}
// Save the asset maintenance data
$assetMaintenance->asset_id = e( Input::get( 'asset_id' ) );
$assetMaintenance->asset_maintenance_type = e( Input::get( 'asset_maintenance_type' ) );
$assetMaintenance->title = e( Input::get( 'title' ) );
$assetMaintenance->start_date = e( Input::get( 'start_date' ) );
$assetMaintenance->completion_date = e( Input::get( 'completion_date' ) );
if (( $assetMaintenance->completion_date == "" )
|| ( $assetMaintenance->completion_date == "0000-00-00" )
) {
$assetMaintenance->completion_date = null;
if (( $assetMaintenance->asset_maintenance_time !== 0 )
|| ( !is_null( $assetMaintenance->asset_maintenance_time ) )
) {
$assetMaintenance->asset_maintenance_time = null;
}
}
if (( $assetMaintenance->completion_date !== "" )
&& ( $assetMaintenance->completion_date !== "0000-00-00" )
&& ( $assetMaintenance->start_date !== "" )
&& ( $assetMaintenance->start_date !== "0000-00-00" )
) {
$startDate = Carbon::parse( $assetMaintenance->start_date );
$completionDate = Carbon::parse( $assetMaintenance->completion_date );
$assetMaintenance->asset_maintenance_time = $completionDate->diffInDays( $startDate );
}
// Was the asset maintenance created?
if ($assetMaintenance->save()) {
// Redirect to the new asset maintenance page
return Redirect::to( "admin/asset_maintenances" )
->with( 'success', Lang::get( 'admin/asset_maintenances/message.create.success' ) );
}
} else {
// failure
$errors = $assetMaintenance->errors();
return Redirect::back()
->withInput()
->withErrors( $errors );
}
// Redirect to the improvement create page
return Redirect::to( 'admin/asset_maintenances/edit' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.create.error' ) )
->with( 'assetMaintenance', $assetMaintenance );
}
/**
* getDelete
*
* @param $assetMaintenanceId
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getDelete( $assetMaintenanceId )
{
// Check if the asset maintenance exists
if (is_null( $assetMaintenance = AssetMaintenance::find( $assetMaintenanceId ) )) {
// Redirect to the asset maintenance management page
return Redirect::to( 'admin/asset_maintenances' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.not_found' ) );
}
else if (!Company::isCurrentUserHasAccess( $assetMaintenance->asset )) {
return static::getInsufficientPermissionsRedirect();
}
// Delete the asset maintenance
$assetMaintenance->delete();
// Redirect to the asset_maintenance management page
return Redirect::to( 'admin/asset_maintenances' )
->with( 'success', Lang::get( 'admin/asset_maintenances/message.delete.success' ) );
}
/**
* getView
*
* @param $assetMaintenanceId
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getView( $assetMaintenanceId )
{
// Check if the asset maintenance exists
if (is_null( $assetMaintenance = AssetMaintenance::find( $assetMaintenanceId ) )) {
// Redirect to the asset maintenance management page
return Redirect::to( 'admin/asset_maintenances' )
->with( 'error', Lang::get( 'admin/asset_maintenances/message.not_found' ) );
}
else if (!Company::isCurrentUserHasAccess( $assetMaintenance->asset )) {
return static::getInsufficientPermissionsRedirect();
}
return View::make( 'backend/asset_maintenances/view')->with('assetMaintenance', $assetMaintenance);
}
}
File diff suppressed because it is too large Load Diff
+172 -15
View File
@@ -4,6 +4,7 @@ use AdminController;
use Input;
use Lang;
use Category;
use Company;
use Redirect;
use Setting;
use DB;
@@ -22,11 +23,8 @@ class CategoriesController extends AdminController
public function getIndex()
{
// Grab all the categories
$categories = Category::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/categories/index', compact('categories'));
return View::make('backend/categories/index');
}
@@ -38,7 +36,9 @@ class CategoriesController extends AdminController
public function getCreate()
{
// Show the page
return View::make('backend/categories/edit')->with('category',new Category);
$category_types= categoryTypeList();
return View::make('backend/categories/edit')->with('category',new Category)
->with('category_types',$category_types);
}
@@ -52,26 +52,31 @@ class CategoriesController extends AdminController
// create a new model instance
$category = new Category();
$validator = Validator::make(Input::all(), $category->rules);
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
else{
// Update the category data
$category->name = e(Input::get('name'));
$category->user_id = Sentry::getId();
$category->name = e(Input::get('name'));
$category->category_type = e(Input::get('category_type'));
$category->eula_text = e(Input::get('eula_text'));
$category->use_default_eula = e(Input::get('use_default_eula', '0'));
$category->require_acceptance = e(Input::get('require_acceptance', '0'));
$category->checkin_email = e(Input::get('checkin_email', '0'));
$category->user_id = Sentry::getId();
// Was the asset created?
if($category->save()) {
// Redirect to the new category page
return Redirect::to("admin/settings/categories")->with('success', Lang::get('admin/categories/message.create.success'));
}
}
}
// Redirect to the category create page
return Redirect::to('admin/settings/categories/create')->with('error', Lang::get('admin/categories/message.create.error'));
@@ -97,7 +102,11 @@ class CategoriesController extends AdminController
//$category_options = array('' => 'Top Level') + Category::lists('name', 'id');
$category_options = array('' => 'Top Level') + DB::table('categories')->where('id', '!=', $categoryId)->lists('name', 'id');
return View::make('backend/categories/edit', compact('category'))->with('category_options',$category_options);
$category_types= array('' => '', 'asset' => 'Asset', 'accessory' => 'Accessory', 'consumable' => 'Consumable');
return View::make('backend/categories/edit', compact('category'))
->with('category_options',$category_options)
->with('category_types',$category_types);
}
@@ -119,9 +128,9 @@ class CategoriesController extends AdminController
// get the POST data
$new = Input::all();
// attempt validation
// attempt validation
$validator = Validator::make(Input::all(), $category->validationRules($categoryId));
if ($validator->fails())
{
@@ -133,13 +142,18 @@ class CategoriesController extends AdminController
// Update the category data
$category->name = e(Input::get('name'));
$category->category_type = e(Input::get('category_type'));
$category->eula_text = e(Input::get('eula_text'));
$category->use_default_eula = e(Input::get('use_default_eula', '0'));
$category->require_acceptance = e(Input::get('require_acceptance', '0'));
$category->checkin_email = e(Input::get('checkin_email', '0'));
// Was the asset created?
if($category->save()) {
// Redirect to the new category page
return Redirect::to("admin/settings/categories")->with('success', Lang::get('admin/categories/message.update.success'));
}
}
}
// Redirect to the category management page
return Redirect::to("admin/settings/categories/$categoryID/edit")->with('error', Lang::get('admin/categories/message.update.error'));
@@ -154,7 +168,7 @@ class CategoriesController extends AdminController
*/
public function getDelete($categoryId)
{
// Check if the blog post exists
// Check if the category exists
if (is_null($category = Category::find($categoryId))) {
// Redirect to the blogs management page
return Redirect::to('admin/settings/categories')->with('error', Lang::get('admin/categories/message.not_found'));
@@ -178,4 +192,147 @@ class CategoriesController extends AdminController
/**
* Get the asset information to present to the category view page
*
* @param int $assetId
* @return View
**/
public function getView($categoryID = null)
{
$category = Category::find($categoryID);
if (isset($category->id)) {
return View::make('backend/categories/view', compact('category'));
} else {
// Prepare the error message
$error = Lang::get('admin/categories/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('categories')->with('error', $error);
}
}
public function getDatatable()
{
// Grab all the categories
$categories = Category::with('assets', 'accessories');
if (Input::has('search')) {
$categories = $categories->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name','category_type'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$categories = $categories->orderBy($sort, $order);
$catCount = $categories->count();
$categories = $categories->skip($offset)->take($limit)->get();
$rows = array();
foreach ($categories as $category) {
$actions = '<a href="'.route('update/category', $category->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/category', $category->id).'" data-content="'.Lang::get('admin/categories/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($category->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
$rows[] = array(
'id' => $category->id,
'name' => link_to('/admin/settings/categories/'.$category->id.'/view', $category->name) ,
'category_type' => ucwords($category->category_type),
'count' => $category->itemCount(),
'acceptance' => ($category->require_acceptance=='1') ? '<i class="fa fa-check"></i>' : '',
//EULA is still not working correctly
'eula' => ($category->getEula()) ? '<i class="fa fa-check"></i>' : '',
'actions' => $actions
);
}
$data = array('total' => $catCount, 'rows' => $rows);
return $data;
}
public function getDataView($categoryID) {
$category = Category::with('assets.company')->find($categoryID);
$category_assets = $category->assets;
if (Input::has('search')) {
$category_assets = $category_assets->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$allowed_columns = ['id','name','serial','asset_tag'];
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$count = $category_assets->count();
$rows = array();
foreach ($category_assets as $asset) {
$actions = '';
$inout='';
if ($asset->deleted_at=='') {
$actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
} elseif ($asset->deleted_at!='') {
$actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
}
if ($asset->assetstatus) {
if ($asset->assetstatus->deployable != 0) {
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
} else {
$inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
}
}
}
$rows[] = array(
'id' => $asset->id,
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
'model' => $asset->model->name,
'asset_tag' => $asset->asset_tag,
'serial' => $asset->serial,
'assigned_to' => ($asset->assigneduser) ? link_to('/admin/users/'.$asset->assigneduser->id.'/view', $asset->assigneduser->fullName()): '',
'change' => $inout,
'actions' => $actions,
'companyName' => Company::getName($asset),
);
}
$data = array('total' => $count, 'rows' => $rows);
return $data;
}
}
@@ -0,0 +1,127 @@
<?php namespace Controllers\Admin;
use AdminController;
use Company;
use Input;
use Lang;
use Redirect;
use Validator;
use View;
final class CompaniesController extends AdminController
{
public function getIndex()
{
return View::make('backend/companies/index')->with('companies', Company::all());
}
public function getCreate()
{
return View::make('backend/companies/edit')->with('company', new Company);
}
public function postCreate()
{
$company = new Company;
if ($company->validate(Input::all()))
{
$company->name = e(Input::get('name'));
if($company->save())
{
return Redirect::to('admin/settings/companies')
->with('success', Lang::get('admin/companies/message.create.success'));
}
else
{
return Redirect::to('admin/settings/companies/create')
->with('error', Lang::get('admin/companies/message.create.error'));
}
}
else
{
return Redirect::back()->withInput()->withErrors($company->errors());
}
}
public function getEdit($companyId)
{
if (is_null($company = Company::find($companyId)))
{
return Redirect::to('admin/settings/companies')
->with('error', Lang::get('admin/companies/message.does_not_exist'));
}
else
{
return View::make('backend/companies/edit')->with('company', $company);
}
}
public function postEdit($companyId)
{
if (is_null($company = Company::find($companyId)))
{
return Redirect::to('admin/settings/companies')->with('error', Lang::get('admin/companies/message.does_not_exist'));
}
else
{
$validator = Validator::make(Input::all(), $company->validationRules($companyId));
if ($validator->fails())
{
return Redirect::back()->withInput()->withErrors($validator->messages());
}
else
{
$company->name = e(Input::get('name'));
if($company->save())
{
return Redirect::to('admin/settings/companies')
->with('success', Lang::get('admin/companies/message.update.success'));
}
else
{
return Redirect::to("admin/settings/companies/$companyId/edit")
->with('error', Lang::get('admin/companies/message.update.error'));
}
}
}
}
public function postDelete($companyId)
{
if (is_null($company = Company::find($companyId)))
{
return Redirect::to('admin/settings/companies')
->with('error', Lang::get('admin/companies/message.not_found'));
}
else
{
try
{
$company->delete();
return Redirect::to('admin/settings/companies')
->with('success', Lang::get('admin/companies/message.delete.success'));
}
catch (\Illuminate\Database\QueryException $exception)
{
/*
* NOTE: This happens when there's a foreign key constraint violation
* For example when rows in other tables are referencing this company
*/
if ($exception->getCode() == 23000)
{
return Redirect::to('admin/settings/companies')
->with('error', Lang::get('admin/companies/message.assoc_users'));
}
else
{
throw $exception;
}
}
}
}
}
@@ -0,0 +1,504 @@
<?php namespace Controllers\Admin;
use AdminController;
use Input;
use Lang;
use Redirect;
use Setting;
use DB;
use Sentry;
use Consumable;
use Company;
use Str;
use Validator;
use View;
use User;
use Actionlog;
use Mail;
use Datatable;
use Slack;
use Config;
class ConsumablesController extends AdminController
{
/**
* Show a list of all the consumables.
*
* @return View
*/
public function getIndex()
{
return View::make('backend/consumables/index');
}
/**
* Consumable create.
*
* @return View
*/
public function getCreate()
{
// Show the page
$category_list = array('' => '') + DB::table('categories')->where('category_type','=','consumable')->whereNull('deleted_at')->orderBy('name','ASC')->lists('name', 'id');
$company_list = Company::getSelectList();
$location_list = locationsList();
return View::make('backend/consumables/edit')
->with('consumable', new Consumable)
->with('category_list', $category_list)
->with('company_list', $company_list)
->with('location_list', $location_list);
}
/**
* Consumable create form processing.
*
* @return Redirect
*/
public function postCreate()
{
// create a new model instance
$consumable = new Consumable();
$validator = Validator::make(Input::all(), $consumable->rules);
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
else{
// Update the consumable data
$consumable->name = e(Input::get('name'));
$consumable->category_id = e(Input::get('category_id'));
$consumable->location_id = e(Input::get('location_id'));
$consumable->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$consumable->order_number = e(Input::get('order_number'));
if (e(Input::get('purchase_date')) == '') {
$consumable->purchase_date = NULL;
} else {
$consumable->purchase_date = e(Input::get('purchase_date'));
}
if (e(Input::get('purchase_cost')) == '0.00') {
$consumable->purchase_cost = NULL;
} else {
$consumable->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
}
$consumable->qty = e(Input::get('qty'));
$consumable->user_id = Sentry::getId();
// Was the consumable created?
if($consumable->save()) {
// Redirect to the new consumable page
return Redirect::to("admin/consumables")->with('success', Lang::get('admin/consumables/message.create.success'));
}
}
// Redirect to the consumable create page
return Redirect::to('admin/consumables/create')->with('error', Lang::get('admin/consumables/message.create.error'));
}
/**
* Consumable update.
*
* @param int $consumableId
* @return View
*/
public function getEdit($consumableId = null)
{
// Check if the consumable exists
if (is_null($consumable = Consumable::find($consumableId))) {
// Redirect to the blogs management page
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
$category_list = array('' => '') + DB::table('categories')->where('category_type','=','consumable')->whereNull('deleted_at')->orderBy('name','ASC')->lists('name', 'id');
$company_list = Company::getSelectList();
$location_list = locationsList();
return View::make('backend/consumables/edit', compact('consumable'))
->with('category_list', $category_list)
->with('company_list', $company_list)
->with('location_list', $location_list);
}
/**
* Consumable update form processing page.
*
* @param int $consumableId
* @return Redirect
*/
public function postEdit($consumableId = null)
{
// Check if the blog post exists
if (is_null($consumable = Consumable::find($consumableId))) {
// Redirect to the blogs management page
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
// get the POST data
$new = Input::all();
// attempt validation
$validator = Validator::make(Input::all(), $consumable->validationRules($consumableId));
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
// Update the consumable data
$consumable->name = e(Input::get('name'));
$consumable->category_id = e(Input::get('category_id'));
$consumable->location_id = e(Input::get('location_id'));
$consumable->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$consumable->order_number = e(Input::get('order_number'));
if (e(Input::get('purchase_date')) == '') {
$consumable->purchase_date = NULL;
} else {
$consumable->purchase_date = e(Input::get('purchase_date'));
}
if (e(Input::get('purchase_cost')) == '0.00') {
$consumable->purchase_cost = NULL;
} else {
$consumable->purchase_cost = ParseFloat(e(Input::get('purchase_cost')));
}
$consumable->qty = e(Input::get('qty'));
// Was the consumable created?
if($consumable->save()) {
// Redirect to the new consumable page
return Redirect::to("admin/consumables")->with('success', Lang::get('admin/consumables/message.update.success'));
}
}
// Redirect to the consumable management page
return Redirect::to("admin/consumables/$consumableID/edit")->with('error', Lang::get('admin/consumables/message.update.error'));
}
/**
* Delete the given consumable.
*
* @param int $consumableId
* @return Redirect
*/
public function getDelete($consumableId)
{
// Check if the blog post exists
if (is_null($consumable = Consumable::find($consumableId))) {
// Redirect to the blogs management page
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
$consumable->delete();
// Redirect to the locations management page
return Redirect::to('admin/consumables')->with('success', Lang::get('admin/consumables/message.delete.success'));
}
/**
* Get the consumable information to present to the consumable view page
*
* @param int $consumableId
* @return View
**/
public function getView($consumableID = null)
{
$consumable = Consumable::find($consumableID);
if (isset($consumable->id)) {
if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
else {
return View::make('backend/consumables/view', compact('consumable'));
}
} else {
// Prepare the error message
$error = Lang::get('admin/consumables/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('consumables')->with('error', $error);
}
}
/**
* Check out the consumable to a person
**/
public function getCheckout($consumableId)
{
// Check if the consumable exists
if (is_null($consumable = Consumable::find($consumableId))) {
// Redirect to the consumable management page with error
return Redirect::to('consumables')->with('error', Lang::get('admin/consumables/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
// Get the dropdown of users and then pass it to the checkout view
$users_list = array('' => 'Select a User') + DB::table('users')->select(DB::raw('concat(last_name,", ",first_name," (",username,")") as full_name, id'))->whereNull('deleted_at')->orderBy('last_name', 'asc')->orderBy('first_name', 'asc')->lists('full_name', 'id');
return View::make('backend/consumables/checkout', compact('consumable'))->with('users_list',$users_list);
}
/**
* Check out the consumable to a person
**/
public function postCheckout($consumableId)
{
// Check if the consumable exists
if (is_null($consumable = Consumable::find($consumableId))) {
// Redirect to the consumable management page with error
return Redirect::to('consumables')->with('error', Lang::get('admin/consumables/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($consumable)) {
return Redirect::to('admin/consumables')->with('error', Lang::get('general.insufficient_permissions'));
}
$admin_user = Sentry::getUser();
$assigned_to = e(Input::get('assigned_to'));
// Declare the rules for the form validation
$rules = array(
'assigned_to' => 'required|min:1'
);
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
// If validation fails, we'll exit the operation now.
if ($validator->fails()) {
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
// Check if the user exists
if (is_null($user = User::find($assigned_to))) {
// Redirect to the consumable management page with error
return Redirect::to('admin/consumables')->with('error', Lang::get('admin/consumables/message.user_does_not_exist'));
}
// Update the consumable data
$consumable->assigned_to = e(Input::get('assigned_to'));
$consumable->users()->attach($consumable->id, array(
'consumable_id' => $consumable->id,
'user_id' => $admin_user->id,
'assigned_to' => e(Input::get('assigned_to'))));
$logaction = new Actionlog();
$logaction->consumable_id = $consumable->id;
$logaction->checkedout_to = $consumable->assigned_to;
$logaction->asset_type = 'consumable';
$logaction->location_id = $user->location_id;
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('note'));
$settings = Setting::getSettings();
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'Checked Out:',
'value' => strtoupper($logaction->asset_type).' <'.Config::get('app.url').'/admin/consumables/'.$consumable->id.'/view'.'|'.$consumable->name.'> checked out to <'.Config::get('app.url').'/admin/users/'.$user->id.'/view|'.$user->fullName().'> by <'.Config::get('app.url').'/admin/users/'.$admin_user->id.'/view'.'|'.$admin_user->fullName().'>.'
],
[
'title' => 'Note:',
'value' => e($logaction->note)
],
]
])->send('Consumable Checked Out');
} catch (Exception $e) {
}
}
$log = $logaction->logaction('checkout');
$consumable_user = DB::table('consumables_users')->where('assigned_to','=',$consumable->assigned_to)->where('consumable_id','=',$consumable->id)->first();
$data['log_id'] = $logaction->id;
$data['eula'] = $consumable->getEula();
$data['first_name'] = $user->first_name;
$data['item_name'] = $consumable->name;
$data['checkout_date'] = $logaction->created_at;
$data['item_tag'] = '';
$data['expected_checkin'] = '';
$data['note'] = $logaction->note;
$data['require_acceptance'] = $consumable->requireAcceptance();
if (($consumable->requireAcceptance()=='1') || ($consumable->getEula())) {
Mail::send('emails.accept-asset', $data, function ($m) use ($user) {
$m->to($user->email, $user->first_name . ' ' . $user->last_name);
$m->subject('Confirm consumable delivery');
});
}
// Redirect to the new consumable page
return Redirect::to("admin/consumables")->with('success', Lang::get('admin/consumables/message.checkout.success'));
}
public function getDatatable()
{
$consumables = Consumable::select('consumables.*')->whereNull('consumables.deleted_at')
->with('company','location','category','users');
if (Input::has('search')) {
$consumables = $consumables->TextSearch(Input::get('search'));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name','order_number','purchase_date','purchase_cost','companyName','category'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
switch ($sort)
{
case 'category':
$consumables = $consumables->OrderCategory($order);
break;
case 'location':
$consumables = $consumables->OrderLocation($order);
break;
case 'companyName':
$consumables = $consumables->OrderCompany($order);
break;
default:
$consumables = $consumables->orderBy($sort, $order);
break;
}
$consumCount = $consumables->count();
$consumables = $consumables->skip($offset)->take($limit)->get();
$rows = array();
foreach($consumables as $consumable) {
$actions = '<nobr><a href="'.route('checkout/consumable', $consumable->id).'" style="margin-right:5px;" class="btn btn-info btn-sm" '.(($consumable->numRemaining() > 0 ) ? '' : ' disabled').'>'.Lang::get('general.checkout').'</a><a href="'.route('update/consumable', $consumable->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/consumable', $consumable->id).'" data-content="'.Lang::get('admin/consumables/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($consumable->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></nobr>';
$company = $consumable->company;
$rows[] = array(
'id' => $consumable->id,
'name' => link_to('admin/consumables/'.$consumable->id.'/view', $consumable->name),
'location' => ($consumable->location) ? e($consumable->location->name) : '',
'qty' => $consumable->qty,
'category' => ($consumable->category) ? $consumable->category->name : 'Missing category',
'order_number' => $consumable->order_number,
'purchase_date' => $consumable->purchase_date,
'purchase_cost' => ($consumable->purchase_cost!='') ? number_format($consumable->purchase_cost,2): '' ,
'numRemaining' => $consumable->numRemaining(),
'actions' => $actions,
'companyName' => is_null($company) ? '' : e($company->name),
);
}
$data = array('total' => $consumCount, 'rows' => $rows);
return $data;
}
public function getDataView($consumableID)
{
//$consumable = Consumable::find($consumableID);
$consumable = Consumable::with(array('consumableAssigments'=>
function($query) {
$query->orderBy('created_at','DESC');
},
'consumableAssigments.admin'=> function($query) {},
'consumableAssigments.user'=> function($query) {},
))->find($consumableID);
// $consumable->load('consumableAssigments.admin','consumableAssigments.user');
if (!Company::isCurrentUserHasAccess($consumable)) {
return ['total' => 0, 'rows' => []];
}
$rows = array();
foreach ($consumable->consumableAssigments as $consumable_assignment) {
$rows[] = array(
'name' => link_to('/admin/users/'.$consumable_assignment->user->id.'/view', $consumable_assignment->user->fullName()),
'created_at' => ($consumable_assignment->created_at->format('Y-m-d H:i:s')=='-0001-11-30 00:00:00') ? '' : $consumable_assignment->created_at->format('Y-m-d H:i:s'),
'admin' => ($consumable_assignment->admin) ? $consumable_assignment->admin->fullName() : '',
);
}
$consumableCount = $consumable->users->count();
$data = array('total' => $consumableCount, 'rows' => $rows);
return $data;
}
}
@@ -0,0 +1,194 @@
<?php namespace Controllers\Admin;
use View;
use CustomFieldset;
use CustomField;
use Input;
use Validator;
use Redirect;
use Model;
use Lang;
use Sentry;
class CustomFieldsController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
//
$fieldsets=CustomFieldset::with("fields","models")->get();
//$fieldsets=CustomFieldset::all();
$fields=CustomField::with("fieldset")->get();
//$fields=CustomField::all();
return View::make("backend.custom_fields.index")->with("custom_fieldsets",$fieldsets)->with("custom_fields",$fields);
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
return View::make("backend.custom_fields.create");
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
$cfset=new CustomFieldset(["name" => Input::get("name"),"user_id" => Sentry::getUser()->id]);
$validator=Validator::make(Input::all(),$cfset->rules);
if($validator->passes()) {
$cfset->save();
return Redirect::route("admin.custom_fields.show",[$cfset->id])->with('success',Lang::get('admin/custom_fields/message.fieldset.create.success'));
} else {
return Redirect::back()->withInput()->withErrors($validator);
}
}
public function associate($id)
{
$set = CustomFieldset::find($id);
foreach($set->fields AS $field) {
if($field->id == Input::get('field_id')) {
return Redirect::route("admin.custom_fields.show",[$id])->withInput()->withErrors(['field_id' => Lang::get('admin/custom_fields/message.field.already_added')]);
}
}
$results=$set->fields()->attach(Input::get('field_id'),["required" => (Input::get('required') == "on"),"order" => Input::get('order')]);
return Redirect::route("admin.custom_fields.show",[$id])->with("success",Lang::get('admin/custom_fields/message.field.create.assoc_success'));
}
public function createField()
{
return View::make("backend.custom_fields.create_field");
}
public function storeField()
{
$field=new CustomField(["name" => Input::get("name"),"element" => Input::get("element"),"user_id" => Sentry::getUser()->id]);
if(!in_array(Input::get('format'),["ALPHA","NUMERIC","MAC","IP"])) {
$field->format=Input::get("custom_format");
} else {
$field->format=Input::get('format');
}
$validator=Validator::make(Input::all(),$field->rules);
if($validator->passes()) {
$results=$field->save();
//return "postCreateField: $results";
if ($results) {
return Redirect::route("admin.custom_fields.index")->with("success",Lang::get('admin/custom_fields/message.field.create.success'));
} else {
return Redirect::back()->withInput()->with('error', Lang::get('admin/custom_fields/message.field.create.error'));
}
} else {
return Redirect::back()->withInput()->withErrors($validator);
}
}
public function deleteField($field_id)
{
$field=CustomField::find($field_id);
if($field->fieldset->count()>0) {
return Redirect::back()->withErrors(['message' => "Field is in-use"]);
} else {
$field->delete();
return Redirect::route("admin.custom_fields.index")->with("success",Lang::get('admin/custom_fields/message.field.delete.success'));
}
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//$id=$parameters[0];
$cfset=CustomFieldset::find($id);
//print_r($parameters);
//
$custom_fields_list=["" => "Add New Field to Fieldset"] + CustomField::lists("name","id");
// print_r($custom_fields_list);
$maxid=0;
foreach($cfset->fields AS $field) {
// print "Looking for: ".$field->id;
if($field->pivot->order > $maxid) {
$maxid=$field->pivot->order;
}
if(isset($custom_fields_list[$field->id])) {
// print "Found ".$field->id.", so removing it.<br>";
unset($custom_fields_list[$field->id]);
}
}
return View::make("backend.custom_fields.show")->with("custom_fieldset",$cfset)->with("maxid",$maxid+1)->with("custom_fields_list",$custom_fields_list);
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
$fieldset=CustomFieldset::find($id);
$models=Model::where("fieldset_id","=",$id);
if($models->count()==0) {
$fieldset->delete();
return Redirect::route("admin.custom_fields.index")->with("success",Lang::get('admin/custom_fields/message.fieldset.delete.success'));
}
else {
return Redirect::route("admin.custom_fields.index")->with("error",Lang::get('admin/custom_fields/message.fieldset.delete.in_use')); //->with("models",$models);
}
}
}
+57 -1
View File
@@ -2,6 +2,9 @@
use AdminController;
use View;
use Asset;
use Actionlog;
use Company;
class DashboardController extends AdminController
{
@@ -13,7 +16,60 @@ class DashboardController extends AdminController
public function getIndex()
{
// Show the page
return View::make('backend/dashboard');
$recent_activity = Actionlog::orderBy('created_at','DESC')
->with('accessorylog','consumablelog','licenselog','assetlog','adminlog','userlog')
->take(7)
->get();
$asset_stats['total'] = Asset::Hardware()->count();
$asset_stats['rtd']['total'] = Asset::Hardware()->RTD()->count();
if ($asset_stats['rtd']['total'] > 0) {
$asset_stats['rtd']['percent'] = round(($asset_stats['rtd']['total']/$asset_stats['total']) * 100);
} else {
$asset_stats['rtd']['percent'] = 0;
}
$asset_stats['pending']['total'] = Asset::Hardware()->Pending()->count();
if ($asset_stats['pending']['total'] > 0) {
$asset_stats['pending']['percent'] = round(($asset_stats['pending']['total']/$asset_stats['total']) * 100);
} else {
$asset_stats['pending']['percent'] = 0;
}
$asset_stats['deployed']['total'] = Asset::Hardware()->Deployed()->count();
if ($asset_stats['deployed']['total'] > 0) {
$asset_stats['deployed']['percent'] = round(($asset_stats['deployed']['total']/$asset_stats['total']) * 100);
} else {
$asset_stats['deployed']['percent'] = 0;
}
$asset_stats['undeployable']['total'] = Asset::Hardware()->Undeployable()->count();
if ($asset_stats['undeployable']['total'] > 0) {
$asset_stats['undeployable']['percent'] = round(($asset_stats['undeployable']['total']/$asset_stats['total']) * 100);
} else {
$asset_stats['undeployable']['percent'] = 0;
}
$asset_stats['archived']['total'] = Asset::Hardware()->Archived()->count();
if ($asset_stats['archived']['total'] > 0) {
$asset_stats['archived']['percent'] = round(($asset_stats['archived']['total']/$asset_stats['total']) * 100);
} else {
$asset_stats['archived']['percent'] = 0;
}
return View::make('backend/dashboard')->with('asset_stats',$asset_stats)->with('recent_activity',$recent_activity);
}
}
@@ -22,9 +22,6 @@ class DepreciationsController extends AdminController
public function getIndex()
{
// Grab all the depreciations
$depreciations = Depreciation::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/depreciations/index', compact('depreciations'));
}
@@ -123,7 +120,7 @@ class DepreciationsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
@@ -137,7 +134,7 @@ class DepreciationsController extends AdminController
// Redirect to the depreciation page
return Redirect::to("admin/settings/depreciations/")->with('success', Lang::get('admin/depreciations/message.update.success'));
}
}
}
// Redirect to the depreciation management page
return Redirect::to("admin/settings/depreciations/$depreciationId/edit")->with('error', Lang::get('admin/depreciations/message.update.error'));
@@ -174,5 +171,55 @@ class DepreciationsController extends AdminController
}
public function getDatatable()
{
$depreciations = Depreciation::select(array('id','name','months'));
if (Input::has('search')) {
$depreciations = $depreciations->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name','months'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$depreciations->orderBy($sort, $order);
$depreciationsCount = $depreciations->count();
$depreciations = $depreciations->skip($offset)->take($limit)->get();
$rows = array();
foreach($depreciations as $depreciation) {
$actions = '<a href="'.route('update/depreciations', $depreciation->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/depreciations', $depreciation->id).'" data-content="'.Lang::get('admin/depreciations/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($depreciation->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
$rows[] = array(
'id' => $depreciation->id,
'name' => $depreciation->name,
'months' => $depreciation->months,
'actions' => $actions
);
}
$data = array('total' => $depreciationsCount, 'rows' => $rows);
return $data;
}
}
+108 -27
View File
@@ -22,9 +22,6 @@ class GroupsController extends AdminController
*/
public function getIndex()
{
// Grab all the groups
$groups = Sentry::getGroupProvider()->createModel()->paginate();
// Show the page
return View::make('backend/groups/index', compact('groups'));
}
@@ -81,7 +78,7 @@ class GroupsController extends AdminController
// Was the group created?
if ($group = Sentry::getGroupProvider()->create($inputs)) {
// Redirect to the new group page
return Redirect::route('update/group', $group->id)->with('success', Lang::get('admin/groups/message.success.create'));
return Redirect::route('groups')->with('success', Lang::get('admin/groups/message.success.create'));
}
// Redirect to the new group page
@@ -161,21 +158,27 @@ class GroupsController extends AdminController
return Redirect::back()->withInput()->withErrors($validator);
}
try {
// Update the group data
$group->name = Input::get('name');
$group->permissions = Input::get('permissions');
if (!Config::get('app.lock_passwords')) {
// Was the group updated?
if ($group->save()) {
// Redirect to the group page
return Redirect::route('update/group', $id)->with('success', Lang::get('admin/groups/message.success.update'));
} else {
// Redirect to the group page
return Redirect::route('update/group', $id)->with('error', Lang::get('admin/groups/message.error.update'));
try {
// Update the group data
$group->name = Input::get('name');
$group->permissions = Input::get('permissions');
// Was the group updated?
if ($group->save()) {
// Redirect to the group page
return Redirect::route('update/group', $id)->with('success', Lang::get('admin/groups/message.success.update'));
} else {
// Redirect to the group page
return Redirect::route('update/group', $id)->with('error', Lang::get('admin/groups/message.error.update'));
}
} catch (NameRequiredException $e) {
$error = Lang::get('admin/group/message.group_name_required');
}
} catch (NameRequiredException $e) {
$error = Lang::get('admin/group/message.group_name_required');
} else {
return Redirect::route('update/group', $id)->withInput()->with('error', 'Denied! Editing groups is not allowed in the demo.');
}
// Redirect to the group page
@@ -190,19 +193,97 @@ class GroupsController extends AdminController
*/
public function getDelete($id = null)
{
try {
// Get group information
$group = Sentry::getGroupProvider()->findById($id);
if (!Config::get('app.lock_passwords')) {
try {
// Get group information
$group = Sentry::getGroupProvider()->findById($id);
// Delete the group
$group->delete();
// Delete the group
$group->delete();
// Redirect to the group management page
return Redirect::route('groups')->with('success', Lang::get('admin/groups/message.success.delete'));
} catch (GroupNotFoundException $e) {
// Redirect to the group management page
return Redirect::route('groups')->with('error', Lang::get('admin/groups/message.group_not_found', compact('id')));
// Redirect to the group management page
return Redirect::route('groups')->with('success', Lang::get('admin/groups/message.success.delete'));
} catch (GroupNotFoundException $e) {
// Redirect to the group management page
return Redirect::route('groups')->with('error', Lang::get('admin/groups/message.group_not_found', compact('id')));
}
} else {
return Redirect::route('groups')->with('error', Lang::get('general.feature_disabled'));
}
}
public function getDatatable($status = null)
{
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
if (Input::get('sort')=='name') {
$sort = 'first_name';
} else {
$sort = e(Input::get('sort'));
}
// Grab all the groups
$groups = Sentry::getGroupProvider()->createModel();
//$users = Company::scopeCompanyables($users);
if (Input::has('search')) {
$groups = $users->TextSearch(Input::get('search'));
}
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$allowed_columns =
[
'name','created_at'
];
$sort = in_array($sort, $allowed_columns) ? $sort : 'name';
$groups = $groups->orderBy($sort, $order);
$groupsCount = $groups->count();
$groups = $groups->skip($offset)->take($limit)->get();
$rows = array();
foreach ($groups as $group)
{
$group_names = '';
$inout = '';
$actions = '<nobr>';
$actions .= '<a href="' . route('update/group', $group->id) . '" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> ';
if (!Config::get('app.lock_passwords')) {
$actions .= '<a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="' . route('delete/group', $group->id) . '" data-content="'.Lang::get('admin/groups/message.delete.confirm').'" data-title="Delete ' . htmlspecialchars($group->name) . '?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a> ';
} else {
$actions .= ' <span class="btn delete-asset btn-danger btn-sm disabled"><i class="fa fa-trash icon-white"></i></span>';
}
$actions .= '</nobr>';
$rows[] = array(
'id' => $group->id,
'name' => $group->name,
'users' => $group->users->count(),
'created_at' => $group->created_at->format('Y-m-d H:i:s'),
'actions' => ($actions) ? $actions : '',
);
}
$data = array('total'=>$groupsCount, 'rows'=>$rows);
return $data;
}
}
+418 -33
View File
@@ -12,13 +12,18 @@ use DB;
use Redirect;
use LicenseSeat;
use Depreciation;
use Company;
use Setting;
use Sentry;
use Str;
use Supplier;
use Validator;
use View;
use Response;
use Datatable;
use Slack;
use Config;
use Session;
class LicensesController extends AdminController
{
@@ -33,11 +38,8 @@ class LicensesController extends AdminController
public function getIndex()
{
// Grab all the licenses
$licenses = License::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/licenses/index', compact('licenses'));
return View::make('backend/licenses/index');
}
@@ -54,11 +56,14 @@ class LicensesController extends AdminController
$depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id');
$supplier_list = array('' => 'Select Supplier') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
$maintained_list = array('' => 'Maintained', '1' => 'Yes', '0' => 'No');
$company_list = Company::getSelectList();
return View::make('backend/licenses/edit')
->with('license_options',$license_options)
->with('depreciation_list',$depreciation_list)
->with('supplier_list',$supplier_list)
->with('maintained_list',$maintained_list)
->with('company_list', $company_list)
->with('license',new License);
}
@@ -94,6 +99,24 @@ class LicensesController extends AdminController
$license->supplier_id = e(Input::get('supplier_id'));
}
if ( e(Input::get('maintained')) == '') {
$license->maintained = 0;
} else {
$license->maintained = e(Input::get('maintained'));
}
if ( e(Input::get('reassignable')) == '') {
$license->reassignable = 0;
} else {
$license->reassignable = e(Input::get('reassignable'));
}
if ( e(Input::get('purchase_order')) == '') {
$license->purchase_order = '';
} else {
$license->purchase_order = e(Input::get('purchase_order'));
}
// Save the license data
$license->name = e(Input::get('name'));
$license->serial = e(Input::get('serial'));
@@ -104,10 +127,9 @@ class LicensesController extends AdminController
$license->seats = e(Input::get('seats'));
$license->purchase_date = e(Input::get('purchase_date'));
$license->purchase_order = e(Input::get('purchase_order'));
//$license->purchase_cost = e(Input::get('purchase_cost'));
$license->depreciation_id = e(Input::get('depreciation_id'));
$license->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$license->expiration_date = e(Input::get('expiration_date'));
//$license->asset_id = e(Input::get('asset_id'));
$license->user_id = Sentry::getId();
if (($license->purchase_date == "") || ($license->purchase_date == "0000-00-00")) {
@@ -124,13 +146,14 @@ class LicensesController extends AdminController
// Was the license created?
if($license->save()) {
$insertedId = $license->id;
// Save the license seat data
for ($x=0; $x<$license->seats; $x++) {
$license_seat = new LicenseSeat();
$license_seat->license_id = $insertedId;
$license_seat->user_id = Sentry::getId();
$license_seat->assigned_to = 0;
$license_seat->assigned_to = NULL;
$license_seat->notes = NULL;
$license_seat->save();
}
@@ -163,6 +186,9 @@ class LicensesController extends AdminController
// Redirect to the blogs management page
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
if ($license->purchase_date == "0000-00-00") {
$license->purchase_date = NULL;
@@ -177,10 +203,13 @@ class LicensesController extends AdminController
$depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id');
$supplier_list = array('' => 'Select Supplier') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
$maintained_list = array('' => 'Maintained', '1' => 'Yes', '0' => 'No');
$company_list = Company::getSelectList();
return View::make('backend/licenses/edit', compact('license'))
->with('license_options',$license_options)
->with('depreciation_list',$depreciation_list)
->with('supplier_list',$supplier_list)
->with('company_list', $company_list)
->with('maintained_list',$maintained_list);
}
@@ -198,6 +227,9 @@ class LicensesController extends AdminController
// Redirect to the blogs management page
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
// get the POST data
@@ -216,8 +248,10 @@ class LicensesController extends AdminController
$license->notes = e(Input::get('notes'));
$license->order_number = e(Input::get('order_number'));
$license->depreciation_id = e(Input::get('depreciation_id'));
$license->company_id = Company::getIdForCurrentUser(Input::get('company_id'));
$license->purchase_order = e(Input::get('purchase_order'));
$license->maintained = e(Input::get('maintained'));
$license->reassignable = e(Input::get('reassignable'));
if ( e(Input::get('supplier_id')) == '') {
$license->supplier_id = NULL;
@@ -252,6 +286,24 @@ class LicensesController extends AdminController
//$license->purchase_cost = e(Input::get('purchase_cost'));
}
if ( e(Input::get('maintained')) == '') {
$license->maintained = 0;
} else {
$license->maintained = e(Input::get('maintained'));
}
if ( e(Input::get('reassignable')) == '') {
$license->reassignable = 0;
} else {
$license->reassignable = e(Input::get('reassignable'));
}
if ( e(Input::get('purchase_order')) == '') {
$license->purchase_order = '';
} else {
$license->purchase_order = e(Input::get('purchase_order'));
}
//Are we changing the total number of seats?
if( $license->seats != e(Input::get('seats'))) {
@@ -292,7 +344,7 @@ class LicensesController extends AdminController
$license_seat = new LicenseSeat();
$license_seat->license_id = $license->id;
$license_seat->user_id = Sentry::getId();
$license_seat->assigned_to = 0;
$license_seat->assigned_to = NULL;
$license_seat->notes = NULL;
$license_seat->save();
}
@@ -337,6 +389,9 @@ class LicensesController extends AdminController
// Redirect to the license management page
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
if (($license->assignedcount()) && ($license->assignedcount() > 0)) {
@@ -346,11 +401,17 @@ class LicensesController extends AdminController
} else {
// Delete the license and the associated license seats
DB::table('license_seats')
->where('id', $license->id)
->update(array('assigned_to' => NULL,'asset_id' => NULL));
$licenseseats = $license->licenseseats();
$licenseseats->delete();
$license->delete();
// Redirect to the licenses management page
return Redirect::to('admin/licenses')->with('success', Lang::get('admin/licenses/message.delete.success'));
}
@@ -369,15 +430,20 @@ class LicensesController extends AdminController
// Redirect to the asset management page with error
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
else if (!Company::isCurrentUserHasAccess($licenseseat->license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
// Get the dropdown of users and then pass it to the checkout view
$users_list = array('' => 'Select a User') + DB::table('users')->select(DB::raw('concat (first_name," ",last_name) as full_name, id'))->whereNull('deleted_at')->lists('full_name', 'id');
$users_list = array('' => 'Select a User') + DB::table('users')->select(DB::raw('concat(last_name,", ",first_name," (",username,")") as full_name, id'))->whereNull('deleted_at')->orderBy('last_name', 'asc')->orderBy('first_name', 'asc')->lists('full_name', 'id');
// Left join to get a list of assets and some other helpful info
$asset = DB::table('assets')
->leftJoin('users', 'users.id', '=', 'assets.assigned_to')
->select('assets.id', 'name', 'first_name', 'last_name','asset_tag',
DB::raw('concat (first_name," ",last_name) as full_name, assets.id as id'))
->leftJoin('models', 'assets.model_id', '=', 'models.id')
->select('assets.id', 'assets.name', 'first_name', 'last_name','asset_tag',
DB::raw('concat(first_name," ",last_name) as full_name, assets.id as id, models.name as modelname'))
->whereNull('assets.deleted_at')
->get();
@@ -388,9 +454,9 @@ class LicensesController extends AdminController
for ($x=0; $x<count($asset_array); $x++) {
if ($asset_array[$x]['full_name']!='') {
$full_name = ' ('.$asset_array[$x]['full_name'].')';
$full_name = ' ('.$asset_array[$x]['full_name'].') '.$asset_array[$x]['modelname'];
} else {
$full_name = ' (Unassigned)';
$full_name = ' (Unassigned) '.$asset_array[$x]['modelname'];
}
$asset_element[$asset_array[$x]['id']] = $asset_array[$x]['asset_tag'].' - '.$asset_array[$x]['name'].$full_name;
@@ -408,9 +474,14 @@ class LicensesController extends AdminController
public function postCheckout($seatId)
{
$licenseseat = LicenseSeat::find($seatId);
$assigned_to = e(Input::get('assigned_to'));
$asset_id = e(Input::get('asset_id'));
$user = Sentry::getUser();
if (!Company::isCurrentUserHasAccess($licenseseat->license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
// Declare the rules for the form validation
$rules = array(
@@ -452,13 +523,13 @@ class LicensesController extends AdminController
// Check if the asset exists
if (is_null($licenseseat = LicenseSeat::find($seatId))) {
// Check if the asset exists
if (is_null($licenseseat)) {
// Redirect to the asset management page with error
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
if ( e(Input::get('asset_id')) == '') {
if (Input::get('asset_id') == '') {
$licenseseat->asset_id = NULL;
} else {
$licenseseat->asset_id = e(Input::get('asset_id'));
@@ -481,15 +552,59 @@ class LicensesController extends AdminController
$logaction->asset_type = 'software';
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('note'));
$logaction->asset_id = $licenseseat->license_id;
$license = License::find($licenseseat->license_id);
$settings = Setting::getSettings();
// Update the asset data
if ( e(Input::get('assigned_to')) == '') {
$logaction->checkedout_to = NULL;
$logaction->checkedout_to = NULL;
$slack_msg = strtoupper($logaction->asset_type).' license <'.Config::get('app.url').'/admin/licenses/'.$license->id.'/view'.'|'.$license->name.'> checked out to <'.Config::get('app.url').'/hardware/'.$is_asset_id->id.'/view|'.$is_asset_id->showAssetName().'> by <'.Config::get('app.url').'/admin/users/'.$user->id.'/view'.'|'.$user->fullName().'>.';
} else {
$logaction->checkedout_to = e(Input::get('assigned_to'));
$logaction->checkedout_to = e(Input::get('assigned_to'));
$slack_msg = strtoupper($logaction->asset_type).' license <'.Config::get('app.url').'/admin/licenses/'.$license->id.'/view'.'|'.$license->name.'> checked out to <'.Config::get('app.url').'/admin/users/'.$is_assigned_to->id.'/view|'.$is_assigned_to->fullName().'> by <'.Config::get('app.url').'/admin/users/'.$user->id.'/view'.'|'.$user->fullName().'>.';
}
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'Checked Out:',
'value' => $slack_msg
],
[
'title' => 'Note:',
'value' => e($logaction->note)
],
]
])->send('License Checked Out');
} catch (Exception $e) {
}
}
$log = $logaction->logaction('checkout');
@@ -505,14 +620,17 @@ class LicensesController extends AdminController
/**
* Check the license back into inventory
**/
public function getCheckin($seatId)
public function getCheckin($seatId = null, $backto = null)
{
// Check if the asset exists
if (is_null($licenseseat = LicenseSeat::find($seatId))) {
// Redirect to the asset management page with error
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
return View::make('backend/licenses/checkin', compact('licenseseat'));
else if (!Company::isCurrentUserHasAccess($licenseseat->license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
return View::make('backend/licenses/checkin', compact('licenseseat'))->with('backto',$backto);
}
@@ -521,7 +639,7 @@ class LicensesController extends AdminController
/**
* Check in the item so that it can be checked out again to someone else
**/
public function postCheckin($seatId)
public function postCheckin($seatId = null, $backto = null)
{
// Check if the asset exists
if (is_null($licenseseat = LicenseSeat::find($seatId))) {
@@ -529,6 +647,18 @@ class LicensesController extends AdminController
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
$license = License::find($licenseseat->license_id);
if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
if(!$license->reassignable) {
// Not allowed to checkin
Session::flash('error', 'License not reassignable.');
return Redirect::back()->withInput();
}
// Declare the rules for the form validation
$rules = array(
'note' => 'alpha_space',
@@ -543,25 +673,70 @@ class LicensesController extends AdminController
// Ooops.. something went wrong
return Redirect::back()->withInput()->withErrors($validator);
}
$return_to = $licenseseat->assigned_to;
$logaction = new Actionlog();
$logaction->checkedout_to = $licenseseat->assigned_to;
// Update the asset data
$licenseseat->assigned_to = '0';
$licenseseat->assigned_to = NULL;
$licenseseat->asset_id = NULL;
$user = Sentry::getUser();
// Was the asset updated?
if($licenseseat->save()) {
$logaction->asset_id = NULL;
$logaction->asset_id = $licenseseat->license_id;
$logaction->location_id = NULL;
$logaction->asset_type = 'software';
$logaction->note = e(Input::get('note'));
$logaction->user_id = Sentry::getUser()->id;
$logaction->user_id = $user->id;
$settings = Setting::getSettings();
if ($settings->slack_endpoint) {
$slack_settings = [
'username' => $settings->botname,
'channel' => $settings->slack_channel,
'link_names' => true
];
$client = new \Maknz\Slack\Client($settings->slack_endpoint,$slack_settings);
try {
$client->attach([
'color' => 'good',
'fields' => [
[
'title' => 'Checked In:',
'value' => strtoupper($logaction->asset_type).' <'.Config::get('app.url').'/admin/licenses/'.$license->id.'/view'.'|'.$license->name.'> checked in by <'.Config::get('app.url').'/admin/users/'.$user->id.'/view'.'|'.$user->fullName().'>.'
],
[
'title' => 'Note:',
'value' => e($logaction->note)
],
]
])->send('License Checked In');
} catch (Exception $e) {
}
}
$log = $logaction->logaction('checkin from');
// Redirect to the license page
return Redirect::to("admin/licenses")->with('success', Lang::get('admin/licenses/message.checkin.success'));
if ($backto=='user') {
return Redirect::to("admin/users/".$return_to.'/view')->with('success', Lang::get('admin/licenses/message.checkin.success'));
} else {
return Redirect::to("admin/licenses/".$licenseseat->license_id."/view")->with('success', Lang::get('admin/licenses/message.checkin.success'));
}
}
// Redirect to the license page with error
@@ -571,7 +746,7 @@ class LicensesController extends AdminController
/**
* Get the asset information to present to the asset view page
*
* @param int $assetId
* @param int $licenseId
* @return View
**/
public function getView($licenseId = null)
@@ -579,6 +754,10 @@ class LicensesController extends AdminController
$license = License::find($licenseId);
if (isset($license->id)) {
if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
return View::make('backend/licenses/view', compact('license'));
} else {
// Prepare the error message
@@ -596,10 +775,14 @@ class LicensesController extends AdminController
// Redirect to the blogs management page
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.does_not_exist'));
}
else if (!Company::isCurrentUserHasAccess($license_to_clone)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
// Show the page
$license_options = array('0' => 'Top Level') + License::lists('name', 'id');
$maintained_list = array('' => 'Maintained', '1' => 'Yes', '0' => 'No');
$company_list = Company::getSelectList();
//clone the orig
$license = clone $license_to_clone;
$license->id = null;
@@ -608,7 +791,209 @@ class LicensesController extends AdminController
// Show the page
$depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id');
$supplier_list = array('' => 'Select Supplier') + Supplier::orderBy('name', 'asc')->lists('name', 'id');
return View::make('backend/licenses/edit')->with('license_options',$license_options)->with('depreciation_list',$depreciation_list)->with('supplier_list',$supplier_list)->with('license',$license);
return View::make('backend/licenses/edit')
->with('license_options',$license_options)
->with('depreciation_list',$depreciation_list)
->with('supplier_list',$supplier_list)
->with('license',$license)
->with('maintained_list',$maintained_list)
->with('company_list',$company_list);
}
/**
* Upload the file to the server
*
* @param int $licenseId
* @return View
**/
public function postUpload($licenseId = null)
{
$license = License::find($licenseId);
// the license is valid
$destinationPath = app_path().'/private_uploads';
if (isset($license->id)) {
if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
if (Input::hasFile('licensefile')) {
foreach(Input::file('licensefile') as $file) {
$rules = array(
'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar|max:2000'
);
$validator = Validator::make(array('licensefile'=> $file), $rules);
if($validator->passes()){
$extension = $file->getClientOriginalExtension();
$filename = 'license-'.$license->id.'-'.str_random(8);
$filename .= '-'.Str::slug($file->getClientOriginalName()).'.'.$extension;
$upload_success = $file->move($destinationPath, $filename);
//Log the deletion of seats to the log
$logaction = new Actionlog();
$logaction->asset_id = $license->id;
$logaction->asset_type = 'software';
$logaction->user_id = Sentry::getUser()->id;
$logaction->note = e(Input::get('notes'));
$logaction->checkedout_to = NULL;
$logaction->created_at = date("Y-m-d h:i:s");
$logaction->filename = $filename;
$log = $logaction->logaction('uploaded');
} else {
return Redirect::back()->with('error', Lang::get('admin/licenses/message.upload.invalidfiles'));
}
}
if ($upload_success) {
return Redirect::back()->with('success', Lang::get('admin/licenses/message.upload.success'));
} else {
return Redirect::back()->with('success', Lang::get('admin/licenses/message.upload.error'));
}
} else {
return Redirect::back()->with('error', Lang::get('admin/licenses/message.upload.nofiles'));
}
} else {
// Prepare the error message
$error = Lang::get('admin/licenses/message.does_not_exist', compact('id'));
// Redirect to the licence management page
return Redirect::route('licenses')->with('error', $error);
}
}
/**
* Delete the associated file
*
* @param int $licenseId
* @param int $fileId
* @return View
**/
public function getDeleteFile($licenseId = null, $fileId = null)
{
$license = License::find($licenseId);
$destinationPath = app_path().'/private_uploads';
// the license is valid
if (isset($license->id)) {
if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
$log = Actionlog::find($fileId);
$full_filename = $destinationPath.'/'.$log->filename;
if (file_exists($full_filename)) {
unlink($destinationPath.'/'.$log->filename);
}
$log->delete();
return Redirect::back()->with('success', Lang::get('admin/licenses/message.deletefile.success'));
} else {
// Prepare the error message
$error = Lang::get('admin/licenses/message.does_not_exist', compact('id'));
// Redirect to the licence management page
return Redirect::route('licenses')->with('error', $error);
}
}
/**
* Display/download the uploaded file
*
* @param int $licenseId
* @param int $fileId
* @return View
**/
public function displayFile($licenseId = null, $fileId = null)
{
$license = License::find($licenseId);
// the license is valid
if (isset($license->id)) {
if (!Company::isCurrentUserHasAccess($license)) {
return Redirect::to('admin/licenses')->with('error', Lang::get('general.insufficient_permissions'));
}
$log = Actionlog::find($fileId);
$file = $log->get_src();
return Response::download($file);
} else {
// Prepare the error message
$error = Lang::get('admin/licenses/message.does_not_exist', compact('id'));
// Redirect to the licence management page
return Redirect::route('licenses')->with('error', $error);
}
}
public function getDatatable() {
$licenses = License::select('id','name','serial','purchase_date','seats', 'company_id')->with('company');
if (Input::has('search')) {
$licenses = $licenses->TextSearch(Input::get('search'));
}
$allowed_columns = ['id','name'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$licenses = $licenses->orderBy($sort, $order);
$licenseCount = $licenses->count();
$licenses = $licenses->skip(Input::get('offset'))->take(Input::get('limit'))->get();
$rows = array();
foreach ($licenses as $license) {
$actions = '<span style="white-space: nowrap;"><a href="'.route('freecheckout/license', $license->id).'" class="btn btn-primary btn-sm" style="margin-right:5px;" '.(($license->remaincount() > 0) ? '' : 'disabled').'>'.Lang::get('general.checkout').'</a> <a href="'.route('clone/license', $license->id).'" class="btn btn-info btn-sm" style="margin-right:5px;" title="Clone asset"><i class="fa fa-files-o"></i></a><a href="'.route('update/license', $license->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/license', $license->id).'" data-content="'.Lang::get('admin/licenses/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($license->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></span>';
$rows[] = array(
'id' => $license->id,
'name' => link_to('/admin/licenses/'.$license->id.'/view', $license->name),
'serial' => link_to('/admin/licenses/'.$license->id.'/view', mb_strimwidth($license->serial, 0, 50, "...")),
'totalSeats' => $license->totalSeatsByLicenseID(),
'remaining' => $license->remaincount(),
'purchase_date' => ($license->purchase_date) ? $license->purchase_date : '',
'actions' => $actions,
'companyName' => is_null($license->company) ? '' : e($license->company->name)
);
}
$data = array('total' => $licenseCount, 'rows' => $rows);
return $data;
}
public function getFreeLicense($licenseId) {
// Check if the asset exists
if (is_null($license = License::find($licenseId))) {
// Redirect to the asset management page with error
return Redirect::to('admin/licenses')->with('error', Lang::get('admin/licenses/message.not_found'));
}
$seatId = $license->freeSeat($licenseId);
return Redirect::to('admin/licenses/'.$seatId.'/checkout');
}
}
+242 -19
View File
@@ -12,6 +12,8 @@ use Str;
use Validator;
use View;
use Symfony\Component\HttpFoundation\JsonResponse;
class LocationsController extends AdminController
{
/**
@@ -23,7 +25,7 @@ class LocationsController extends AdminController
public function getIndex()
{
// Grab all the locations
$locations = Location::orderBy('created_at', 'DESC')->get();
$locations = Location::orderBy('created_at', 'DESC')->with('parent','assets','assignedassets')->get();
// Show the page
return View::make('backend/locations/index', compact('locations'));
@@ -37,9 +39,15 @@ class LocationsController extends AdminController
*/
public function getCreate()
{
// Show the page
$location_options = array('0' => 'Top Level') + Location::lists('name', 'id');
return View::make('backend/locations/edit')->with('location_options',$location_options)->with('location',new Location);
$locations = Location::orderBy('name','ASC')->get();
$location_options_array = Location::getLocationHierarchy($locations);
$location_options = Location::flattenLocationsArray($location_options_array);
$location_options = array('' => 'Top Level') + $location_options;
return View::make('backend/locations/edit')
->with('location_options',$location_options)
->with('location',new Location);
}
@@ -62,12 +70,18 @@ class LocationsController extends AdminController
// Save the location data
$location->name = e(Input::get('name'));
if (Input::get('parent_id')=='') {
$location->parent_id = null;
} else {
$location->parent_id = e(Input::get('parent_id'));
}
$location->currency = Input::get('currency','$');
$location->address = e(Input::get('address'));
$location->address2 = e(Input::get('address2'));
$location->city = e(Input::get('city'));
$location->state = e(Input::get('state'));
$location->country = e(Input::get('country'));
$location->zip = e(Input::get('zip'));
$location->zip = e(Input::get('zip'));
$location->user_id = Sentry::getId();
// Was the asset created?
@@ -86,6 +100,53 @@ class LocationsController extends AdminController
}
public function store()
{
$new = Input::all();
$new['currency']=Setting::first()->default_currency;
// create a new location instance
$location = new Location();
// attempt validation
if ($location->validate($new)) {
// Save the location data
$location->name = e(Input::get('name'));
// if (Input::get('parent_id')=='') {
// $location->parent_id = null;
// } else {
// $location->parent_id = e(Input::get('parent_id'));
// }
$location->currency = Setting::first()->default_currency; //e(Input::get('currency'));
$location->address = ''; //e(Input::get('address'));
// $location->address2 = e(Input::get('address2'));
$location->city = e(Input::get('city'));
$location->state = '';//e(Input::get('state'));
$location->country = e(Input::get('country'));
// $location->zip = e(Input::get('zip'));
$location->user_id = Sentry::getId();
// Was the asset created?
if($location->save()) {
// Redirect to the new location page
return JsonResponse::create($location);
//return Redirect::to("admin/settings/locations")->with('success', Lang::get('admin/locations/message.create.success'));
} else {
return JsonResponse::create(["error" => "Couldn't save Location"],500);
}
} else {
// failure
$errors = $location->errors();
return JsonResponse::create(["error" => "Failed validation: ".print_r($errors->all('<li>:message</li>'),true)],500);
}
// Redirect to the location create page
/** @noinspection PhpUnreachableStatementInspection Known to be unreachable but kept following discussion: https://github.com/snipe/snipe-it/pull/1423 */
return Redirect::to('admin/settings/locations/create')->with('error', Lang::get('admin/locations/message.create.error'));
}
/**
* Location update.
@@ -97,14 +158,15 @@ class LocationsController extends AdminController
{
// Check if the location exists
if (is_null($location = Location::find($locationId))) {
// Redirect to the blogs management page
return Redirect::to('admin/settings/locations')->with('error', Lang::get('admin/locations/message.does_not_exist'));
}
// Show the page
//$location_options = array('' => 'Top Level') + Location::lists('name', 'id');
$locations = Location::orderBy('name','ASC')->get();
$location_options_array = Location::getLocationHierarchy($locations);
$location_options = Location::flattenLocationsArray($location_options_array);
$location_options = array('' => 'Top Level') + $location_options;
$location_options = array('' => 'Top Level') + DB::table('locations')->where('id', '!=', $locationId)->lists('name', 'id');
return View::make('backend/locations/edit', compact('location'))->with('location_options',$location_options);
}
@@ -128,27 +190,33 @@ class LocationsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
// Update the location data
$location->name = e(Input::get('name'));
$location->name = e(Input::get('name'));
if (Input::get('parent_id')=='') {
$location->parent_id = null;
} else {
$location->parent_id = e(Input::get('parent_id',''));
}
$location->currency = Input::get('currency','$');
$location->address = e(Input::get('address'));
$location->address2 = e(Input::get('address2'));
$location->city = e(Input::get('city'));
$location->state = e(Input::get('state'));
$location->country = e(Input::get('country'));
$location->zip = e(Input::get('zip'));
$location->country = e(Input::get('country'));
$location->zip = e(Input::get('zip'));
// Was the asset created?
if($location->save()) {
// Redirect to the saved location page
return Redirect::to("admin/settings/locations/")->with('success', Lang::get('admin/locations/message.update.success'));
}
}
}
// Redirect to the location management page
return Redirect::to("admin/settings/locations/$locationId/edit")->with('error', Lang::get('admin/locations/message.update.error'));
@@ -170,15 +238,16 @@ class LocationsController extends AdminController
}
if ($location->has_users() > 0) {
// Redirect to the asset management page
if ($location->users->count() > 0) {
return Redirect::to('admin/settings/locations')->with('error', Lang::get('admin/locations/message.assoc_users'));
} elseif ($location->childLocations->count() > 0) {
return Redirect::to('admin/settings/locations')->with('error', Lang::get('admin/locations/message.assoc_child_loc'));
} elseif ($location->assets->count() > 0) {
return Redirect::to('admin/settings/locations')->with('error', Lang::get('admin/locations/message.assoc_assets'));
} elseif ($location->assignedassets->count() > 0) {
return Redirect::to('admin/settings/locations')->with('error', Lang::get('admin/locations/message.assoc_assets'));
} else {
$location->delete();
// Redirect to the locations management page
return Redirect::to('admin/settings/locations')->with('success', Lang::get('admin/locations/message.delete.success'));
}
@@ -187,5 +256,159 @@ class LocationsController extends AdminController
}
/**
* Get the location page detail page
*
* @param int $locationID
* @return View
**/
public function getView($locationId = null)
{
$location = Location::find($locationId);
if (isset($location->id)) {
return View::make('backend/locations/view', compact('location'));
} else {
// Prepare the error message
$error = Lang::get('admin/locations/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('locations')->with('error', $error);
}
}
/**
* Get the locations API information to present to the location view page
*
* @param int $locationID
* @return JSON
**/
public function getDatatable()
{
$locations = Location::select(array('locations.id','locations.name','locations.address','locations.address2','locations.city','locations.state','locations.zip','locations.country','locations.parent_id','locations.currency'))->with('assets');
if (Input::has('search')) {
$locations = $locations->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
switch (Input::get('sort'))
{
case 'parent':
$locations = $locations->OrderParent($order);
break;
default:
$allowed_columns = ['id','name','address','city','state','country','currency'];
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$locations = $locations->orderBy($sort, $order);
break;
}
$locationsCount = $locations->count();
$locations = $locations->skip($offset)->take($limit)->get();
$rows = array();
foreach($locations as $location) {
$actions = '<nobr><a href="'.route('update/location', $location->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/location', $location->id).'" data-content="'.Lang::get('admin/locations/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($location->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></nobr>';
$rows[] = array(
'id' => $location->id,
'name' => link_to('admin/settings/locations/'.$location->id.'/view', $location->name),
'parent' => ($location->parent) ? $location->parent->name : '',
// 'assets' => ($location->assets->count() + $location->assignedassets->count()),
'assets_default' => $location->assignedassets->count(),
'assets_checkedout' => $location->assets->count(),
'address' => ($location->address) ? $location->address: '',
'city' => $location->city,
'state' => $location->state,
'country' => $location->country,
'currency' => $location->currency,
'actions' => $actions
);
}
$data = array('total' => $locationsCount, 'rows' => $rows);
return $data;
}
/**
* Get the location user listing information to present to the location details page
*
* @param int $locationID
* @return JSON
**/
public function getDataViewUsers($locationID)
{
$location = Location::find($locationID);
$location_users = $location->users;
$count = $location_users->count();
$rows = array();
foreach ($location_users as $user) {
$rows[] = array(
'name' => link_to('/admin/users/'.$user->id.'/view', $user->fullName())
);
}
$data = array('total' => $count, 'rows' => $rows);
return $data;
}
/**
* Get the location asset information to present to the location details page
*
* @param int $locationID
* @return JSON
**/
public function getDataViewAssets($locationID)
{
$location = Location::find($locationID);
$count = $location->assets->count();
$rows = array();
foreach ($location->assets as $asset) {
$rows[] = array(
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
'asset_tag' => $asset->asset_tag,
'serial' => $asset->serial,
'model' => $asset->model->name,
);
}
$data = array('total' => $count, 'rows' => $rows);
return $data;
}
}
@@ -1,6 +1,7 @@
<?php namespace Controllers\Admin;
use AdminController;
use Company;
use Input;
use Lang;
use Manufacturer;
@@ -20,9 +21,6 @@ class ManufacturersController extends AdminController
*/
public function getIndex()
{
// Grab all the manufacturers
$manufacturers = Manufacturer::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/manufacturers/index', compact('manufacturers'));
}
@@ -113,7 +111,7 @@ class ManufacturersController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
@@ -126,7 +124,7 @@ class ManufacturersController extends AdminController
// Redirect to the new manufacturer page
return Redirect::to("admin/settings/manufacturers")->with('success', Lang::get('admin/manufacturers/message.update.success'));
}
}
}
// Redirect to the manufacturer management page
return Redirect::to("admin/settings/manufacturers/$manufacturerId/edit")->with('error', Lang::get('admin/manufacturers/message.update.error'));
@@ -169,5 +167,147 @@ class ManufacturersController extends AdminController
/**
* Get the asset information to present to the category view page
*
* @param int $assetId
* @return View
**/
public function getView($manufacturerID = null)
{
$manufacturer = Manufacturer::find($manufacturerID);
if (isset($manufacturer->id)) {
return View::make('backend/manufacturers/view', compact('manufacturer'));
} else {
// Prepare the error message
$error = Lang::get('admin/manufacturers/message.does_not_exist', compact('id'));
// Redirect to the user management page
return Redirect::route('manufacturers')->with('error', $error);
}
}
public function getDatatable()
{
$manufacturers = Manufacturer::select(array('id','name'))->with('assets')
->whereNull('deleted_at');
if (Input::has('search')) {
$manufacturers = $manufacturers->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$manufacturers->orderBy($sort, $order);
$manufacturersCount = $manufacturers->count();
$manufacturers = $manufacturers->skip($offset)->take($limit)->get();
$rows = array();
foreach($manufacturers as $manufacturer) {
$actions = '<a href="'.route('update/manufacturer', $manufacturer->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/manufacturer', $manufacturer->id).'" data-content="'.Lang::get('admin/manufacturers/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($manufacturer->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
$rows[] = array(
'id' => $manufacturer->id,
'name' => link_to('admin/settings/manufacturers/'.$manufacturer->id.'/view', $manufacturer->name),
'assets' => $manufacturer->assetscount(),
'actions' => $actions
);
}
$data = array('total' => $manufacturersCount, 'rows' => $rows);
return $data;
}
public function getDataView($manufacturerID) {
$manufacturer = Manufacturer::with('assets.company')->find($manufacturerID);
$manufacturer_assets = $manufacturer->assets;
if (Input::has('search')) {
$manufacturer_assets = $manufacturer_assets->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$allowed_columns = ['id','name','serial','asset_tag'];
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$count = $manufacturer_assets->count();
$rows = array();
foreach ($manufacturer_assets as $asset) {
$actions = '';
if ($asset->deleted_at=='') {
$actions = '<div style=" white-space: nowrap;"><a href="'.route('clone/hardware', $asset->id).'" class="btn btn-info btn-sm" title="Clone asset"><i class="fa fa-files-o"></i></a> <a href="'.route('update/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-pencil icon-white"></i></a> <a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/hardware', $asset->id).'" data-content="'.Lang::get('admin/hardware/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($asset->asset_tag).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
} elseif ($asset->deleted_at!='') {
$actions = '<a href="'.route('restore/hardware', $asset->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
}
if ($asset->assetstatus) {
if ($asset->assetstatus->deployable != 0) {
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
$inout = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
} else {
$inout = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
}
}
}
$row = array(
'id' => $asset->id,
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
'model' => $asset->model->name,
'asset_tag' => $asset->asset_tag,
'serial' => $asset->serial,
'assigned_to' => ($asset->assigneduser) ? link_to('/admin/users/'.$asset->assigneduser->id.'/view', $asset->assigneduser->fullName()): '',
'actions' => $actions,
'companyName' => Company::getName($asset),
);
if (isset($inout)) { $row['change'] = $inout; }
$rows[] = $row;
}
$data = array('total' => $count, 'rows' => $rows);
return $data;
}
}
+279 -35
View File
@@ -14,6 +14,13 @@ use Manufacturer;
use Str;
use Validator;
use View;
use Datatable;
use Asset;
use Company;
use Config;
//use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
class ModelsController extends AdminController
{
@@ -24,11 +31,8 @@ class ModelsController extends AdminController
*/
public function getIndex()
{
// Grab all the models
$models = Model::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/models/index', compact('models'));
return View::make('backend/models/index');
}
/**
@@ -39,9 +43,9 @@ class ModelsController extends AdminController
public function getCreate()
{
// Show the page
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->whereNull('deleted_at')->lists('name', 'id');
$depreciation_list = depreciationList();
$manufacturer_list = manufacturerList();
$category_list = categoryList();
$view = View::make('backend/models/edit');
$view->with('category_list',$category_list);
$view->with('depreciation_list',$depreciation_list);
@@ -59,22 +63,48 @@ class ModelsController extends AdminController
public function postCreate()
{
// get the POST data
$new = Input::all();
// Create a new manufacturer
$model = new Model;
$validator = Validator::make(
// Validator data goes here
array(
'unique_fields' => array(Input::get('name'), Input::get('modelno'), Input::get('manufacturer_id'))
),
// Validator rules go here
array(
'unique_fields' => 'unique_multiple:models,name,modelno,manufacturer_id'
)
);
// attempt validation
if ($model->validate($new)) {
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->with('error', Lang::get('admin/models/message.create.duplicate_set'));
}
$validator = Validator::make(Input::all(), $model->validationRules());
// attempt validation
if ($validator->fails())
{
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
if ( e(Input::get('depreciation_id')) == '') {
$model->depreciation_id = 0;
} else {
$model->depreciation_id = e(Input::get('depreciation_id'));
}
if ( e(Input::get('eol')) == '') {
if ( e(Input::get('eol')) == '') {
$model->eol = 0;
} else {
$model->eol = e(Input::get('eol'));
@@ -83,11 +113,15 @@ class ModelsController extends AdminController
// Save the model data
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
//$model->depreciation_id = e(Input::get('depreciation_id'));
$model->manufacturer_id = e(Input::get('manufacturer_id'));
$model->category_id = e(Input::get('category_id'));
$model->user_id = Sentry::getId();
//$model->eol = e(Input::get('eol'));
if (Input::get('custom_fieldset')!='') {
$model->fieldset_id = e(Input::get('custom_fieldset'));
}
//$model->show_mac_address = e(Input::get('show_mac_address', '0'));
if (Input::file('image')) {
$image = Input::file('image');
@@ -105,10 +139,6 @@ class ModelsController extends AdminController
// Redirect to the new model page
return Redirect::to("hardware/models")->with('success', Lang::get('admin/models/message.create.success'));
}
} else {
// failure
$errors = $model->errors();
return Redirect::back()->withInput()->withErrors($errors);
}
// Redirect to the model create page
@@ -116,6 +146,36 @@ class ModelsController extends AdminController
}
public function store()
{
//COPYPASTA!!!! FIXME
$model = new Model;
$settings=Input::all();
$settings['eol']=0;
//
$validator = Validator::make($settings, $model->validationRules());
if ($validator->fails())
{
// The given data did not pass validation
return JsonResponse::create(["error" => "Failed validation: ".print_r($validator->messages()->all('<li>:message</li>'),true)],500);
} else {
$model->name=e(Input::get('name'));
$model->manufacturer_id = e(Input::get('manufacturer_id'));
$model->category_id = e(Input::get('category_id'));
$model->modelno = e(Input::get('modelno'));
$model->user_id = Sentry::getUser()->id;
$model->eol=0;
if($model->save()) {
return JsonResponse::create($model);
} else {
return JsonResponse::create(["error" => "Couldn't save Model"],500);
}
}
}
/**
* Model update.
*
@@ -132,7 +192,7 @@ class ModelsController extends AdminController
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->whereNull('deleted_at')->lists('name', 'id');
$view = View::make('backend/models/edit', compact('model'));
$view->with('category_list',$category_list);
$view->with('depreciation_list',$depreciation_list);
@@ -160,18 +220,18 @@ class ModelsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
if ( e(Input::get('depreciation_id')) == '') {
$model->depreciation_id = 0;
} else {
$model->depreciation_id = e(Input::get('depreciation_id'));
}
if ( e(Input::get('eol')) == '') {
$model->eol = 0;
} else {
@@ -180,9 +240,14 @@ class ModelsController extends AdminController
// Update the model data
$model->name = e(Input::get('name'));
$model->modelno = e(Input::get('modelno'));
$model->modelno = e(Input::get('modelno'));
$model->manufacturer_id = e(Input::get('manufacturer_id'));
$model->category_id = e(Input::get('category_id'));
if (Input::get('custom_fieldset')=='') {
$model->fieldset_id = null;
} else {
$model->fieldset_id = e(Input::get('custom_fieldset'));
}
if (Input::file('image')) {
$image = Input::file('image');
@@ -198,13 +263,13 @@ class ModelsController extends AdminController
if (Input::get('image_delete') == 1 && Input::file('image') == "") {
$model->image = NULL;
}
// Was it created?
if($model->save()) {
// Redirect to the new model page
return Redirect::to("hardware/models")->with('success', Lang::get('admin/models/message.update.success'));
}
}
}
// Redirect to the model create page
return Redirect::to("hardware/models/$modelId/edit")->with('error', Lang::get('admin/models/message.update.error'));
@@ -238,16 +303,39 @@ class ModelsController extends AdminController
}
}
public function getRestore($modelId = null)
{
// Get user information
$model = Model::withTrashed()->find($modelId);
if (isset($model->id)) {
// Restore the model
$model->restore();
// Prepare the success message
$success = Lang::get('admin/models/message.restore.success');
// Redirect back
return Redirect::back()->with('success', $success);
} else {
return Redirect::back()->with('error', Lang::get('admin/models/message.not_found'));
}
}
/**
* Get the asset information to present to the model view page
* Get the model information to present to the model view page
*
* @param int $assetId
* @param int $modelId
* @return View
**/
public function getView($modelId = null)
{
$model = Model::find($modelId);
$model = Model::withTrashed()->find($modelId);
if (isset($model->id)) {
return View::make('backend/models/view', compact('model'));
@@ -261,18 +349,25 @@ class ModelsController extends AdminController
}
public function getClone($modelId = null)
/**
* Get the clone page to clone a model
*
* @param int $modelId
* @return View
**/
public function getClone($modelId = null)
{
// Check if the model exists
if (is_null($model_to_clone = Model::find($modelId))) {
// Redirect to the model management page
return Redirect::to('assets/models')->with('error', Lang::get('admin/models/message.does_not_exist'));
}
$model = clone $model_to_clone;
$model->id = null;
// Show the page
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id');
@@ -284,8 +379,157 @@ class ModelsController extends AdminController
$view->with('model',$model);
$view->with('clone_model',$model_to_clone);
return $view;
}
public function getCustomFields($modelId)
{
$model=Model::find($modelId);
return View::make("backend.models.custom_fields_form")->with("model",$model);
}
/**
* Get the JSON response for the bootstrap table list view
*
* @param string $status
* @return JSON
**/
public function getDatatable($status = null)
{
$models = Model::with('category','assets','depreciation');
switch ($status) {
case 'Deleted':
$models->withTrashed()->Deleted();
break;
}
if (Input::has('search')) {
$models = $models->TextSearch(Input::get('search'));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name','modelno'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$models = $models->orderBy($sort, $order);
$modelCount = $models->count();
$models = $models->skip($offset)->take($limit)->get();
$rows = array();
foreach ($models as $model) {
if ($model->deleted_at == '') {
$actions = '<div style=" white-space: nowrap;"><a href="'.route('update/model', $model->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/model', $model->id).'" data-content="'.Lang::get('admin/models/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($model->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a></div>';
} else {
$actions = '<a href="'.route('restore/model', $model->id).'" class="btn btn-warning btn-sm"><i class="fa fa-recycle icon-white"></i></a>';
}
$rows[] = array(
'id' => $model->id,
'manufacturer' => link_to('/admin/settings/manufacturers/'.$model->manufacturer->id.'/view', $model->manufacturer->name),
'name' => link_to('/hardware/models/'.$model->id.'/view', $model->name),
'image' => ($model->image!='') ? '<img src="'.Config::get('app.url').'/uploads/models/'.$model->image.'" height=50 width=50>' : '',
'modelnumber' => $model->modelno,
'numassets' => $model->assets->count(),
'depreciation' => (($model->depreciation)&&($model->depreciation->id > 0)) ? $model->depreciation->name.' ('.$model->depreciation->months.')' : Lang::get('general.no_depreciation'),
'category' => ($model->category) ? $model->category->name : '',
'eol' => ($model->eol) ? $model->eol.' '.Lang::get('general.months') : '',
'actions' => $actions
);
}
$data = array('total' => $modelCount, 'rows' => $rows);
return $data;
}
/**
* Get the asset information to present to the model view page
*
* @param int $modelID
* @return View
**/
public function getDataView($modelID)
{
$assets = Asset::where('model_id','=',$modelID)->withTrashed()->with('company');
if (Input::has('search')) {
$assets = $assets->TextSearch(Input::get('search'));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['name', 'serial','asset_tag'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$assets = $assets->orderBy($sort, $order);
$assetsCount = $assets->count();
$assets = $assets->skip($offset)->take($limit)->get();
$rows = array();
foreach ($assets as $asset) {
$actions = '';
if ($asset->assetstatus) {
if ($asset->assetstatus->deployable != 0) {
if (($asset->assigned_to !='') && ($asset->assigned_to > 0)) {
$actions = '<a href="'.route('checkin/hardware', $asset->id).'" class="btn btn-primary btn-sm">'.Lang::get('general.checkin').'</a>';
} else {
$actions = '<a href="'.route('checkout/hardware', $asset->id).'" class="btn btn-info btn-sm">'.Lang::get('general.checkout').'</a>';
}
}
}
$rows[] = array(
'id' => $asset->id,
'name' => link_to('/hardware/'.$asset->id.'/view', $asset->showAssetName()),
'asset_tag' => link_to('hardware/'.$asset->id.'/view', $asset->asset_tag),
'serial' => $asset->serial,
'assigned_to' => ($asset->assigned_to) ? link_to('/admin/users/'.$asset->assigned_to.'/view', $asset->assigneduser->fullName()) : '',
'actions' => $actions,
'companyName' => Company::getName($asset)
);
}
$data = array('total' => $assetsCount, 'rows' => $rows);
return $data;
}
}
+495 -188
View File
@@ -1,18 +1,79 @@
<?php namespace Controllers\Admin;
use Accessory;
use Actionlog;
use AdminController;
use Input;
use Lang;
use License;
use Asset;
use User;
use View;
use AssetMaintenance;
use Carbon\Carbon;
use Category;
use Company;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\View;
use Input;
use League\Csv\Reader;
use License;
use Location;
use Model;
use Redirect;
use Response;
use Setting;
use User;
class ReportsController extends AdminController
{
/**
* Show Report for Accessories
*
* @return View
*/
public function getAccessoryReport()
{
$accessories = Accessory::orderBy('created_at', 'DESC')->with('company')->get();
return View::make('backend/reports/accessories', compact('accessories'));
}
/**
* Export Accessories Report as CSV
*
* @return file download
*/
public function exportAccessoryReport()
{
$accessories = Accessory::orderBy('created_at', 'DESC')->get();
$rows = array();
$header = array(
Lang::get('admin/accessories/table.title'),
Lang::get('admin/accessories/general.accessory_category'),
Lang::get('admin/accessories/general.total'),
Lang::get('admin/accessories/general.remaining')
);
$header = array_map('trim', $header);
$rows[] = implode($header, ', ');
// Row per accessory
foreach ($accessories as $accessory) {
$row = array();
$row[] = $accessory->accessory_name;
$row[] = $accessory->accessory_category;
$row[] = $accessory->total;
$row[] = $accessory->remaining;
$rows[] = implode($row, ',');
}
$csv = implode($rows, "\n");
$response = Response::make($csv, 200);
$response->header('Content-Type', 'text/csv');
$response->header('Content-disposition', 'attachment;filename=report.csv');
return $response;
}
/**
* Show Asset Report
*
@@ -21,8 +82,12 @@ class ReportsController extends AdminController
public function getAssetsReport()
{
// Grab all the assets
$assets = Asset::with('model','assigneduser.userLoc','assetstatus','defaultLoc','assetlog','supplier','model.manufacturer')->orderBy('created_at', 'DESC')->get();
return View::make('backend/reports/asset', compact('assets'));
$assets = Asset::with( 'model', 'assigneduser.userLoc', 'assetstatus', 'defaultLoc', 'assetlog', 'supplier',
'model.manufacturer', 'company' )
->orderBy( 'created_at', 'DESC' )
->get();
return View::make( 'backend/reports/asset', compact( 'assets' ) );
}
/**
@@ -33,44 +98,50 @@ class ReportsController extends AdminController
public function exportAssetReport()
{
// Grab all the assets
$assets = Asset::orderBy('created_at', 'DESC')->get();
$assets = Asset::orderBy( 'created_at', 'DESC' )->get();
$rows = array();
$rows = [ ];
// Create the header row
$header = array(
Lang::get('admin/hardware/table.asset_tag'),
Lang::get('admin/hardware/form.manufacturer'),
Lang::get('admin/hardware/form.model'),
Lang::get('general.model_no'),
Lang::get('general.name'),
Lang::get('admin/hardware/table.serial'),
Lang::get('admin/hardware/table.purchase_date'),
Lang::get('admin/hardware/table.purchase_cost'),
Lang::get('admin/hardware/form.order'),
Lang::get('admin/hardware/form.supplier'),
Lang::get('admin/hardware/table.checkoutto'),
Lang::get('admin/hardware/table.location'),
Lang::get('general.status')
);
$header = array_map('trim', $header);
$rows[] = implode($header, ',');
$header = [
Lang::get( 'admin/hardware/table.asset_tag' ),
Lang::get( 'admin/hardware/form.manufacturer' ),
Lang::get( 'admin/hardware/form.model' ),
Lang::get( 'general.model_no' ),
Lang::get( 'general.name' ),
Lang::get( 'admin/hardware/table.serial' ),
Lang::get( 'general.status' ),
Lang::get( 'admin/hardware/table.purchase_date' ),
Lang::get( 'admin/hardware/table.purchase_cost' ),
Lang::get( 'admin/hardware/form.order' ),
Lang::get( 'admin/hardware/form.supplier' ),
Lang::get( 'admin/hardware/table.checkoutto' ),
Lang::get( 'admin/hardware/table.location' ),
Lang::get( 'general.notes' ),
];
$header = array_map( 'trim', $header );
$rows[] = implode( $header, ',' );
// Create a row per asset
foreach ($assets as $asset) {
$row = array();
$row = [ ];
$row[] = $asset->asset_tag;
if ($asset->model->manufacturer) {
$row[] = $asset->model->manufacturer->name;
} else {
$row[] = '';
}
$row[] = '"'.$asset->model->name.'"';
$row[] = '"'.$asset->model->modelno.'"';
$row[] = '"' . $asset->model->name . '"';
$row[] = '"' . $asset->model->modelno . '"';
$row[] = $asset->name;
$row[] = $asset->serial;
if ($asset->assetstatus) {
$row[] = $asset->assetstatus->name;
} else {
$row[] = '';
}
$row[] = $asset->purchase_date;
$row[] = '"'.number_format($asset->purchase_cost).'"';
$row[] = '"' . number_format( $asset->purchase_cost ) . '"';
if ($asset->order_number) {
$row[] = $asset->order_number;
} else {
@@ -83,21 +154,21 @@ class ReportsController extends AdminController
}
if ($asset->assigned_to > 0) {
$user = User::find($asset->assigned_to);
$user = User::find( $asset->assigned_to );
$row[] = $user->fullName();
} else {
$row[] = ''; // Empty string if unassigned
}
if (($asset->assigned_to > 0) && ($asset->assigneduser->location_id > 0)) {
$location = Location::find($asset->assigneduser->location_id);
if ($location->name) {
if (( $asset->assigned_to > 0 ) && ( $asset->assigneduser->location_id > 0 )) {
$location = Location::find( $asset->assigneduser->location_id );
if ($location) {
$row[] = $location->name;
} else {
$row[] = '';
}
} elseif ($asset->rtd_location_id) {
$location = Location::find($asset->rtd_location_id);
$location = Location::find( $asset->rtd_location_id );
if ($location->name) {
$row[] = $location->name;
} else {
@@ -107,24 +178,20 @@ class ReportsController extends AdminController
$row[] = ''; // Empty string if location is not set
}
if (($asset->status_id == '0') && ($asset->assigned_to == '0')) {
$row[] = Lang::get('general.ready_to_deploy');
} elseif (($asset->status_id == '') && ($asset->assigned_to == '0')) {
$row[] = Lang::get('general.pending');
} elseif ($asset->assetstatus) {
$row[] = $asset->assetstatus->name;
if ($asset->notes) {
$row[] = '"' . $asset->notes . '"';
} else {
$row[] = '';
}
$rows[] = implode($row, ',');
$rows[] = implode( $row, ',' );
}
// spit out a csv
$csv = implode($rows, "\n");
$response = Response::make($csv, 200);
$response->header('Content-Type', 'text/csv');
$response->header('Content-disposition', 'attachment;filename=report.csv');
$csv = implode( $rows, "\n" );
$response = Response::make( $csv, 200 );
$response->header( 'Content-Type', 'text/csv' );
$response->header( 'Content-disposition', 'attachment;filename=report.csv' );
return $response;
}
@@ -136,9 +203,12 @@ class ReportsController extends AdminController
*/
public function getDeprecationReport()
{
// Grab all the assets
$assets = Asset::with('model','assigneduser','assetstatus','defaultLoc','assetlog')->orderBy('created_at', 'DESC')->get();
return View::make('backend/reports/depreciation', compact('assets'));
$assets = Asset::with( 'model', 'assigneduser', 'assetstatus', 'defaultLoc', 'assetlog', 'company' )
->orderBy( 'created_at', 'DESC' )->get();
return View::make( 'backend/reports/depreciation', compact( 'assets' ) );
}
/**
@@ -148,47 +218,50 @@ class ReportsController extends AdminController
*/
public function exportDeprecationReport()
{
// @todo - It may be worthwhile creating a separate controller for reporting
// Grab all the assets
$assets = Asset::orderBy('created_at', 'DESC')->get();
$assets = Asset::with( 'model', 'assigneduser', 'assetstatus', 'defaultLoc', 'assetlog' )
->orderBy( 'created_at', 'DESC' )->get();
$rows = array();
$csv = \League\Csv\Writer::createFromFileObject( new \SplTempFileObject() );
$csv->setOutputBOM( Reader::BOM_UTF16_BE );
$rows = [ ];
// Create the header row
$header = array(
Lang::get('admin/hardware/table.asset_tag'),
Lang::get('admin/hardware/table.title'),
Lang::get('admin/hardware/table.serial'),
Lang::get('admin/hardware/table.checkoutto'),
Lang::get('admin/hardware/table.location'),
Lang::get('admin/hardware/table.purchase_date'),
Lang::get('admin/hardware/table.purchase_cost'),
Lang::get('admin/hardware/table.book_value'),
Lang::get('admin/hardware/table.diff')
);
$header = array_map('trim', $header);
$rows[] = implode($header, ',');
$header = [
Lang::get( 'admin/hardware/table.asset_tag' ),
Lang::get( 'admin/hardware/table.title' ),
Lang::get( 'admin/hardware/table.serial' ),
Lang::get( 'admin/hardware/table.checkoutto' ),
Lang::get( 'admin/hardware/table.location' ),
Lang::get( 'admin/hardware/table.purchase_date' ),
Lang::get( 'admin/hardware/table.purchase_cost' ),
Lang::get( 'admin/hardware/table.book_value' ),
Lang::get( 'admin/hardware/table.diff' )
];
//we insert the CSV header
$csv->insertOne( $header );
// Create a row per asset
foreach ($assets as $asset) {
$row = array();
$row = [ ];
$row[] = $asset->asset_tag;
$row[] = $asset->name;
$row[] = $asset->serial;
if ($asset->assigned_to > 0) {
$user = User::find($asset->assigned_to);
$row[] = $user->fullName();
} else {
$user = User::find( $asset->assigned_to );
$row[] = $user->fullName();
} else {
$row[] = ''; // Empty string if unassigned
}
if (($asset->assigned_to > 0) && ($asset->assigneduser->location_id > 0)) {
$location = Location::find($asset->assigneduser->location_id);
if (( $asset->assigned_to > 0 ) && ( $asset->assigneduser->location_id > 0 )) {
$location = Location::find( $asset->assigneduser->location_id );
if ($location->city) {
$row[] = '"'.$location->city . ', ' . $location->state.'"';
$row[] = $location->city . ', ' . $location->state;
} elseif ($location->name) {
$row[] = $location->name;
} else {
@@ -198,22 +271,41 @@ class ReportsController extends AdminController
$row[] = ''; // Empty string if location is not set
}
$depreciation = $asset->depreciate();
if ($asset->assetloc) {
$currency = $asset->assetloc->currency;
} else {
$currency = Setting::first()->default_currency;
}
$row[] = $asset->purchase_date;
$row[] = '"'.number_format($asset->purchase_cost).'"';
$row[] = '"'.number_format($depreciation).'"';
$row[] = '"'.number_format($asset->purchase_cost - $depreciation).'"';
$rows[] = implode($row, ',');
$row[] = $currency . number_format( $asset->purchase_cost );
$row[] = $currency . number_format( $asset->getDepreciatedValue() );
$row[] = $currency . number_format( ( $asset->purchase_cost - $asset->getDepreciatedValue() ) );
$csv->insertOne( $row );
}
// spit out a csv
$csv = implode($rows, "\n");
$response = Response::make($csv, 200);
$response->header('Content-Type', 'text/csv');
$response->header('Content-disposition', 'attachment;filename=report.csv');
$csv->output( 'depreciation-report-' . date( 'Y-m-d' ) . '.csv' );
die;
return $response;
}
/**
* Show Report for Activity
*
* @return View
*/
public function getActivityReport()
{
$log_actions = Actionlog::orderBy( 'created_at', 'DESC' )
->with( 'adminlog' )
->with( 'accessorylog' )
->with( 'assetlog' )
->with( 'licenselog' )
->with( 'userlog' )
->orderBy( 'created_at', 'DESC' )
->get();
return View::make( 'backend/reports/activity', compact( 'log_actions' ) );
}
/**
@@ -223,8 +315,12 @@ class ReportsController extends AdminController
*/
public function getLicenseReport()
{
$licenses = License::orderBy('created_at', 'DESC')->get();
return View::make('backend/reports/licenses', compact('licenses'));
$licenses = License::orderBy( 'created_at', 'DESC' )
->with( 'company' )
->get();
return View::make( 'backend/reports/licenses', compact( 'licenses' ) );
}
/**
@@ -234,199 +330,190 @@ class ReportsController extends AdminController
*/
public function exportLicenseReport()
{
$licenses = License::orderBy('created_at', 'DESC')->get();
$rows = array();
$header = array(
Lang::get('admin/licenses/table.title'),
Lang::get('admin/licenses/table.serial'),
Lang::get('admin/licenses/form.seats'),
Lang::get('admin/licenses/form.remaining_seats'),
Lang::get('admin/licenses/form.expiration'),
Lang::get('admin/licenses/form.date'),
Lang::get('admin/licenses/form.cost')
);
$licenses = License::orderBy( 'created_at', 'DESC' )->get();
$header = array_map('trim', $header);
$rows[] = implode($header, ', ');
$rows = [ ];
$header = [
Lang::get( 'admin/licenses/table.title' ),
Lang::get( 'admin/licenses/table.serial' ),
Lang::get( 'admin/licenses/form.seats' ),
Lang::get( 'admin/licenses/form.remaining_seats' ),
Lang::get( 'admin/licenses/form.expiration' ),
Lang::get( 'admin/licenses/form.date' ),
Lang::get( 'admin/licenses/form.cost' )
];
$header = array_map( 'trim', $header );
$rows[] = implode( $header, ', ' );
// Row per license
foreach ($licenses as $license) {
$row = array();
$row = [ ];
$row[] = $license->name;
$row[] = $license->serial;
$row[] = $license->seats;
$row[] = $license->remaincount();
$row[] = $license->expiration_date;
$row[] = $license->purchase_date;
$row[] = '"'.number_format($license->purchase_cost).'"';
$row[] = '"' . number_format( $license->purchase_cost ) . '"';
$rows[] = implode($row, ',');
$rows[] = implode( $row, ',' );
}
$csv = implode($rows, "\n");
$response = Response::make($csv, 200);
$response->header('Content-Type', 'text/csv');
$response->header('Content-disposition', 'attachment;filename=report.csv');
$csv = implode( $rows, "\n" );
$response = Response::make( $csv, 200 );
$response->header( 'Content-Type', 'text/csv' );
$response->header( 'Content-disposition', 'attachment;filename=report.csv' );
return $response;
}
public function getCustomReport()
{
return View::make('backend/reports/custom');
return View::make( 'backend/reports/custom' );
}
public function postCustom()
{
$assets = Asset::orderBy('created_at', 'DESC')->get();
$rows = array();
$header = array();
$assets = Asset::orderBy( 'created_at', 'DESC' )->get();
if (e(Input::get('asset_name')) == '1')
{
$rows = [ ];
$header = [ ];
if (e( Input::get( 'asset_name' ) ) == '1') {
$header[] = 'Asset Name';
}
if (e(Input::get('asset_tag')) == '1')
{
if (e( Input::get( 'asset_tag' ) ) == '1') {
$header[] = 'Asset Tag';
}
if (e(Input::get('manufacturer')) == '1')
{
if (e( Input::get( 'manufacturer' ) ) == '1') {
$header[] = 'Manufacturer';
}
if (e(Input::get('model')) == '1')
{
if (e( Input::get( 'model' ) ) == '1') {
$header[] = 'Model';
$header[] = 'Model Number';
}
if (e(Input::get('serial')) == '1')
{
if (e( Input::get( 'serial' ) ) == '1') {
$header[] = 'Serial';
}
if (e(Input::get('purchase_date')) == '1')
{
if (e( Input::get( 'purchase_date' ) ) == '1') {
$header[] = 'Purchase Date';
}
if ((e(Input::get('purchase_cost')) == '1') && (e(Input::get('depreciation')) == '0'))
{
if (( e( Input::get( 'purchase_cost' ) ) == '1' ) && ( e( Input::get( 'depreciation' ) ) != '1' )) {
$header[] = 'Purchase Cost';
}
if (e(Input::get('order')) == '1')
{
if (e( Input::get( 'order' ) ) == '1') {
$header[] = 'Order Number';
}
if (e(Input::get('supplier')) == '1')
{
if (e( Input::get( 'supplier' ) ) == '1') {
$header[] = 'Supplier';
}
if (e(Input::get('location')) == '1')
{
if (e( Input::get( 'location' ) ) == '1') {
$header[] = 'Location';
}
if (e(Input::get('assigned_to')) == '1')
{
if (e( Input::get( 'assigned_to' ) ) == '1') {
$header[] = 'Assigned To';
}
if (e(Input::get('status')) == '1')
{
if (e( Input::get( 'status' ) ) == '1') {
$header[] = 'Status';
}
if (e(Input::get('warranty')) == '1')
{
if (e( Input::get( 'warranty' ) ) == '1') {
$header[] = 'Warranty';
$header[] = 'Warranty Expires';
}
if (e(Input::get('depreciation')) == '1')
{
if (e( Input::get( 'depreciation' ) ) == '1') {
$header[] = 'Purchase Cost';
$header[] = 'Value';
$header[] = 'Diff';
}
$header = array_map('trim', $header);
$rows[] = implode($header, ',');
$header = array_map( 'trim', $header );
$rows[] = implode( $header, ',' );
foreach($assets as $asset) {
$row = array();
if (e(Input::get('asset_name')) == '1') {
foreach ($assets as $asset) {
$row = [ ];
if (e( Input::get( 'asset_name' ) ) == '1') {
$row[] = $asset->name;
}
if (e(Input::get('asset_tag')) == '1') {
if (e( Input::get( 'asset_tag' ) ) == '1') {
$row[] = $asset->asset_tag;
}
if (e(Input::get('manufacturer')) == '1') {
if (e( Input::get( 'manufacturer' ) ) == '1') {
if ($asset->model->manufacturer) {
$row[] = $asset->model->manufacturer->name;
} else {
$row[] = '';
}
}
if (e(Input::get('model')) == '1') {
$row[] = '"'.$asset->model->name.'"';
$row[] = '"'.$asset->model->modelno.'"';
if (e( Input::get( 'model' ) ) == '1') {
$row[] = '"' . $asset->model->name . '"';
$row[] = '"' . $asset->model->modelno . '"';
}
if (e(Input::get('serial')) == '1') {
if (e( Input::get( 'serial' ) ) == '1') {
$row[] = $asset->serial;
}
if (e(Input::get('purchase_date')) == '1') {
if (e( Input::get( 'purchase_date' ) ) == '1') {
$row[] = $asset->purchase_date;
}
if ((e(Input::get('purchase_cost')) == '1') && (e(Input::get('depreciation')) == '0')) {
$row[] = '"'.number_format($asset->purchase_cost).'"';
if (e( Input::get( 'purchase_cost' ) ) == '1' && ( e( Input::get( 'depreciation' ) ) != '1' )) {
$row[] = '"' . number_format( $asset->purchase_cost ) . '"';
}
if (e(Input::get('order')) == '1') {
if (e( Input::get( 'order' ) ) == '1') {
if ($asset->order_number) {
$row[] = $asset->order_number;
} else {
$row[] = '';
}
}
if (e(Input::get('supplier')) == '1') {
if (e( Input::get( 'supplier' ) ) == '1') {
if ($asset->supplier_id) {
$row[] = $asset->supplier->name;
} else {
$row[] = '';
}
}
if (e(Input::get('location')) == '1') {
if (($asset->assigned_to > 0) && ($asset->assigneduser->location_id > 0)) {
$location = Location::find($asset->assigneduser->location_id);
if ($location->name) {
$row[] = $location->name;
if (e( Input::get( 'location' ) ) == '1') {
$show_loc = '';
if (( $asset->assigned_to > 0 ) && ( $asset->assigneduser->location_id !='' )) {
$location = Location::find( $asset->assigneduser->location_id );
if ($location) {
$show_loc .= $location->name;
} else {
$row[] = '';
$show_loc .= 'User location '.$asset->assigneduser->location_id.' is invalid';
}
} elseif ($asset->rtd_location_id) {
$location = Location::find($asset->rtd_location_id);
if ($location->name) {
$row[] = $location->name;
} elseif ($asset->rtd_location_id!='') {
$location = Location::find( $asset->rtd_location_id );
if ($location) {
$show_loc .= $location->name;
} else {
$row[] = '';
$show_loc .= 'Default location '.$asset->rtd_location_id.' is invalid';
}
} else {
$row[] = ''; // Empty string if location is not set
}
$row[] = $show_loc;
}
if (e(Input::get('assigned_to')) == '1') {
if (e( Input::get( 'assigned_to' ) ) == '1') {
if ($asset->assigned_to > 0) {
$user = User::find($asset->assigned_to);
$user = User::find( $asset->assigned_to );
$row[] = $user->fullName();
} else {
$row[] = ''; // Empty string if unassigned
}
}
if (e(Input::get('status')) == '1') {
if (($asset->status_id == '0') && ($asset->assigned_to == '0')) {
$row[] = Lang::get('general.ready_to_deploy');
} elseif (($asset->status_id == '') && ($asset->assigned_to == '0')) {
$row[] = Lang::get('general.pending');
if (e( Input::get( 'status' ) ) == '1') {
if (( $asset->status_id == '0' ) && ( $asset->assigned_to == '0' )) {
$row[] = Lang::get( 'general.ready_to_deploy' );
} elseif (( $asset->status_id == '' ) && ( $asset->assigned_to == '0' )) {
$row[] = Lang::get( 'general.pending' );
} elseif ($asset->assetstatus) {
$row[] = $asset->assetstatus->name;
} else {
$row[] = '';
}
}
if (e(Input::get('warranty')) == '1') {
if (e( Input::get( 'warranty' ) ) == '1') {
if ($asset->warranty_months) {
$row[] = $asset->warranty_months;
$row[] = $asset->warrantee_expires();
@@ -435,24 +522,244 @@ class ReportsController extends AdminController
$row[] = '';
}
}
if (e(Input::get('depreciation')) == '1') {
$depreciation = $asset->depreciate();
$row[] = '"'.number_format($asset->purchase_cost).'"';
$row[] = '"'.number_format($depreciation).'"';
$row[] = '"'.number_format($asset->purchase_cost - $depreciation).'"';
if (e( Input::get( 'depreciation' ) ) == '1') {
$depreciation = $asset->getDepreciatedValue();
$row[] = '"' . number_format( $asset->purchase_cost ) . '"';
$row[] = '"' . number_format( $depreciation ) . '"';
$row[] = '"' . number_format( $asset->purchase_cost - $depreciation ) . '"';
}
$rows[] = implode($row, ',');
$rows[] = implode( $row, ',' );
}
// spit out a csv
if (array_filter($rows)) {
$csv = implode($rows, "\n");
$response = Response::make($csv, 200);
$response->header('Content-Type', 'text/csv');
$response->header('Content-disposition', 'attachment;filename=report.csv');
if (array_filter( $rows )) {
$csv = implode( $rows, "\n" );
$response = Response::make( $csv, 200 );
$response->header( 'Content-Type', 'text/csv' );
$response->header( 'Content-disposition', 'attachment;filename=report.csv' );
return $response;
} else {
return Redirect::to("reports/custom")->with('error', Lang::get('admin/reports/message.error'));
return Redirect::to( "reports/custom" )
->with( 'error', Lang::get( 'admin/reports/message.error' ) );
}
}
}
/**
* getImprovementsReport
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getAssetMaintenancesReport()
{
// Grab all the improvements
$assetMaintenances = \AssetMaintenance::with( 'asset', 'supplier', 'asset.company' )
->orderBy( 'created_at', 'DESC' )
->get();
return View::make( 'backend/reports/asset_maintenances', compact( 'assetMaintenances' ) );
}
/**
* exportImprovementsReport
*
* @return \Illuminate\Http\Response
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function exportAssetMaintenancesReport()
{
// Grab all the improvements
$assetMaintenances = AssetMaintenance::with( 'asset', 'supplier' )
->orderBy( 'created_at', 'DESC' )
->get();
$rows = [ ];
$header = [
Lang::get( 'admin/asset_maintenances/table.asset_name' ),
Lang::get( 'admin/asset_maintenances/table.supplier_name' ),
Lang::get( 'admin/asset_maintenances/form.asset_maintenance_type' ),
Lang::get( 'admin/asset_maintenances/form.title' ),
Lang::get( 'admin/asset_maintenances/form.start_date' ),
Lang::get( 'admin/asset_maintenances/form.completion_date' ),
Lang::get( 'admin/asset_maintenances/form.asset_maintenance_time' ),
Lang::get( 'admin/asset_maintenances/form.cost' )
];
$header = array_map( 'trim', $header );
$rows[] = implode( $header, ',' );
foreach ($assetMaintenances as $assetMaintenance) {
$row = [ ];
$row[] = str_replace( ',', '', $assetMaintenance->asset->name );
$row[] = str_replace( ',', '', $assetMaintenance->supplier->name );
$row[] = $assetMaintenance->improvement_type;
$row[] = $assetMaintenance->title;
$row[] = $assetMaintenance->start_date;
$row[] = $assetMaintenance->completion_date;
if (is_null( $assetMaintenance->asset_maintenance_time )) {
$improvementTime = intval( Carbon::now()
->diffInDays( Carbon::parse( $assetMaintenance->start_date ) ) );
} else {
$improvementTime = intval( $assetMaintenance->asset_maintenance_time );
}
$row[] = $improvementTime;
$row[] = Lang::get( 'general.currency' ) . number_format( $assetMaintenance->cost, 2 );
$rows[] = implode( $row, ',' );
}
// spit out a csv
$csv = implode( $rows, "\n" );
$response = Response::make( $csv, 200 );
$response->header( 'Content-Type', 'text/csv' );
$response->header( 'Content-disposition', 'attachment;filename=report.csv' );
return $response;
}
/**
* getAssetAcceptanceReport
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function getAssetAcceptanceReport()
{
$assetsForReport = Asset::notYetAccepted()->with( 'company' )->get();
return View::make( 'backend/reports/unaccepted_assets', compact( 'assetsForReport' ) );
}
/**
* exportAssetAcceptanceReport
*
* @return \Illuminate\Http\Response
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function exportAssetAcceptanceReport()
{
// Grab all the improvements
$assetsForReport = Actionlog::whereIn( 'id', $this->getAssetsNotAcceptedYet() )
->get();
$rows = [ ];
$header = [
Lang::get( 'general.category' ),
Lang::get( 'admin/hardware/form.model' ),
Lang::get( 'admin/hardware/form.name' ),
Lang::get( 'admin/hardware/table.asset_tag' ),
Lang::get( 'admin/hardware/table.checkoutto' ),
];
$header = array_map( 'trim', $header );
$rows[] = implode( $header, ',' );
foreach ($assetsForReport as $assetItem) {
$row = [ ];
$row[] = str_replace( ',', '', $assetItem->assetlog->model->category->name );
$row[] = str_replace( ',', '', $assetItem->assetlog->model->name );
$row[] = str_replace( ',', '', $assetItem->assetlog->showAssetName() );
$row[] = str_replace( ',', '', $assetItem->assetlog->asset_tag );
$row[] = str_replace( ',', '', $assetItem->assetlog->assigneduser->fullName() );
$rows[] = implode( $row, ',' );
}
// spit out a csv
$csv = implode( $rows, "\n" );
$response = Response::make( $csv, 200 );
$response->header( 'Content-Type', 'text/csv' );
$response->header( 'Content-disposition', 'attachment;filename=report.csv' );
return $response;
}
/**
* getCheckedOutAssetsRequiringAcceptance
*
* @param $modelsInCategoriesThatRequireAcceptance
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getCheckedOutAssetsRequiringAcceptance( $modelsInCategoriesThatRequireAcceptance )
{
$assets = Asset::deployed()
->inModelList( $modelsInCategoriesThatRequireAcceptance )
->select( 'id' )
->get()
->toArray();
return array_pluck( $assets, 'id' );
}
/**
* getModelsInCategoriesThatRequireAcceptance
*
* @param $assetCategoriesRequiringAcceptance
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getModelsInCategoriesThatRequireAcceptance( $assetCategoriesRequiringAcceptance )
{
return array_pluck( Model::inCategory( $assetCategoriesRequiringAcceptance )
->select( 'id' )
->get()
->toArray(), 'id' );
}
/**
* getCategoriesThatRequireAcceptance
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getCategoriesThatRequireAcceptance()
{
return array_pluck( Category::requiresAcceptance()
->select( 'id' )
->get()
->toArray(), 'id' );
}
/**
* getAssetsCheckedOutRequiringAcceptance
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getAssetsCheckedOutRequiringAcceptance()
{
return $this->getCheckedOutAssetsRequiringAcceptance(
$this->getModelsInCategoriesThatRequireAcceptance( $this->getCategoriesThatRequireAcceptance() )
);
}
/**
* getAssetsNotAcceptedYet
*
* @return array
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
protected function getAssetsNotAcceptedYet()
{
return Asset::unaccepted();
}
}
+201 -13
View File
@@ -10,6 +10,12 @@ use Sentry;
use Str;
use Validator;
use View;
use Image;
use Config;
use Response;
use Artisan;
use Crypt;
class SettingsController extends AdminController
{
@@ -31,22 +37,30 @@ class SettingsController extends AdminController
/**
* Setting update.
*
* @param int $settingId
* @return View
*/
public function getEdit()
{
$settings = Setting::orderBy('created_at', 'DESC')->paginate(10);
$setting = Setting::first();
$is_gd_installed = extension_loaded('gd');
return View::make('backend/settings/edit', compact('settings', 'is_gd_installed'));
// echo '<pre>';
// print_r($settings);
// echo '</pre>';
// exit;
if ($setting->ldap_pword!='') {
$show_ldap_pword = Crypt::decrypt($setting->ldap_pword);
} else {
$show_ldap_pword = '';
}
return View::make('backend/settings/edit', compact('setting'))->with('is_gd_installed',$is_gd_installed)->with('show_ldap_pword',$show_ldap_pword);
}
/**
* Setting update form processing page.
*
* @param int $settingId
* @return Redirect
*/
public function postEdit()
@@ -62,11 +76,32 @@ class SettingsController extends AdminController
// Declare the rules for the form validation
$rules = array(
"site_name" => 'required|min:3',
"per_page" => 'required|min:1|numeric',
"qr_text" => 'min:1|max:31'
);
"brand" => 'required|min:1|numeric',
"per_page" => 'required|min:1|numeric',
"qr_text" => 'min:1|max:31',
"logo" => 'mimes:jpeg,bmp,png,gif',
"custom_css" => 'alpha_space',
"alert_email" => 'email',
"slack_endpoint" => 'url',
"default_currency" => 'required',
"slack_channel" => 'regex:/(?<!\w)#\w+/',
"slack_botname" => 'alpha_dash',
"ldap_server" => 'sometimes|required_if:ldap_enabled,1|url',
"ldap_uname" => 'sometimes|required_if:ldap_enabled,1',
"ldap_pword" => 'sometimes|required_if:ldap_enabled,1',
"ldap_basedn" => 'sometimes|required_if:ldap_enabled,1',
"ldap_filter" => 'sometimes|required_if:ldap_enabled,1',
"ldap_username_field" => 'sometimes|required_if:ldap_enabled,1',
"ldap_lname_field" => 'sometimes|required_if:ldap_enabled,1',
"ldap_auth_filter_query" => 'sometimes|required_if:ldap_enabled,1',
"ldap_version" => 'sometimes|required_if:ldap_enabled,1',
);
if (Config::get('app.lock_passwords')==false) {
$rules['site_name'] = 'required|min:3';
}
// Create a new validator instance from our validation rules
$validator = Validator::make(Input::all(), $rules);
@@ -78,17 +113,66 @@ class SettingsController extends AdminController
return Redirect::back()->withInput()->withErrors($validator);
}
if (Input::get('clear_logo')=='1') {
$setting->logo = NULL;
} elseif (Input::file('logo')) {
if (!Config::get('app.lock_passwords')) {
$image = Input::file('logo');
$file_name = "logo.".$image->getClientOriginalExtension();
$path = public_path('uploads/'.$file_name);
Image::make($image->getRealPath())->resize(null, 40, function ($constraint) {
$constraint->aspectRatio();
$constraint->upsize();
})->save($path);
$setting->logo = $file_name;
}
}
// Update the asset data
$setting->id = '1';
$setting->site_name = e(Input::get('site_name'));
$setting->display_asset_name = e(Input::get('display_asset_name', '0'));
$setting->display_checkout_date = e(Input::get('display_checkout_date', '0'));
if (Config::get('app.lock_passwords')==false) {
$setting->site_name = e(Input::get('site_name'));
$setting->brand = e(Input::get('brand'));
$setting->custom_css = e(Input::get('custom_css'));
}
$setting->per_page = e(Input::get('per_page'));
$setting->qr_code = e(Input::get('qr_code', '0'));
$setting->display_eol = e(Input::get('display_eol', '0'));
$setting->barcode_type = e(Input::get('barcode_type'));
$setting->load_remote = e(Input::get('load_remote', '0'));
$setting->default_currency = Input::get('default_currency', '$');
$setting->qr_text = e(Input::get('qr_text'));
$setting->auto_increment_prefix = e(Input::get('auto_increment_prefix'));
$setting->auto_increment_assets = e(Input::get('auto_increment_assets', '0'));
$setting->alert_email = e(Input::get('alert_email'));
$setting->alerts_enabled = e(Input::get('alerts_enabled', '0'));
$setting->header_color = e(Input::get('header_color'));
$setting->default_eula_text = e(Input::get('default_eula_text'));
$setting->slack_endpoint = e(Input::get('slack_endpoint'));
$setting->slack_channel = e(Input::get('slack_channel'));
$setting->slack_botname = e(Input::get('slack_botname'));
$setting->ldap_enabled = Input::get('ldap_enabled', '0');
$setting->ldap_server = Input::get('ldap_server');
$setting->ldap_server_cert_ignore = Input::get('ldap_server_cert_ignore', false);
$setting->ldap_uname = Input::get('ldap_uname');
$setting->ldap_pword = Crypt::encrypt(Input::get('ldap_pword'));
$setting->ldap_basedn = Input::get('ldap_basedn');
$setting->ldap_filter = Input::get('ldap_filter');
$setting->ldap_username_field = Input::get('ldap_username_field');
$setting->ldap_lname_field = Input::get('ldap_lname_field');
$setting->ldap_fname_field = Input::get('ldap_fname_field');
$setting->ldap_auth_filter_query = Input::get('ldap_auth_filter_query');
$setting->ldap_version = Input::get('ldap_version');
$setting->ldap_active_flag = Input::get('ldap_active_flag');
$setting->ldap_emp_num = Input::get('ldap_emp_num');
$setting->ldap_email = Input::get('ldap_email');
if (Sentry::getUser()->isSuperUser()) {
$setting->full_multiple_companies_support = e(Input::get('full_multiple_companies_support', '0'));
}
// Was the asset updated?
if($setting->save()) {
@@ -102,6 +186,110 @@ class SettingsController extends AdminController
}
/**
* Generate the backup page
*
* @return View
**/
public function getBackups()
{
$path = Config::get('backup::path');
$files = array();
if ($handle = opendir($path)) {
/* This is the correct way to loop over the directory. */
while (false !== ($entry = readdir($handle))) {
clearstatcache();
if (substr(strrchr($entry,'.'),1)=='zip') {
$files[] = array(
'filename' => $entry,
'filesize' => Setting::fileSizeConvert(filesize(Config::get('backup::path').$entry)),
'modified' => filemtime(Config::get('backup::path').$entry)
);
}
}
closedir($handle);
$files = array_reverse($files);
}
return View::make('backend/settings/backups', compact('path','files'));
}
/**
* Generate the backup page
*
* @return View
**/
public function postBackups()
{
if (!Config::get('app.lock_passwords')) {
Artisan::call('snipe:backup');
return Redirect::to("admin/settings/backups")->with('success', Lang::get('admin/settings/message.backup.generated'));
} else {
Artisan::call('snipe:backup');
return Redirect::to("admin/settings/backups")->with('error', Lang::get('general.feature_disabled'));
}
}
/**
* Download the dump file
*
* @param string|null $filename
* @return View
*/
public function downloadFile($filename = null)
{
if (!Config::get('app.lock_passwords')) {
$file = Config::get('backup::path').'/'.$filename;
if (file_exists($file)) {
return Response::download($file);
} else {
// Redirect to the backup page
return Redirect::route('settings/backups')->with('error', Lang::get('admin/settings/message.backup.file_not_found'));
}
} else {
// Redirect to the backup page
return Redirect::route('settings/backups')->with('error', Lang::get('general.feature_disabled'));
}
}
/**
* Download the dump file
*
* @param string|null $filename
* @return View
*/
public function deleteFile($filename = null)
{
if (!Config::get('app.lock_passwords')) {
$file = Config::get('backup::path').'/'.$filename;
if (file_exists($file)) {
unlink($file);
return Redirect::route('settings/backups')->with('success', Lang::get('admin/settings/message.backup.file_deleted'));
} else {
return Redirect::route('settings/backups')->with('error', Lang::get('admin/settings/message.backup.file_not_found'));
}
} else {
return Redirect::route('settings/backups')->with('error', Lang::get('general.feature_disabled'));
}
}
}
@@ -12,6 +12,8 @@ use Str;
use Validator;
use View;
use Symfony\Component\HttpFoundation\JsonResponse;
class StatuslabelsController extends AdminController
{
/**
@@ -22,9 +24,6 @@ class StatuslabelsController extends AdminController
public function getIndex()
{
// Grab all the statuslabels
$statuslabels = Statuslabel::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/statuslabels/index', compact('statuslabels'));
}
@@ -38,7 +37,11 @@ class StatuslabelsController extends AdminController
public function getCreate()
{
// Show the page
return View::make('backend/statuslabels/edit')->with('statuslabel',new Statuslabel);
$statuslabel = new Statuslabel;
$use_statuslabel_type = $statuslabel->getStatuslabelType();
$statuslabel_types = statusTypeList();
return View::make('backend/statuslabels/edit', compact('statuslabel_types','statuslabel'))->with('use_statuslabel_type',$use_statuslabel_type);
}
@@ -59,9 +62,15 @@ class StatuslabelsController extends AdminController
// attempt validation
if ($statuslabel->validate($new)) {
$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
// Save the Statuslabel data
$statuslabel->name = e(Input::get('name'));
$statuslabel->user_id = Sentry::getId();
$statuslabel->notes = e(Input::get('notes'));
$statuslabel->deployable = $statustype['deployable'];
$statuslabel->pending = $statustype['pending'];
$statuslabel->archived = $statustype['archived'];
// Was the asset created?
if($statuslabel->save()) {
@@ -79,6 +88,44 @@ class StatuslabelsController extends AdminController
}
public function store()
{
// get the POST data
$new = Input::all();
$new['statuslabel_types']="deployable";
// create a new model instance
$statuslabel = new Statuslabel();
$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
// attempt validation
if ($statuslabel->validate($new)) {
//$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
// Save the Statuslabel data
$statuslabel->name = e(Input::get('name'));
$statuslabel->user_id = Sentry::getId();
$statuslabel->notes = '';
$statuslabel->deployable = $statustype['deployable'];
$statuslabel->pending = $statustype['pending'];
$statuslabel->archived = $statustype['archived'];
// Was the asset created?
if($statuslabel->save()) {
// Redirect to the new Statuslabel page
return JsonResponse::create($statuslabel);
} else {
return JsonResponse::create(["error" => "Couldn't save Statuslabel"],500);
}
} else {
// failure
$errors = $statuslabel->errors();
return JsonResponse::create(["error" => "Failed validation: ".print_r($errors->all('<li>:message</li>'),true)],500);
}
}
/**
* Statuslabel update.
@@ -94,8 +141,11 @@ class StatuslabelsController extends AdminController
return Redirect::to('admin/settings/statuslabels')->with('error', Lang::get('admin/statuslabels/message.does_not_exist'));
}
$use_statuslabel_type = $statuslabel->getStatuslabelType();
return View::make('backend/statuslabels/edit', compact('statuslabel'));
$statuslabel_types = array('' => Lang::get('admin/hardware/form.select_statustype')) + array('undeployable' => Lang::get('admin/hardware/general.undeployable')) + array('pending' => Lang::get('admin/hardware/general.pending')) + array('archived' => Lang::get('admin/hardware/general.archived')) + array('deployable' => Lang::get('admin/hardware/general.deployable'));
return View::make('backend/statuslabels/edit', compact('statuslabel','statuslabel_types'))->with('use_statuslabel_type',$use_statuslabel_type);
}
@@ -118,20 +168,27 @@ class StatuslabelsController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
else {
// Update the Statuslabel data
$statustype = Statuslabel::getStatuslabelTypesForDB(Input::get('statuslabel_types'));
$statuslabel->name = e(Input::get('name'));
$statuslabel->notes = e(Input::get('notes'));
$statuslabel->deployable = $statustype['deployable'];
$statuslabel->pending = $statustype['pending'];
$statuslabel->archived = $statustype['archived'];
// Was the asset created?
if($statuslabel->save()) {
// Redirect to the saved Statuslabel page
return Redirect::to("admin/settings/statuslabels/")->with('success', Lang::get('admin/statuslabels/message.update.success'));
}
}
}
// Redirect to the Statuslabel management page
return Redirect::to("admin/settings/statuslabels/$statuslabelId/edit")->with('error', Lang::get('admin/statuslabels/message.update.error'));
@@ -170,5 +227,67 @@ class StatuslabelsController extends AdminController
}
public function getDatatable()
{
$statuslabels = Statuslabel::select(array('id','name','deployable','pending','archived'))
->whereNull('deleted_at');
if (Input::has('search')) {
$statuslabels = $statuslabels->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$statuslabels->orderBy($sort, $order);
$statuslabelsCount = $statuslabels->count();
$statuslabels = $statuslabels->skip($offset)->take($limit)->get();
$rows = array();
foreach($statuslabels as $statuslabel) {
if ($statuslabel->deployable == 1) {
$label_type = Lang::get('admin/statuslabels/table.deployable');
} elseif ($statuslabel->pending == 1) {
$label_type = Lang::get('admin/statuslabels/table.pending');
} elseif ($statuslabel->archived == 1) {
$label_type = Lang::get('admin/statuslabels/table.archived');
} else {
$label_type = Lang::get('admin/statuslabels/table.undeployable');
}
$actions = '<a href="'.route('update/statuslabel', $statuslabel->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/statuslabel', $statuslabel->id).'" data-content="'.Lang::get('admin/statuslabels/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($statuslabel->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
$rows[] = array(
'id' => $statuslabel->id,
'type' => $label_type,
'name' => e($statuslabel->name),
'actions' => $actions
);
}
$data = array('total' => $statuslabelsCount, 'rows' => $rows);
return $data;
}
}
+81 -2
View File
@@ -2,6 +2,7 @@
use AdminController;
use Image;
use AssetMaintenance;
use Input;
use Lang;
use Supplier;
@@ -12,6 +13,9 @@ use Str;
use Validator;
use View;
use Symfony\Component\HttpFoundation\JsonResponse;
class SuppliersController extends AdminController
{
/**
@@ -100,6 +104,26 @@ class SuppliersController extends AdminController
}
public function store()
{
$supplier=new Supplier;
$new=Input::all();
$validator = Validator::make($new, $supplier->validationRules());
if($validator->fails()) {
return JsonResponse::create(["error" => "Failed validation: ".print_r($validator->messages()->all('<li>:message</li>'),true)],500);
} else {
//$supplier->fill($new);
$supplier->name=$new['name'];
$supplier->user_id = Sentry::getId();
if($supplier->save()) {
return JsonResponse::create($supplier);
} else {
return JsonResponse::create(["error" => "Couldn't save Supplier"]);
}
}
}
/**
* Supplier update.
*
@@ -139,7 +163,7 @@ class SuppliersController extends AdminController
if ($validator->fails())
{
// The given data did not pass validation
// The given data did not pass validation
return Redirect::back()->withInput()->withErrors($validator->messages());
}
// attempt validation
@@ -180,7 +204,7 @@ class SuppliersController extends AdminController
// Redirect to the new supplier page
return Redirect::to("admin/settings/suppliers")->with('success', Lang::get('admin/suppliers/message.update.success'));
}
}
}
// Redirect to the supplier management page
return Redirect::to("admin/settings/suppliers/$supplierId/edit")->with('error', Lang::get('admin/suppliers/message.update.error'));
@@ -240,6 +264,61 @@ class SuppliersController extends AdminController
}
public function getDatatable()
{
$suppliers = Supplier::select(array('id','name','address','address2','city','state','country','fax', 'phone','email','contact'))
->whereNull('deleted_at');
if (Input::has('search')) {
$suppliers = $suppliers->TextSearch(e(Input::get('search')));
}
if (Input::has('offset')) {
$offset = e(Input::get('offset'));
} else {
$offset = 0;
}
if (Input::has('limit')) {
$limit = e(Input::get('limit'));
} else {
$limit = 50;
}
$allowed_columns = ['id','name','address','phone','contact','fax','email'];
$order = Input::get('order') === 'asc' ? 'asc' : 'desc';
$sort = in_array(Input::get('sort'), $allowed_columns) ? Input::get('sort') : 'created_at';
$suppliers->orderBy($sort, $order);
$suppliersCount = $suppliers->count();
$suppliers = $suppliers->skip($offset)->take($limit)->get();
$rows = array();
foreach($suppliers as $supplier) {
$actions = '<a href="'.route('update/supplier', $supplier->id).'" class="btn btn-warning btn-sm" style="margin-right:5px;"><i class="fa fa-pencil icon-white"></i></a><a data-html="false" class="btn delete-asset btn-danger btn-sm" data-toggle="modal" href="'.route('delete/supplier', $supplier->id).'" data-content="'.Lang::get('admin/suppliers/message.delete.confirm').'" data-title="'.Lang::get('general.delete').' '.htmlspecialchars($supplier->name).'?" onClick="return false;"><i class="fa fa-trash icon-white"></i></a>';
$rows[] = array(
'id' => $supplier->id,
'name' => link_to('admin/settings/suppliers/'.$supplier->id.'/view', $supplier->name),
'contact' => $supplier->contact,
'address' => $supplier->address.' '.$supplier->address2.' '.$supplier->city.' '.$supplier->state.' '.$supplier->country,
'phone' => $supplier->phone,
'fax' => $supplier->fax,
'email' => ($supplier->email!='') ? '<a href="mailto:'.$supplier->email.'">'.$supplier->email.'</a>' : '',
'assets' => $supplier->num_assets(),
'licenses' => $supplier->num_licenses(),
'actions' => $actions
);
}
$data = array('total' => $suppliersCount, 'rows' => $rows);
return $data;
}
}
File diff suppressed because it is too large Load Diff
@@ -18,6 +18,7 @@ class CreateModelsTable extends Migration
$table->integer('manufacturer_id')->nullable();
$table->integer('category_id')->nullable();
$table->timestamps();
$table->engine = 'InnoDB';
});
}
@@ -16,6 +16,7 @@ class CreateCategoriesTable extends Migration
$table->string('name');
$table->integer('parent')->default(0);
$table->timestamps();
$table->engine = 'InnoDB';
});
}
@@ -15,6 +15,7 @@ class CreateManufacturersTable extends Migration
$table->increments('id');
$table->string('name');
$table->timestamps();
$table->engine = 'InnoDB';
});
}
@@ -24,6 +24,7 @@ class CreateAssetsTable extends Migration
$table->text('notes');
$table->integer('user_id');
$table->timestamps();
$table->engine = 'InnoDB';
});
}
@@ -25,6 +25,7 @@ class CreateLicensesTable extends Migration
$table->text('notes');
$table->integer('user_id');
$table->timestamps();
$table->engine = 'InnoDB';
});
}
@@ -17,6 +17,7 @@ class CreateDepreciationsTable extends Migration
$table->integer('months');
$table->timestamps();
$table->integer('user_id');
$table->engine = 'InnoDB';
//$table->foreign('user_id')->references('id')->on('users');
});
}
@@ -19,6 +19,7 @@ class CreateLocationsTable extends Migration
$table->string('country',2);
$table->timestamps();
$table->integer('user_id');
$table->engine = 'InnoDB';
});
}
@@ -17,6 +17,7 @@ class CreateHistoryTable extends Migration
$table->integer('location_id')->nullable;
$table->timestamps();
$table->integer('user_id');
$table->engine = 'InnoDB';
});
}
@@ -18,6 +18,7 @@ class CreateSettingsTable extends Migration
$table->string('option_value');
$table->timestamps();
$table->integer('user_id');
$table->engine = 'InnoDB';
});
}
@@ -17,6 +17,7 @@ class CreateStatusLabels extends Migration
$table->integer('user_id');
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -19,6 +19,7 @@ class AddUploadsTable extends Migration
$table->string('filenotes')->nullable;
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -25,6 +25,7 @@ class ReCreateLicensesTable extends Migration
$table->integer('depreciation_id');
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -20,6 +20,7 @@ class CreateLicenseSeatsTable extends Migration
$table->integer('user_id');
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -25,6 +25,7 @@ class CreateNewLicensesTable extends Migration
$table->integer('depreciation_id');
$table->timestamps();
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -28,6 +28,7 @@ class AddSuppliers extends Migration
$table->timestamps();
$table->integer('user_id');
$table->softDeletes();
$table->engine = 'InnoDB';
});
}
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class IncreaseUserFieldLengths extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'users MODIFY column jobtitle varchar(100) null');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'users MODIFY column jobtitle varchar(50) null');
}
}
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSoftDeletedToLog extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column asset_type varchar(100) null');
DB::statement('ALTER TABLE ' . DB::getTablePrefix() . 'asset_logs MODIFY column added_on timestamp default "0000-00-00 00:00:00"');
Schema::table('asset_logs', function ($table) {
$table->renameColumn('added_on', 'created_at');
$table->timestamp('updated_at');
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('asset_logs', function ($table) {
$table->renameColumn('created_at', 'added_on');
$table->dropColumn('updated_at');
$table->dropSoftDeletes();
});
}
}
@@ -0,0 +1,48 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixBadAssignedToIds extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::update('update ' . DB::getTablePrefix() . 'assets SET assigned_to=NULL where assigned_to=0');
Schema::table('status_labels', function ($table) {
$table->boolean('deployable')->default(0);
$table->boolean('pending')->default(0);
$table->boolean('archived')->default(0);
$table->text('notes')->nullable();
});
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Pending",0,1,0,"These assets are not yet ready to be deployed, usually because of configuration or waiting on parts.")');
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Ready to Deploy",1,0,0,"These assets are ready to deploy.")');
DB::statement('INSERT into ' . DB::getTablePrefix() . 'status_labels (user_id, name, deployable, pending, archived, notes) VALUES (1,"Archived",0,0,1,"These assets are no longer in circulation or viable.")');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('status_labels', function ($table) {
$table->dropColumn('deployable');
$table->dropColumn('pending');
$table->dropColumn('archived');
$table->dropColumn('notes');
});
}
}
@@ -0,0 +1,60 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateDataToNewStatuses extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// get newly added statuses from last migration
$statuses = DB::select('select * from ' . DB::getTablePrefix() . 'status_labels where name="Pending" OR name="Ready to Deploy"');
foreach ($statuses as $status) {
if ($status->name =="Pending") {
$pending_id = array($status->id);
} elseif ($status->name =="Ready to Deploy") {
$rtd_id = array($status->id);
}
}
// Pending
$pendings = DB::select('select * from ' . DB::getTablePrefix() . 'assets where status_id IS NULL AND physical=1 ');
foreach ($pendings as $pending) {
DB::update('update ' . DB::getTablePrefix() . 'assets set status_id = ? where status_id IS NULL AND physical=1',$pending_id);
}
// Ready to Deploy
$rtds = DB::select('select * from ' . DB::getTablePrefix() . 'assets where status_id = 0 AND physical=1 ');
foreach ($rtds as $rtd) {
//DB::update('update users set votes = 100 where name = ?', array('John'));
DB::update('update ' . DB::getTablePrefix() . 'assets set status_id = ? where status_id = 0 AND physical=1',$rtd_id);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateMakeLicenseAssignedNull extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
DB::update('update ' . DB::getTablePrefix() . 'license_seats SET assigned_to=NULL where assigned_to=0');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MigrateCreateRequestsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('requests', function ($table) {
$table->increments('id');
$table->integer('asset_id');
$table->integer('user_id');
$table->text('request_code');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::drop('requests');
}
}
@@ -0,0 +1,43 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddMacAddressToAsset extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('assets', function ($table) {
$table->string('mac_address')->nullable()->default(NULL);
});
Schema::table('models', function ($table) {
$table->boolean('show_mac_address')->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('assets', function ($table) {
$table->dropColumn('mac_address');
});
Schema::table('models', function ($table) {
$table->dropColumn('show_mac_address');
});
}
}
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeLicenseNotesType extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
$prefix = DB::getTablePrefix();
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes TEXT');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
$prefix = DB::getTablePrefix();
DB::statement('ALTER TABLE '.$prefix.'licenses MODIFY COLUMN notes VARCHAR(255)');
}
}
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddLocalonlyToSettings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('settings', function ($table) {
$table->boolean('load_remote')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('settings', function ($table) {
$table->dropColumn('load_remote');
});
}
}
@@ -0,0 +1,37 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddLogoAndColorsToSettings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('settings', function ($table) {
$table->string('logo')->nullable()->default(NULL);
$table->string('header_color')->nullable()->default(NULL);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('settings', function ($table) {
$table->dropColumn('logo');
$table->dropColumn('header_color');
});
}
}
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddAlertsToSettings extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('settings', function ($table) {
$table->string('alert_email')->nullable()->default(NULL);
$table->boolean('alerts_enabled')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('settings', function ($table) {
$table->dropColumn('alert_email');
$table->dropColumn('alerts_enabled');
});
}
}
@@ -0,0 +1,69 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddEulaFields extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('settings', function ($table) {
$table->longText('default_eula_text')->nullable()->default(NULL);
});
Schema::table('categories', function ($table) {
$table->longText('eula_text')->nullable()->default(NULL);
$table->boolean('use_default_eula')->default(0);
$table->boolean('require_acceptance')->default(0);
});
Schema::table('asset_logs', function ($table) {
$table->dateTime('requested_at')->nullable()->default(NULL);
$table->dateTime('accepted_at')->nullable()->default(NULL);
});
Schema::create('requested_assets', function ($table) {
$table->increments('id');
$table->integer('asset_id')->default(NULL);
$table->integer('user_id')->default(NULL);
$table->dateTime('accepted_at')->nullable()->default(NULL);
$table->dateTime('denied_at')->nullable()->default(NULL);
$table->string('notes')->default(NULL);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::table('settings', function ($table) {
$table->dropColumn('default_eula_text');
});
Schema::table('categories', function ($table) {
$table->dropColumn('eula_text');
$table->dropColumn('use_default_eula');
$table->dropColumn('require_acceptance');
});
Schema::table('asset_logs', function ($table) {
$table->dropColumn('requested_at');
$table->dropColumn('accepted_at');
});
Schema::drop('requested_assets');
}
}

Some files were not shown because too many files have changed in this diff Show More