Commit Graph

708 Commits

Author SHA1 Message Date
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
Andreas Zweili 6a8c4a0345 update notes 2020-01-14 23:08:22 +01:00
Andreas Zweili 95d4193cc2 add various links I want to keep track of 2020-01-13 23:09:58 +01:00
Andreas Zweili 3d5d101b25 add readd org-mode notes
since I'm mostly coding in Emacs anyway it makes more sense to have my notes in
org format directly in the repository. While I could've kept the markdown file
from Joplin it's better to use the more flexible org format instead of markdown.
2020-01-13 23:05:50 +01:00
Andreas Zweili fc2a752803 rename query variables 2020-01-12 16:55:16 +01:00
Andreas Zweili 8afd4e13c4 move warranty models to device app 2020-01-12 16:21:12 +01:00
Andreas Zweili 391ffa9ad8 rename inventory app to computers 2020-01-12 14:36:44 +01:00
Andreas Zweili 67fa2792d9 extend the helper functions with the escape function
When the object_to_find string contained a special character which the django
template system escapes then the test filed because the helpers where looking
for the unescaped string. Now they escape the string as well.
2020-01-12 14:23:10 +01:00