Commit Graph

148 Commits

Author SHA1 Message Date
Andreas Zweili 2bfe3f6aee add comments 2020-05-26 22:26:22 +02:00
Andreas Zweili ee2af48a2c add a test for warranties with a duration > 365 days 2020-05-26 22:25:51 +02:00
Andreas Zweili d125937b10 remove the superuser property from the warranty view tests 2020-05-26 22:13:54 +02:00
Andreas Zweili 875be1a3b7 add test_device_in_net_delete_view 2020-05-25 21:52:58 +02:00
Andreas Zweili 653db0134a add test_device_in_net_update_view 2020-05-25 21:52:45 +02:00
Andreas Zweili a29f04b62b add test_device_in_net_create_view 2020-05-25 21:52:31 +02:00
Andreas Zweili e31d2a793f add test_warranty_delete_view 2020-05-25 21:35:06 +02:00
Andreas Zweili e0c4347894 add test_warranty_update_view 2020-05-25 21:34:52 +02:00
Andreas Zweili 8a94679872 convert the tests to use the test client
using the test client ensures that the whole stack gets tested and not just the
view.
2020-05-24 22:20:18 +02:00
Andreas Zweili b3fde54abe add test for WarrantyCreateView 2020-05-24 21:58:26 +02:00
Andreas Zweili d42281ec08 add success_url to DeviceUpdateView 2020-05-24 21:56:43 +02:00
Andreas Zweili b5a267fa88 add test for device_update_view 2020-05-24 21:54:14 +02:00
Andreas Zweili f56198117c remove test for absent device
we don't need to test that Django is doing its job.
2020-05-24 21:53:28 +02:00
Andreas Zweili 57139bd41b add tests for device create and delete view 2020-05-24 21:12:52 +02:00
Andreas Zweili a8296397a8 add a Cancel button 2020-05-04 09:40:18 +02:00
Andreas Zweili 59fa44f4a4 add a DeviceInNetDeleteView 2020-05-03 22:18:16 +02:00
Andreas Zweili 8b48110d79 add a DeviceInNetUpdateView 2020-05-03 22:13:47 +02:00
Andreas Zweili fd14dcd748 display the IP status again 2020-05-03 22:13:10 +02:00
Andreas Zweili 696356bd8a remove the nets property from the Device model
since we remove the grouping function from the device details we don't need it
anmore.
2020-05-03 22:11:44 +02:00
Andreas Zweili e1a5c572d8 move each IP into it's own table row
there where too many complications with creating the urls and the various
buttons. This way may be a bit less pretty but for the moments it's a much
stabler way
2020-05-03 22:10:11 +02:00
Andreas Zweili bfc6499f96 add a cancel button to the warranty update form 2020-05-03 21:59:01 +02:00
Andreas Zweili 17053f586b remove the ConnectedDevice model 2020-05-03 21:48:40 +02:00
Andreas Zweili 02b8657ba2 add a Add button to the ip table 2020-05-03 21:18:30 +02:00
Andreas Zweili 800ea71f26 add url to deviceInNetCreateView 2020-05-03 21:13:55 +02:00
Andreas Zweili 96b574d1ab add DeviceInNetCreateView 2020-05-03 21:12:58 +02:00
Andreas Zweili a1e697971a add device_in_net_create template 2020-05-03 21:11:43 +02:00
Andreas Zweili 898787a3fb add DeviceInNetForm 2020-05-03 21:11:31 +02:00
Andreas Zweili 42367297d8 add comment to form classes 2020-05-03 20:08:57 +02:00
Andreas Zweili 7c3ab5abf6 correct the title in the warranty_create link 2020-05-03 20:07:50 +02:00
Andreas Zweili 48c5dedb01 add a WarrantyUpdateView 2020-05-03 20:07:22 +02:00
Andreas Zweili 56ebccf667 add a cancel button to the WarrantyAddView 2020-05-02 22:38:34 +02:00
Andreas Zweili 9c4227e217 convert input to button 2020-05-02 22:38:25 +02:00
Andreas Zweili 01afb1292c add DeviceDeleteView 2020-05-02 22:36:35 +02:00
Andreas Zweili 1279311055 add missing csrf tokens 2020-05-02 22:28:07 +02:00
Andreas Zweili 20b87a3e39 add a delete view for warranties 2020-05-02 22:28:02 +02:00
Andreas Zweili 327aebd9e4 replace the create warranty button with an add icon 2020-05-02 21:53:32 +02:00
Andreas Zweili 83d4ea4f9e replace the edit button with an edit icon 2020-05-02 21:53:12 +02:00
Andreas Zweili ac801c93d3 correct the title for the connected devices table 2020-05-01 17:04:01 +02:00
Andreas Zweili 3e00746f89 add a "Create Device" button to the connected devices table 2020-05-01 17:03:33 +02:00
Andreas Zweili 98f3400f8e add the url for the WarrantyCreateView 2020-05-01 16:59:19 +02:00
Andreas Zweili 49571ccf08 add a test for the ip status string 2020-05-01 16:59:07 +02:00
Andreas Zweili 2796736c75 add an "Edit Device" button to the device detail view 2020-05-01 16:58:35 +02:00
Andreas Zweili aea6ea6cf5 use the string representation for the net relation 2020-05-01 16:58:10 +02:00
Andreas Zweili 07a9ebcffa remove unused code 2020-05-01 16:57:59 +02:00
Andreas Zweili c4f9f597e2 add a WarrantyCreateView 2020-05-01 16:57:38 +02:00
Andreas Zweili 30daf62383 add a comment to the Create forms 2020-05-01 16:11:47 +02:00
Andreas Zweili 78d5f4cea5 add device update view 2020-05-01 15:23:09 +02:00
Andreas Zweili 975d3573d8 add device create view 2020-05-01 15:22:53 +02:00
Andreas Zweili cbc0e6169f add create button to the devices list 2020-05-01 15:21:29 +02:00
Andreas Zweili 92d0636691 add the ip status to the DeviceInNet string represenation 2020-04-30 20:27:11 +02:00
Andreas Zweili 0ea216fc56 allow an IP to be Null
if the device is in DHCP mode it won't have an IP address therefore the user
must be able to leave the field empty.
2020-04-30 20:11:23 +02:00
Andreas Zweili 2639121fb8 dispay the ip status together with the ip 2020-04-30 20:10:54 +02:00
Andreas Zweili 6dd0e38513 remove the names of some overly large capitalists
These companies already have far too much money at their disposal.
They might profit from the free advertising appearing in this
repository and we wouldn't want that wouldn't we?
2020-03-15 19:54:43 +01:00
Andreas Zweili 8f69665a95 add tests for the warranties table 2020-03-01 11:48:09 +01:00
Andreas Zweili b2bc1f5d88 change the customer property to a ForeignKey
Everytime the warranty gets saved the customer gets
set to the one from the corresponding device
2020-03-01 11:16:36 +01:00
Andreas Zweili db97a141d9 limit the warranties view to only the allowed objects 2020-03-01 11:15:12 +01:00
Andreas Zweili 9311090132 split parameters over multiple lines 2020-02-29 21:11:06 +01:00
Andreas Zweili 8dec65c034 correct line length 2020-02-29 21:10:03 +01:00
Andreas Zweili cf2feba185 split parameters over multiple lines 2020-02-29 21:09:13 +01:00
Andreas Zweili a16f14d9e3 adjust line length 2020-02-29 21:08:56 +01:00
Andreas Zweili 23734f49d2 remove unused import 2020-02-29 21:08:36 +01:00
Andreas Zweili 94bbfd249c split parameters over multiple lines 2020-02-29 21:01:26 +01:00
Andreas Zweili 38e3491f82 colour warranty cells depending on the timedelta of valid_until 2020-02-25 23:03:11 +01:00
Andreas Zweili 12b398f252 remove an empty line 2020-02-25 23:02:37 +01:00
Andreas Zweili 965ee14c58 move the vertical margin from the columns to the cards 2020-02-25 22:27:58 +01:00
Andreas Zweili 979933d436 improve responsivenes 2020-02-25 21:53:57 +01:00
Andreas Zweili 9cbf760ef3 update device and computer details to bootstrap4 2020-02-25 21:17:59 +01:00
Andreas Zweili 9d56537394 update backup details to bootstrap4 2020-02-25 20:25:20 +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 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 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 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 47b1f81a89 add ConnectedDevice views 2020-02-15 18:50:51 +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 8afd4e13c4 move warranty models to device app 2020-01-12 16:21:12 +01:00
Andreas Zweili cb4699e40a remove ignored files from repository 2020-01-12 14:06:21 +01:00
Andreas Zweili af310cdd0d correct the path for the base template 2020-01-11 17:41:03 +01:00
Andreas Zweili e167aefc03 correct template paths 2020-01-11 17:00:42 +01:00
Andreas Zweili 7582507753 clean up the templates 2020-01-11 16:58:30 +01:00
Andreas Zweili e3d1d73db9 split the project into more apps 2020-01-10 00:01:06 +01:00
Andreas Zweili b1e160ff3b rename device app to devices 2020-01-09 21:59:49 +01:00