Commit Graph

52 Commits

Author SHA1 Message Date
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
Andreas Zweili 473cbf8919 change the create computer URL to a button 2020-02-29 11:45:26 +01:00
Andreas Zweili 06f1a6699e Rename the ComputerCreateView 2020-02-29 11:45:06 +01:00
Andreas Zweili 0c9b94be69 Limit the customer dropdown for normal users 2020-02-29 11:44:16 +01:00
Andreas Zweili df86ca19fa add the customer pk to the create computer view 2020-02-28 17:45:12 +01:00
Andreas Zweili d2db343809 remove django-bootstrap4
most of this should be achievable without an additional plugin
2020-02-28 17:32:25 +01:00
Andreas Zweili 0364da19f1 filter for customer not owner 2020-02-28 17:31:49 +01:00
Andreas Zweili c4b02d6464 correct the computer details template 2020-02-27 22:13:36 +01:00
Andreas Zweili 58179b849e Move the computer_create link above the computers table 2020-02-27 22:01:44 +01:00
Andreas Zweili 51f4571ce0 change ComputerCreateView URL 2020-02-27 22:01:26 +01:00
Andreas Zweili 5adbe849b3 add ComputerUpdateView 2020-02-27 22:01:07 +01:00
Andreas Zweili 27b67f7950 move the computer forms to their own file 2020-02-27 22:00:17 +01:00
Andreas Zweili 044e8c29c2 use floppyforms for html5 inputs 2020-02-26 22:06:25 +01:00
Andreas Zweili 3da7b37e76 add a form to add computers 2020-02-26 21:56:53 +01:00
Andreas Zweili 965ee14c58 move the vertical margin from the columns to the cards 2020-02-25 22:27:58 +01:00
Andreas Zweili c6c60ff158 point the host link to a computer
I can't think of a scenario where a device would be a host to a computer.
2020-02-25 21:55:55 +01:00
Andreas Zweili 979933d436 improve responsivenes 2020-02-25 21:53:57 +01:00
Andreas Zweili 339a683a4f add a margin between the cards 2020-02-25 21:50:00 +01:00
Andreas Zweili 2287581b2f correct the indentation 2020-02-25 21:45:37 +01:00
Andreas Zweili 39f1d9b4fd modify the all_computers template to use bootstrap4 2020-02-25 21:42:18 +01:00
Andreas Zweili 9cbf760ef3 update device and computer details to bootstrap4 2020-02-25 21:17:59 +01:00
Andreas Zweili 9d56537394 update backup details to bootstrap4 2020-02-25 20:25:20 +01:00
Andreas Zweili ddb8dc2bba remove all the table templates with a single settings option 2020-02-23 12:59:20 +01:00
Andreas Zweili 9c0938b420 add a CoreTable class to inherit all tables from 2020-02-23 12:58:39 +01:00
Andreas Zweili 6ceb604dd4 add IPs to the computer details view 2020-02-16 14:48:29 +01:00
Andreas Zweili 0856902adf rename the device details block 2020-02-16 14:47:29 +01:00
Andreas Zweili 7156a78a69 to use template blocks computers need be called devices 2020-02-16 14:20:27 +01:00
Andreas Zweili 054a766034 replace template code with blocks 2020-02-16 14:20:06 +01:00
Andreas Zweili b6034bdc57 add warranties to the computer details 2020-02-16 12:59:44 +01:00
Andreas Zweili 35d2e24656 add the warranty relations to the computer template 2020-02-16 12:57:53 +01:00
Andreas Zweili 171d445e2b remove empty lines 2020-02-16 00:39:44 +01:00
Andreas Zweili 441fda2e1f add HardwareModel to the device app
devices like computers etc. usually have a hardware model/type. E.g. Dell
Precision 5530. In order to use the same name consistently we have the option
to select the model name from a drop down.
2020-02-14 20:26:24 +01:00
Andreas Zweili 49f1ac1ef5 correct line length 2020-02-08 10:31:26 +01:00
Andreas Zweili fc2a752803 rename query variables 2020-01-12 16:55:16 +01:00