Commit Graph

85 Commits

Author SHA1 Message Date
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
Andreas Zweili
f1b280e7cf add a GPU model 2020-04-30 15:40:00 +02:00
Andreas Zweili
61d1ee5ebc add two generic CPUs to the fixtures 2020-04-30 14:49:29 +02:00
Andreas Zweili
6198db4679 make various fields optional for the CPU model 2020-04-30 14:49:04 +02:00
Andreas Zweili
a905e350d6 rename the computer form tests 2020-04-27 21:27:58 +02:00
Andreas Zweili
8b65902abe remove user from test_computer_update_form 2020-04-21 18:50:04 +02:00
Andreas Zweili
b5013d8b36 add RamFormSet 2020-03-17 23:03:24 +01:00
Andreas Zweili
9b4ff27d25 add inline forms for warranties 2020-03-17 22:00:28 +01:00
Andreas Zweili
6dd0e38513 remove the names of some overly large capitalists
These companies already have far too much money at their disposal.
They might profit from the free advertising appearing in this
repository and we wouldn't want that wouldn't we?
2020-03-15 19:54:43 +01:00
Andreas Zweili
524f83cea6 test the ComputerForms with a normal user as well 2020-02-29 22:36:46 +01:00
Andreas Zweili
35f723a7c4 add test for ComputerUpdateForm 2020-02-29 21:28:39 +01:00
Andreas Zweili
8eb77ba0c5 add test for ComputerCreateForm 2020-02-29 21:11:23 +01:00
Andreas Zweili
c02e9ec4e0 add new line to file 2020-02-29 21:06:04 +01:00
Andreas Zweili
1b779482be split parameters over multiple lines 2020-02-29 21:05:37 +01:00
Andreas Zweili
d7374ccc7c seperate imports with lines from code 2020-02-29 21:05:18 +01:00
Andreas Zweili
1123aeb259 PEP8 add new line at the end of file 2020-02-29 19:00:47 +01:00
Andreas Zweili
e56c90d4d3 remove trailing comma 2020-02-29 19:00:23 +01:00
Andreas Zweili
7293d2b8b2 implement the utils.get_objects function 2020-02-29 15:49:00 +01:00
Andreas Zweili
7b511ccda2 add various comments 2020-02-29 15:35:46 +01:00
Andreas Zweili
039fe5f54c remove the kwargs from the form 2020-02-29 15:18:58 +01:00
Andreas Zweili
d4b48728c2 update the forms to use the new utils 2020-02-29 15:18:29 +01:00
Andreas Zweili
afff82b423 Limit the dropdowns to only allowed items 2020-02-29 12:25:14 +01:00
Andreas Zweili
f10e4f7800 pass the request user to the ComputerUpdateForm 2020-02-29 12:24:46 +01:00
Andreas Zweili
c9e5963c07 use crispy-forms to render filter 2020-02-29 12:02:07 +01:00
Andreas Zweili
5753d348ea Set initial value for customer dropdown 2020-02-29 11:46:44 +01:00
Andreas Zweili
fabdfe4c9b pass various variables to CreateComputerForm 2020-02-29 11:46:18 +01:00