Brady Wetherington
d2b7828569
This is a squashed branch of all of the various commits that make up the new HasCustomFields trait.
...
This should allow us to add custom fields to just about anything we want to within Snipe-IT.
Below are the commits that have been squashed together:
Initial decoupling of custom field behavior from Assets for re-use
Add new DB columns to Custom Fields and fieldsets for 'type'
WIP: trying to figure out UI for custom fields for things other than Assets, find problematic places
Real progress towards getting to where this stuff might actually work...
Fix the table-name determining code for Custom Fields
Getting it closer to where Assets at least work
Rename the trait to it's new, even better name
Solid progress on the new Trait!
WIP: HasCustomFields, still working some stuff out
Got some basics working; creating custom fields and stuff
HasCustomFields now validates and saves
Starting to yank the other boilerplate code as things start to work (!)
Got the start of defaultValuesForCustomField() working
More progress (squash me!)
Add migrations for default_values_for_custom_fields table
WIP: more towards hasCustomFields trait
Progress cleaning up the PR, fixing FIXME's
New, passing HasCustomFieldsTrait test!
Fix date formatter helper for custom fields
Fixed more FIXME's
2024-06-06 13:35:38 +01:00
snipe
5a5d171ba2
Put session facade back - derp
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-30 14:15:08 +01:00
snipe
f6fe6e70b9
Merge branch 'develop' into redirect_back_to_asset
2024-05-30 13:38:11 +01:00
snipe
fb233c0aa4
Cleaned up facade names and references
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-29 12:38:15 +01:00
snipe
3df2a4a70b
Removed debugging
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-28 15:16:44 +01:00
snipe
6b41970e97
Check that selected is an array
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-28 15:15:31 +01:00
Godfrey M
f2693ee957
conditionally fixed redirect select option
2024-05-21 14:08:35 -07:00
Godfrey M
69c2cf2c4f
fixed assetcheckin test, created redirect option test
2024-05-21 13:13:25 -07:00
Godfrey M
fb9a5f928f
removed license changes
2024-05-15 16:39:26 -07:00
Godfrey M
786799225c
remove dd
2024-05-15 10:37:07 -07:00
Godfrey M
dc418a7033
need to make variables names uniform
2024-05-14 14:09:54 -07:00
Godfrey M
15cc4345ab
adds dynamic redirects to Assets
2024-05-14 13:25:52 -07:00
Godfrey M
c94a7613ca
dropdown redirect options, helper function and session variable added
2024-05-02 12:16:20 -07:00
snipe
7787fe42c8
Added avif to helpers
...
Signed-off-by: snipe <snipe@snipe.net >
2024-03-20 12:30:28 +00:00
snipe
dff7c43aed
Added minimum account check for licenses
...
Signed-off-by: snipe <snipe@snipe.net >
2024-02-28 11:05:02 +00:00
snipe
8bc5f08da5
Fixed a few more small localization issues
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-24 20:14:49 +00:00
snipe
97ba023152
Moved return
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-19 20:47:06 +00:00
snipe
4a0d4f5862
Moved static var up above
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-19 20:27:11 +00:00
snipe
1a0e1b5f6c
Added default to helper per @marcusmoore
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-19 20:23:11 +00:00
Brady Wetherington
12ed8800d1
Changed some spacing and added a comment as per Snipe
2023-12-19 20:06:48 +00:00
Brady Wetherington
82dd601661
Added back-migration for Big Locale Refactoring
2023-12-19 19:54:04 +00:00
snipe
081bd69d5a
Added helper method to map values
...
Signed-off-by: snipe <snipe@snipe.net >
2023-12-19 17:43:05 +00:00
akemidx
f112e31b46
changing log level from ERROR to LOG
2023-12-07 17:56:10 -05:00
akemidx
dc83689553
changing log level from ERROR to LOG
2023-12-07 17:50:25 -05:00
Marcus Moore
49136a4d67
Add tests for color helper
2023-11-08 12:35:42 -08:00
akemidx
4382adce85
typo in error log message
2023-11-08 15:29:29 -05:00
akemidx
2051ac785d
adding in error logging and code comments
2023-11-08 13:44:46 -05:00
akemidx
9cc89911f7
possibilitieeeeeeeeessss
2023-11-08 13:29:32 -05:00
akemidx
495521b70e
adjusting for less than 0 possibility
2023-11-08 12:51:51 -05:00
akemidx
154e71de74
shifting wrap around logic back into 0-265
2023-11-07 17:43:51 -05:00
Godfrey M
0eb50ceb3d
removes commented code
2023-09-11 09:36:38 -07:00
Godfrey M
e56628499c
fixed lost changes
2023-08-24 11:45:23 -07:00
Godfrey M
2b7a899ef8
removed unnecessary code
2023-08-24 11:43:44 -07:00
Godfrey M
011c09a3dd
working on getting notifications
2023-08-24 10:35:40 -07:00
snipe
443adc50da
Fixed unclosed brace
...
Signed-off-by: snipe <snipe@snipe.net >
2023-08-15 18:12:25 +01:00
Grant Le Roux
b1464e028c
Merge branch 'develop' into develop
2023-07-31 07:57:29 +08:00
snipe
a0a5ca1f40
Added strtolower for category type
...
Signed-off-by: snipe <snipe@snipe.net >
2023-07-19 08:56:17 +01:00
snipe
6d3bf1e5f5
Added additional method for inline
...
Signed-off-by: snipe <snipe@snipe.net >
2023-07-11 11:41:58 +01:00
snipe
9b5a67e31f
Use $Parsedown->line instead of $Parsedown->text
...
Signed-off-by: snipe <snipe@snipe.net >
2023-07-11 11:33:29 +01:00
snipe
150a2b572e
Use single “accessory” translation
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-24 07:14:02 -07:00
snipe
6bc0df73e8
Merge pull request #12661 from Godmartinz/gh12655_missing_translations
...
Adds translations for category types to index and edit of categories
2023-03-24 07:09:40 -07:00
Ivan Nieto Vivanco
fbb3684022
Add a condition to 'restart' the color index for the status pie chart
2023-03-23 12:43:02 -06:00
snipe
473211397f
Merge pull request #12708 from uberbrady/livewire_importer_no_subcomponent
...
Livewire importer without subcomponent
2023-03-21 23:07:04 -07:00
snipe
41eb2464e2
Forgot the static method declaration - derp
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-21 21:21:01 -07:00
snipe
647f47cdfe
Check for demo mode in the clear method for the controller
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-21 19:27:05 -07:00
snipe
a14d1b981d
Switched singleton to static helper method
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-21 19:22:18 -07:00
snipe
5217141dfb
Yuck, but added helper function to return the demo mode form warning
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-21 18:59:34 -07:00
Godfrey M
371e142bae
removes unnecessary function
2023-03-15 15:57:45 -07:00
Godfrey M
576b8f8c48
adds translations to edit and index of categories
2023-03-13 13:33:03 -07:00
snipe
f4bd307421
Added comments, removed gthe AgeFormat() helper method
...
Signed-off-by: snipe <snipe@snipe.net >
2023-03-08 16:47:27 -08:00