Commit Graph

27 Commits

Author SHA1 Message Date
Matthew Smith
15acc02f74 Switched URL to use asset_id rather than the database ID 2019-12-04 20:13:09 +00:00
Matthew Smith
c4cad76653 Removed unused imports 2019-12-04 19:18:43 +00:00
127b22fe71 Attempt at fancy supplier search
#374
2019-11-24 14:36:53 +00:00
22f0041eaf Add ability to search supplier list. Partial #374 2019-11-24 14:13:47 +00:00
Matthew Smith
3de58740c6 Added multi-option search along.
Added auto hiding of categories in search unless selected.
Added field allowing to choose whether category auto-hidden

Fixes #353
2019-10-16 18:23:16 +01:00
Matthew Smith
2d84a598f7 Fixes #357, removes the ability to delete assets 2019-10-16 14:11:20 +01:00
Matthew Smith
8ec27eb075 Added asset_id autofill for asset creation and duplication 2019-10-15 01:13:14 +01:00
Matthew Smith
85a20dac26 Assets now conforms to pep8 2019-10-14 14:07:06 +01:00
Matthew Smith
aac900318e Cables are now a thing, unfortunately by making a monolithic Asset model
Co-authored-by: Arona Jones <aj@aronajones.com>
2019-10-14 00:05:18 +01:00
Matthew Smith
b7e14b7dc3 Added form validation
* Asset IDs must be unique
* Asset IDs that are legacy and unchange have no validation applied
* Asset IDs must be alphanumeric
* Values must be >=0
* Lengths, CSAs, Circuits and Cores of cables must all be >0
2019-10-08 22:34:03 +01:00
Matthew Smith
fe1541acbf Cables can now be created. 2019-10-08 01:33:38 +01:00
Matthew Smith
98b9697366 Temporary fix to cable_form tag. No cable functionality has actually been added, that can be done once the frontend is in place to handle it. 2019-10-07 10:45:23 +01:00
Matthew Smith
85db26bdb1 Changed functionality of asset search - now IDs are always searched even if the string is under 3 characters in length 2019-10-06 01:13:26 +01:00
Matthew Smith
7b795ac332 Fixed some bugs with search 2019-10-06 01:03:41 +01:00
Matthew Smith
d944f99e1f Fixed cable form fields not appearing, and made the 'cable details' group appearing more reliable 2019-10-05 23:19:22 +01:00
a22956cc62 Initial work on cable template things 2019-10-05 22:42:21 +01:00
Matthew Smith
d5f08a8bff Started adding functionality for assets and cables forms to be dynamically swapped 2019-10-05 21:16:42 +01:00
Matthew Smith
7359e05427 Started adding functionality for assets and cables forms to be dynamically swapped 2019-10-05 21:16:03 +01:00
Matthew Smith
e3cbcbd151 Fixed search and implemented an asset search api
Added asset picker for parent attribute

Co-authored-by: Panagiotis Petridis <lPanagiotisPetridisl@gmail.com>
2019-10-05 20:18:07 +01:00
Matthew Smith
1d253aa452 Fixed edit always being invalid due to always failing form validation 2019-10-05 15:08:40 +01:00
Matthew Smith
3aa3498d3a Split out create and duplicate templates, got both working 2019-10-05 14:59:15 +01:00
Matthew Smith
769137fabd Started work on improving asset form update and validation - requires de-spaghettifying of asset_update.html before continuing 2019-10-05 01:44:54 +01:00
5bfa737f6b First pass at filters
They're currently exclusive with each other and search, which ain't quite right!

Also stopped search from searching comments.
2019-10-02 22:49:54 +01:00
Matthew Smith
8599a2ae5b Improved handling of asset ID when searching 2019-10-02 21:54:39 +01:00
Matthew Smith
207bf7bd7a Added dependency django-polymorphic
Model change to take advantage of said polymorphism
Implemented asset search
2019-10-02 21:12:24 +01:00
Matthew Smith
6cff7c090c Modified configs so that templates are rendered. Functionality and styling are NOT complete (need to change css framework) 2019-10-01 18:10:34 +01:00
Matthew Smith
1e1f3037f8 Preparing files for transfer to PyRIGS 2019-10-01 13:22:16 +01:00