Commit Graph

708 Commits

Author SHA1 Message Date
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
Andreas Zweili ac71ee590f remove the non-working order_by 2020-02-23 11:39:58 +01:00
Andreas Zweili 3e3430d1b2 extend the notes 2020-02-16 22:10:50 +01:00
Andreas Zweili fc37a1f115 sort warranties by customer 2020-02-16 22:10:37 +01:00
Andreas Zweili 99ae403b75 disable the sort function for warranty customers
Currently this feature doesn't work because Customer is only a property and not
a really attribute of the Warranty model. Maybe I can add it by extending
django-tables2
2020-02-16 22:09:36 +01:00
Andreas Zweili 58a8673e1d add a view for all device warranties 2020-02-16 22:03:43 +01:00
Andreas Zweili c7eb173e32 limit the all_computers view to superusers 2020-02-16 21:37:33 +01:00
Andreas Zweili e1afbe7f51 add a decorator to limit a view to superusers 2020-02-16 21:37:05 +01:00
Andreas Zweili a4e86e7d79 update notes 2020-02-16 20:17:17 +01:00