Commit Graph

727 Commits

Author SHA1 Message Date
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
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