Commit Graph

1348 Commits

Author SHA1 Message Date
Andreas Zweili b78780555d rename util function to retrieve objects 2021-12-24 12:48:56 +01:00
Andreas Zweili c648fd1874 replace decorator with generic util 2021-12-24 12:42:36 +01:00
Andreas Zweili f9212d2cbe rewrite the computers_table_view to use the new util 2021-12-24 12:32:48 +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 554a6f874d rewrite CustomerCreateView to FBV 2021-12-23 22:44:31 +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 2ff96a4976 refactor customer_detail_view 2021-12-23 19:14:20 +01:00
Andreas Zweili 3e14c00220 remove unused import 2021-12-23 19:02:58 +01:00
Andreas Zweili c49fa57994 implement the object permission directly 2021-12-23 19:02:18 +01:00
Andreas Zweili 3f206daaf4 rewrite CustomerDetailView to a FBV 2021-12-23 18:50:03 +01:00
Andreas Zweili 52bdd8efae PEP8 2021-12-23 18:38:00 +01:00
Andreas Zweili 5ad5851926 remove unnecessary flag
I don't want the users to use the admin interface.
2021-12-23 18:36:21 +01:00
Andreas Zweili c99e54049c use TemplateResponse in htmx_create_customer 2021-12-23 15:24:50 +01:00
Andreas Zweili 7945dadd65 Fix the customer delete view 2021-12-23 15:11:41 +01:00
Andreas Zweili 478c07160e Add a slight hack to reload the page after success 2021-12-23 15:10:29 +01:00
Andreas Zweili c1fbf81bd4 rewrite htmx test to FBV 2021-12-22 19:14:18 +01:00
Andreas Zweili 381c5c9568 make customer names unique 2021-12-22 19:13:44 +01:00
Andreas Zweili f042f5f1d4 ignore pycharm config for the moment 2021-12-22 19:13:29 +01:00
Andreas Zweili 1573d148ad fix the form 2021-12-21 18:17:58 +01:00
Andreas Zweili ba3e40f1c2 create a first working example 2021-12-21 17:51:57 +01:00
Andreas Zweili cf59bf9323 linting 2021-12-21 17:30:21 +01:00
Andreas Zweili 4d8bfce029 Merge branch 'master' into htmx 2021-12-20 21:18:46 +01:00
Andreas Zweili 32e667a9a2 fix the flake 2021-12-20 21:18:24 +01:00
Andreas Zweili b546901623 remove depricated urls 2021-12-20 19:42:44 +01:00
Andreas Zweili cc48f11c41 remove broken code 2021-12-20 19:34:48 +01:00
Andreas Zweili f5ba9fdcfd change nginx port to 8080
On the code server I can't use 80
2021-12-12 13:51:03 +01:00
Andreas Zweili 41bf9b1dc8 add a basic htmx config 2021-12-11 14:22:24 +01:00
Andreas Zweili 64cfbe126f
Merge pull request #58 from Nebucatnetzer/dependabot/pip/requirements/django-3.2.10
Bump django from 3.2 to 3.2.10 in /requirements
2021-12-10 19:02:03 +01:00
dependabot[bot] f3fdbee28d
Bump django from 3.2 to 3.2.10 in /requirements
Bumps [django](https://github.com/django/django) from 3.2 to 3.2.10.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.2...3.2.10)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-10 18:00:44 +00:00
Andreas Zweili 9f6d68fbbc format base 2021-12-10 18:56:56 +01:00
Andreas Zweili 11d23f4cb8 increase the Django version to 3.2 2021-12-10 18:52:42 +01:00
Andreas Zweili 60764fb061 fix the required django setup 2021-12-08 19:34:39 +01:00
Andreas Zweili ec3db965eb add flake.lock 2021-12-08 19:34:28 +01:00
Andreas Zweili 5fe03c145c rewrite shebang 2021-12-08 19:23:42 +01:00
Andreas Zweili 0c7d1d3a30 add flake 2021-12-08 18:07:49 +01:00
Andreas Zweili d2c5c03d12 make sure that the description columns get wrapped properly 2020-08-03 21:35:20 +02:00
Andreas Zweili 746054c295 make all tables responsive 2020-08-03 21:10:05 +02: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 9bc3873317 make the delete column unsortable 2020-08-03 17:37:08 +02:00
Andreas Zweili 190569cdb0 add a delete button to the license tables 2020-08-03 17:33:50 +02:00
Andreas Zweili 5aed28748a add a delete button to the devices table 2020-08-03 17:15:37 +02:00
Andreas Zweili 1ddca51d77 add a delete button to the users table 2020-08-03 17:14:54 +02:00
Andreas Zweili bad049a521 add a delete button to the nets table 2020-08-03 17:08:57 +02:00
Andreas Zweili b06f7e961b add a delete button to the backups table 2020-08-03 16:49:45 +02:00
Andreas Zweili 0bcb74a397 add a customer property to Backup model 2020-08-03 16:49:09 +02:00
Andreas Zweili 506401bf99 move the device delete button into the devices table 2020-08-03 16:38:46 +02:00
Andreas Zweili f57b3a7baf add delete button to customers table 2020-08-03 16:35:36 +02:00