Commit Graph

1741 Commits

Author SHA1 Message Date
4bf399090b FIX: Update table row colouration for production statuses
TODO: Make the colour defined by the status as opposed to hardcoding it...
2019-12-04 21:11:33 +00:00
c249cf7c60 CHORE: Fix RIGS Sample Data test
I blame @mattysmith22 again ...
2019-12-04 20:47:26 +00:00
da384fbae1 CHORE: Delete duplicate risk assessment migration
Surprisingly, not my fault, it was @mattysmith22
2019-12-04 20:39:00 +00:00
43b7d5178d Merge branch 'master' into assets 2019-12-04 20:28:45 +00:00
e22b288984 CHORE: Fix pep8
Again. Again again.
2019-12-04 20:25:18 +00:00
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
Matthew Smith
bb44b0c88b Made changes following the review from David Taylor 2019-12-04 19:07:21 +00:00
5210afc772 Combine client authorisation information in rig detail (#373)
* Combine client authorisation information in rig detail

* Fix stuff for CI

pep8 compliance
migration
2019-11-26 17:26:32 +00:00
Matthew Smith
d335ab3a80 Fixed asset picker backend 2019-11-25 13:40:16 +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
0a724e645f Improved colouring of list items so that Lost & Binned are actually visible to the human eye 2019-10-31 19:36:57 +00:00
Matthew Smith
d7e5e61b49 Fixed outdated link to old duplicate 2019-10-31 19:33:37 +00:00
David Taylor
4da8040351 Only display embedded scrollbars when required 2019-10-30 13:16:14 +00:00
a5da5ad7a8 Remove top right form buttons from create/update
Works on RIGS coz it's just one button. Makes a mess here imo.
2019-10-23 13:11:46 +01:00
7bc47f708c Hide asset list quicklinks on mobile. Partial #336.
Bit of a sledgehammer approach I know...
2019-10-23 13:09:08 +01:00
3d148a7196 Add RIGS hyperlink to assets header. Closes #367.
I'd rather have it further over, but that breaks out of the navbar, and I don't want to move the assets links more right...
2019-10-22 17:56:56 +01:00
b2916c53b5 pep8 compliance, again 2019-10-22 17:34:14 +01:00
Matthew Smith
aa177712b6 Improved validation check on models 2019-10-20 01:07:59 +01:00
Matthew Smith
c8e522d400 Fixed selenium "Object reference chain is too long" exception.
It seems like it couldn't translate the value returned by the script
2019-10-18 02:18:27 +01:00
Matthew Smith
52f13a53a0 Added asset database link to the rigs main page. 2019-10-18 02:18:27 +01:00
Matthew Smith
7864b06ddd Fixed statuses other rhan "In service" not being hidden by default. 2019-10-18 02:18:27 +01:00
Matthew Smith
b39f835a38 Fixed asset permissions 2019-10-18 02:18:27 +01:00
9f9ccd3b0c Fix sample asset data command to pass pep8 2019-10-17 11:44:48 +01:00
Matthew Smith
1b12953803 Improved asset DB's sample data generation
* Now  gets IDs from the model's `get_available_asset_id()` function.
* `parent` field is also now generated for most (25%) assets and cables
* Cables are now generated
2019-10-17 11:10:19 +01:00
ed956f975f Allow asset sample data command in staging 2019-10-16 23:41:14 +01:00
Matthew Smith
9495fa2fdb Merged all sample data generation. 2019-10-16 21:47:45 +01:00
Matthew Smith
9de6c1046c Fixed date persistence, Fixes #362 2019-10-16 20:31:23 +01:00
Matthew Smith
3079ee0814 Select now store selections between forms.Partial: #362 2019-10-16 20:06:20 +01: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
64439ff53b Merge assetforms -> main assets branch 2019-10-14 14:16:24 +01:00
Matthew Smith
85a20dac26 Assets now conforms to pep8 2019-10-14 14:07:06 +01:00
Matthew Smith
743d290405 Assets are now ordered by asset_id. Fixes #355 2019-10-14 00:19:38 +01:00
Matthew Smith
d2ba39bc60 Merge of cable additions 2019-10-14 00:13:00 +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
f5fc41ce30 Initial work on asset DB perms
Partial #352.
2019-10-11 17:41:48 +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
1d6208414f Fix old duplicate link 2019-10-08 18:32:49 +01:00
5c9d7466c2 Change asset buttons - added cancel button, moved stuff 2019-10-08 18:01:15 +01:00
dc68a1f808 Improve handling of really long strings
Partially resolves #350, my table fix/hack doesn't work on mobile.
2019-10-08 17:51:33 +01:00
1811cc98ba Oops. Create is an edit state... 2019-10-08 17:04:10 +01:00
1b124a9da9 Partialize alllllll the things
Split each form section into its own partial which handles both the form and display view of that section.
2019-10-08 16:49:10 +01:00
bfd4a380f3 Wrap cableform input groups 2019-10-08 13:56:56 +01:00
f9c851b960 Sod it. Cable form display now depends only on checkbox state 2019-10-08 13:53:24 +01:00
Matthew Smith
f8a9062b8e Merge branch 'asset-assetforms' of https://github.com/nottinghamtec/PyRIGS into asset-assetforms 2019-10-08 01:34:01 +01:00
Matthew Smith
fe1541acbf Cables can now be created. 2019-10-08 01:33:38 +01:00
d30bd9850d Align text against buttons (middle) in asset list 2019-10-07 16:46:15 +01:00