Andreas Zweili
288c4fdd25
add favicon
2020-05-24 18:38:23 +02:00
Andreas Zweili
94ecbd54f9
add material font icons
2020-05-02 21:52:56 +02:00
Andreas Zweili
8310a1569a
correct the static files setup
2020-04-20 15:22:48 +02:00
Andreas Zweili
c6803933fc
remove unused file
2020-03-01 11:49:59 +01:00
Andreas Zweili
df31124143
allow non admins to see the warranties table
...
I reckon the customer would be interested in the warranties of his
devices as well.
2020-03-01 11:14:38 +01:00
Andreas Zweili
9f30375f6b
change the superuser_required decorator to return 404
2020-03-01 11:12:29 +01:00
Andreas Zweili
7e2cda3bfc
remove empty line
2020-02-29 21:07:04 +01:00
Andreas Zweili
49c0f89f11
remove unused file
2020-02-29 21:06:52 +01:00
Andreas Zweili
2646b964ca
fix the get_objects function
2020-02-29 19:26:17 +01:00
Andreas Zweili
25b2c3c02d
Use a better string for the wrong model name
2020-02-29 19:25:00 +01:00
Andreas Zweili
19ff961cfa
correct get_objects to return 404 with wrong value
2020-02-29 19:01:16 +01:00
Andreas Zweili
ceb1aa59cc
add test_get_objects_raises_404
2020-02-29 18:54:04 +01:00
Andreas Zweili
7b511ccda2
add various comments
2020-02-29 15:35:46 +01:00
Andreas Zweili
26dcbf4cb5
add a function to get objects limited to customer
...
this function will return a queryset containing only items which are
related to customers the user is allowed to view.
2020-02-29 15:16:26 +01:00
Andreas Zweili
e882e062e8
add function to get customer objects for user
...
With this function we get a list of customers the user is allowed to view.
2020-02-29 15:00:22 +01:00
Andreas Zweili
42ecb7f5dd
indent footer
2020-02-29 11:50:09 +01:00
Andreas Zweili
404de33ffc
add margin around footer
2020-02-29 11:47:00 +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
9c0938b420
add a CoreTable class to inherit all tables from
2020-02-23 12:58:39 +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
da1375a030
calculate the warranty duration from the dates provided
2020-02-16 20:15:47 +01:00
Andreas Zweili
d0343b7dd8
move the static files to the correct place
2020-02-15 17:58:10 +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
Andreas Zweili
b6ec802879
move the login url to the core app
2020-01-11 18:09:43 +01:00
Andreas Zweili
af310cdd0d
correct the path for the base template
2020-01-11 17:41:03 +01:00
Andreas Zweili
e3d1d73db9
split the project into more apps
2020-01-10 00:01:06 +01:00
Andreas Zweili
ff307b7ae3
move category and calendar models into the core app
2020-01-07 22:20:07 +01:00
Andreas Zweili
e2cd52b7d4
remove migrations from the apps for now
2020-01-07 22:14:03 +01:00
Andreas Zweili
f4c96579be
move the test helper module to the core app
2020-01-07 21:55:43 +01:00
Andreas Zweili
af10e59e59
remove unused files from core and customer app
2020-01-07 21:54:54 +01:00
Andreas Zweili
20b163ec27
move Company related models into their own apps
2020-01-07 21:31:44 +01:00
Andreas Zweili
e64551ca53
add core app
2020-01-07 20:11:05 +01:00