Commit Graph

110 Commits

Author SHA1 Message Date
Andreas Zweili 7efceb4954 format with black 2022-03-27 14:50:44 +02:00
Andreas Zweili 799b2a57dd add a custom user model 2021-12-30 18:31:47 +01:00
Andreas Zweili 6fc66ffb78 limit the dropdowns in device and computer forms 2021-12-30 14:57:47 +01:00
Andreas Zweili c2104b23f7 fix the computer_update_view 2021-12-29 19:18:30 +01:00
Andreas Zweili 9cc47c361b replace the computer_update_view with a FBV 2021-12-29 19:12:32 +01:00
Andreas Zweili ba40df90b5 fix a typo 2021-12-26 16:09:56 +01:00
Andreas Zweili 20524c20d4 remove the get_objects util 2021-12-24 13:12:07 +01:00
Andreas Zweili f901999aee make get_customers an internal function 2021-12-24 12:55:34 +01:00
Andreas Zweili c648fd1874 replace decorator with generic util 2021-12-24 12:42:36 +01:00
Andreas Zweili f9212d2cbe rewrite the computers_table_view to use the new util 2021-12-24 12:32:48 +01:00
Andreas Zweili d2c5c03d12 make sure that the description columns get wrapped properly 2020-08-03 21:35:20 +02:00
Andreas Zweili 746054c295 make all tables responsive 2020-08-03 21:10:05 +02:00
Andreas Zweili 9bc3873317 make the delete column unsortable 2020-08-03 17:37:08 +02:00
Andreas Zweili fec98db1b8 add delete button to computers table 2020-08-03 16:35:10 +02:00
Andreas Zweili a0191b6dc2 PEP8 2020-08-03 13:41:49 +02:00
Andreas Zweili 9f948fe396 add create and delete views for RAIDs 2020-06-29 22:43:39 +02:00
Andreas Zweili 72b8c86a98 add create and delete views for backups 2020-06-29 13:36:12 +02:00
Andreas Zweili 16fc66385f add form to delete a ComputerSoftwareRelation 2020-06-28 19:12:49 +02:00
Andreas Zweili 5640d0ab3f PEP8 2020-06-28 19:08:14 +02:00
Andreas Zweili 61d966f785 add a form to create a ComputerSoftwareRelation 2020-06-28 19:04:55 +02:00
Andreas Zweili d08a1f0557 add a quick way to add a host and the OS
it might be nice to have a seperate form for both of them however this is just
much quicker to add and when I limit the hosts they will be limited here as
well. So for the moment this is good enough.
2020-06-28 17:17:39 +02:00
Andreas Zweili 960a698c36 add tests for all the hardware forms 2020-06-15 22:53:33 +02:00
Andreas Zweili 5c69552c50 correct the urls for the hardware forms 2020-06-15 22:53:16 +02:00
Andreas Zweili 49fc10a4dd add forms and views for the ComputerDiskRelation 2020-06-15 21:39:58 +02:00
Andreas Zweili 1ddf0a23e6 add forms and views for the ComputerGpuRelation 2020-06-15 21:39:31 +02:00
Andreas Zweili 3311619ef7 add forms and views for the ComputerCpuRelation 2020-06-15 21:38:21 +02:00
Andreas Zweili 1aa48a7109 make the confirmation template generic 2020-06-15 21:36:41 +02:00
Andreas Zweili 7717255f18 add delete and create views for the ram relation 2020-06-09 21:59:20 +02:00
Andreas Zweili 29f869ea78 add various create buttons to the computer detail view 2020-06-08 22:11:49 +02:00
Andreas Zweili afd1320a91 Merge branch 'master' into clean-out-computer-forms 2020-06-08 17:03:46 +02:00
Andreas Zweili e79eba2828 show all models in the admin interface
Since we decided to create many forms in the frontend the admin interface
should really be a way to access all models even the ones which aren't
accessible from the front end.
2020-06-08 17:02:15 +02:00
Andreas Zweili ef8fbf1b1c fix the test_computer_update_form test 2020-05-31 15:50:29 +02:00
Andreas Zweili 52d438a96f add tests for the computer views 2020-05-26 23:26:44 +02:00
Andreas Zweili 94381045c4 add ComputerDeleteView 2020-05-26 23:26:31 +02:00
Andreas Zweili 19eae6768a remove the various formsets from the computer forms
The formsets are currently just too much of a hasle. I can do 90% of the
functionality I want without them and don't have problems with adding a new
relationship everytime I'm updating the computer object.
2020-05-26 23:25:21 +02:00
Andreas Zweili 58ee81791e add test_computer_create_view 2020-05-26 22:37:18 +02:00
Andreas Zweili d2784a6534 match string representations to the project standard 2020-05-26 22:26:30 +02:00
Andreas Zweili 5610e8d1ca change the string representation for raid to the project standard 2020-05-26 22:09:47 +02:00
Andreas Zweili 61bbe30a3d add a Cancel button to the computer_create template 2020-05-04 09:41:22 +02:00
Andreas Zweili e1a5c572d8 move each IP into it's own table row
there where too many complications with creating the urls and the various
buttons. This way may be a bit less pretty but for the moments it's a much
stabler way
2020-05-03 22:10:11 +02:00
Andreas Zweili 17053f586b remove the ConnectedDevice model 2020-05-03 21:48:40 +02:00
Andreas Zweili 1279311055 add missing csrf tokens 2020-05-02 22:28:07 +02:00
Andreas Zweili c4f9f597e2 add a WarrantyCreateView 2020-05-01 16:57:38 +02:00
Andreas Zweili 7bf0c4ff0a remove unnecessary code 2020-05-01 16:12:01 +02:00
Andreas Zweili 30daf62383 add a comment to the Create forms 2020-05-01 16:11:47 +02:00
Andreas Zweili 5c980718ee order the computer view imports alphabetically 2020-05-01 13:08:57 +02:00
Andreas Zweili 7268d4eb00 correct indentation 2020-04-30 15:44:52 +02:00
Andreas Zweili 6effe5fea4 move the div element outside of the if block 2020-04-30 15:44:24 +02:00
Andreas Zweili ac4be915a1 correct the gpu test 2020-04-30 15:43:58 +02:00
Andreas Zweili 308d05ceae exend the cpu test 2020-04-30 15:43:48 +02:00