Commit Graph

615 Commits

Author SHA1 Message Date
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
Andreas Zweili 771b698197 remove the hardcoded years text 2020-02-16 20:16:16 +01:00
Andreas Zweili da1375a030 calculate the warranty duration from the dates provided 2020-02-16 20:15:47 +01:00
Andreas Zweili 8dc93dd398 add nets to the ConnectedDeviceAdmin 2020-02-16 19:30:06 +01:00
Andreas Zweili 0443f73c66 add warranty test 2020-02-16 18:00:58 +01:00
Andreas Zweili dc70daa5ab display all waranty information in device details 2020-02-16 17:19:23 +01:00
Andreas Zweili 1f4c3f997d add an additional network to a connected_device test 2020-02-16 17:03:53 +01:00
Andreas Zweili f042d4fd74 remove duplicate test
since I move the device details to a separate template block I only need the
test in one place.
2020-02-16 17:01:55 +01:00
Andreas Zweili 95161cda3f group ips by the nets 2020-02-16 16:56:46 +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 7f5409aa8f display the warranty in the device views 2020-02-16 14:21:29 +01:00
Andreas Zweili 0248f6a6f3 use the template blocks in the device templates 2020-02-16 14:21:09 +01:00
Andreas Zweili b204404326 add the net name to the ip address 2020-02-16 14:20:56 +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 4ed71e8472 add various template blocks 2020-02-16 14:19:35 +01:00
Andreas Zweili b781192138 correct the string property for the warranty model 2020-02-16 13:00:25 +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 be63c3fc0b readd the development.sh script
We still need the django runserver command because gunicorn sometimes needs a
restart for certain things which makes development quite slow.
2020-02-16 10:20:03 +01:00
Andreas Zweili 72831376e4 Revert "use gunicorn in the run.sh script and remove production.sh"
This reverts commit 63fedf93c2.
2020-02-16 10:17:34 +01:00
Andreas Zweili 171d445e2b remove empty lines 2020-02-16 00:39:44 +01:00
Andreas Zweili 3e4dc37cb6 add the Location model to the admin interface 2020-02-16 00:16:16 +01:00
Andreas Zweili 3f1ae77534 update the docs 2020-02-15 18:57:34 +01:00
Andreas Zweili 47b1f81a89 add ConnectedDevice views 2020-02-15 18:50:51 +01:00
Andreas Zweili d7800ca0f7 add a nginx container as a reverse proxy 2020-02-15 17:58:16 +01:00
Andreas Zweili d0343b7dd8 move the static files to the correct place 2020-02-15 17:58:10 +01:00
Andreas Zweili 63fedf93c2 use gunicorn in the run.sh script and remove production.sh 2020-02-15 15:31:57 +01:00
Andreas Zweili c7d35a6420 extend the README 2020-02-15 15:25:54 +01:00
Andreas Zweili af4932db07 disable debugging mode in the example .env file 2020-02-15 15:25:36 +01:00
Andreas Zweili 01a989eee8 copy the .env file before building the container
travis showed some warnings that the variables weren't defined in the compose
file.
2020-02-15 15:21:39 +01:00
Andreas Zweili 778ad9f08e add support for an .env file 2020-02-15 15:19:11 +01:00
Andreas Zweili abe7c93b18 Revert "mapp the db volume to a local directory"
This reverts commit 008eb834c0.
For development it's currently easier if it's a normal docker volume otherwise
some editors like Visual Studio Code freak out because they can't access the
db_data folder.
2020-02-15 15:08:08 +01:00
Andreas Zweili 3a9b5cfbde add postgres password
otherwise the system won't run
2020-02-15 00:55:45 +01:00
Andreas Zweili 55ba1f0375 Merge branch 'current' 2020-02-15 00:36:34 +01:00
Andreas Zweili 0d14efdd00 update django to version 2.2.10 2020-02-15 00:30:04 +01:00
Andreas Zweili 008eb834c0 mapp the db volume to a local directory 2020-02-15 00:29:49 +01:00
Andreas Zweili 7c26504208 add a new task 2020-02-14 20:34:38 +01:00
Andreas Zweili d1687f8143 move a task to done 2020-02-14 20:34:31 +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 e450ee755f extend the RM with the HardwareModel class 2020-02-14 19:43:01 +01:00
Andreas Zweili 49f1ac1ef5 correct line length 2020-02-08 10:31:26 +01:00
Andreas Zweili 836bcb4b25 fix the preamble 2020-01-14 23:11:32 +01:00