Commit Graph

69 Commits

Author SHA1 Message Date
Andreas Zweili 65bef6f3af multiple changes related to crispy-forms 2022-02-02 22:27:48 +01:00
Andreas Zweili c4f5d572f6 slightly better styling for the login page 2022-01-28 17:44:38 +01:00
Andreas Zweili 72720bbbc2 reformat the login page 2022-01-28 17:39:35 +01:00
Andreas Zweili 1e9804cde3 move the modal to core 2022-01-10 17:53:10 +01:00
Andreas Zweili 2bb830c105 add a file for a partial modal 2022-01-09 11:29:53 +01:00
Andreas Zweili 4c77979bb9 move the closeModal function to the core template 2022-01-08 17:32:12 +01: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 291acd7622 add tests for get_objects_for_customer 2021-12-28 16:17:35 +01:00
Andreas Zweili a1161956db add tests for get_all_objects_for_allowed_customers 2021-12-26 16:10:03 +01:00
Andreas Zweili ba40df90b5 fix a typo 2021-12-26 16:09:56 +01:00
Andreas Zweili c8b7de571e rename test file 2021-12-26 15:38:41 +01:00
Andreas Zweili d03fc187fe add tests for get_object_with_view_permission 2021-12-26 15:37:30 +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 b78780555d rename util function to retrieve objects 2021-12-24 12:48:56 +01:00
Andreas Zweili 819628d008 add a util to get objects for a specific customer 2021-12-24 12:32:28 +01:00
Andreas Zweili 05b87c14cf fix the customer_list_view 2021-12-23 22:53:42 +01:00
Andreas Zweili 8be3a2251e add a util to get objects 2021-12-23 22:12:14 +01:00
Andreas Zweili b4b331ad7b rewrite get_object_with_view_permission
it is now more generic
2021-12-23 21:33:48 +01:00
Andreas Zweili ffae6e4ac6 add a custom function for view_permissions 2021-12-23 19:28:47 +01:00
Andreas Zweili ba3e40f1c2 create a first working example 2021-12-21 17:51:57 +01:00
Andreas Zweili 41bf9b1dc8 add a basic htmx config 2021-12-11 14:22:24 +01:00
Andreas Zweili 9f6d68fbbc format base 2021-12-10 18:56:56 +01:00
Andreas Zweili 980c03e666 remove all external javascript libraries
I'm currently not using any of them so it doesn't really make sense to
include them
2020-08-03 17:38:20 +02:00
Andreas Zweili a0191b6dc2 PEP8 2020-08-03 13:41:49 +02:00
Andreas Zweili 0ae6a6688e extend the models with 'ordering' 2020-07-07 22:12:57 +02:00
Andreas Zweili c07978fa79 add test for verbose name filter 2020-06-15 22:05:28 +02:00
Andreas Zweili 9e34bf1f54 add a filter to get the verbose name for an object 2020-06-15 21:36:03 +02:00
Andreas Zweili f7ecf9ca82 change the favicon 2020-06-15 19:35:00 +02:00
Andreas Zweili 459771924c move the description field to the base Company model 2020-06-08 21:07:40 +02:00
Andreas Zweili 288c4fdd25 add favicon 2020-05-24 18:38:23 +02:00
Andreas Zweili 94ecbd54f9 add material font icons 2020-05-02 21:52:56 +02:00
Andreas Zweili 8310a1569a correct the static files setup 2020-04-20 15:22:48 +02:00
Andreas Zweili c6803933fc remove unused file 2020-03-01 11:49:59 +01:00
Andreas Zweili df31124143 allow non admins to see the warranties table
I reckon the customer would be interested in the warranties of his
devices as well.
2020-03-01 11:14:38 +01:00
Andreas Zweili 9f30375f6b change the superuser_required decorator to return 404 2020-03-01 11:12:29 +01:00
Andreas Zweili 7e2cda3bfc remove empty line 2020-02-29 21:07:04 +01:00
Andreas Zweili 49c0f89f11 remove unused file 2020-02-29 21:06:52 +01:00
Andreas Zweili 2646b964ca fix the get_objects function 2020-02-29 19:26:17 +01:00
Andreas Zweili 25b2c3c02d Use a better string for the wrong model name 2020-02-29 19:25:00 +01:00
Andreas Zweili 19ff961cfa correct get_objects to return 404 with wrong value 2020-02-29 19:01:16 +01:00
Andreas Zweili ceb1aa59cc add test_get_objects_raises_404 2020-02-29 18:54:04 +01:00
Andreas Zweili 7b511ccda2 add various comments 2020-02-29 15:35:46 +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 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 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