Commit Graph

866 Commits

Author SHA1 Message Date
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 ceb1aa59cc add test_get_objects_raises_404 2020-02-29 18:54:04 +01:00
Andreas Zweili 91d2cdb0b3 add pytest args to vscode project config 2020-02-29 18:53:24 +01:00
Andreas Zweili ec931bc0ca add vscode project files 2020-02-29 17:07:46 +01:00
Andreas Zweili 7293d2b8b2 implement the utils.get_objects function 2020-02-29 15:49:00 +01:00
Andreas Zweili 09d3e522ac implemente the utils.get_customers function 2020-02-29 15:48:29 +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 26dcbf4cb5 add a function to get objects limited to customer
this function will return a queryset containing only items which are
related to customers the user is allowed to view.
2020-02-29 15:16:26 +01:00
Andreas Zweili e882e062e8 add function to get customer objects for user
With this function we get a list of customers the user is allowed to view.
2020-02-29 15:00:22 +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 42ecb7f5dd indent footer 2020-02-29 11:50:09 +01:00
Andreas Zweili 404de33ffc add margin around footer 2020-02-29 11:47:00 +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 38e3491f82 colour warranty cells depending on the timedelta of valid_until 2020-02-25 23:03:11 +01:00
Andreas Zweili 12b398f252 remove an empty line 2020-02-25 23:02:37 +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 4faf0975e9 remove card withs from backup details view 2020-02-25 22:24:25 +01:00
Andreas Zweili 9602376201 update the user_details template to use bootstrap4 2020-02-25 22:24:08 +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 ac4ff86ea9 update the core template to bootstrap4 2020-02-25 20:25:40 +01:00
Andreas Zweili 9d56537394 update backup details to bootstrap4 2020-02-25 20:25:20 +01:00
Andreas Zweili 34a89a0df7 Merge branch 'master' of git.2li.ch:Nebucatnetzer/network_inventory 2020-02-25 19:25:34 +01:00
Andreas Zweili cf2e7ba536 move the closing paragraph tag into the form tag 2020-02-25 12:54:50 +01:00
Andreas Zweili c9790523f9 replace semantic css with bootstrap
Bootstrap seems to be more actively developed therefore I'm replacing Semantic
UI with Bootsprap 4.
2020-02-23 13:14:33 +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