Andreas Zweili
3d7ac52229
fix the host url for good
2017-12-28 01:20:05 +01:00
Andreas Zweili
4401ba18e5
fix the host url
2017-12-28 01:13:14 +01:00
Andreas Zweili
fa6480eac3
add a link to the host computer
2017-12-28 01:09:27 +01:00
Andreas Zweili
613cf9c727
sort disktypes and disksize by name and size
2017-12-28 00:18:50 +01:00
Andreas Zweili
b6242cfc47
remove static tables from the admin page
2017-12-28 00:11:43 +01:00
Andreas Zweili
8d0454556f
move the css file
2017-12-27 23:51:03 +01:00
Andreas Zweili
0067fa3af2
restructure the code
2017-12-27 19:51:58 +01:00
Andreas Zweili
b2794f3ab5
make the table padding smaller
...
10px waist a bit too much space
2017-12-27 18:49:04 +01:00
Andreas Zweili
23effb203a
remove the shebang from the views.py file
...
Since it can't get executed on it's the shebang doesn't make sense.
2017-12-27 18:35:52 +01:00
Andreas Zweili
7cfc9c9ce3
rename the section titles
...
This way it's more obvious which file the code belongs to.
2017-12-27 18:35:11 +01:00
Andreas Zweili
5ca9e2011b
remove divs and replace with line break
2017-12-27 18:29:40 +01:00
Andreas Zweili
65ed8697fb
move the cron job command into a clode block
2017-12-27 18:23:21 +01:00
Andreas Zweili
e5a49b3b2a
add a css padding to the tables
2017-12-27 18:22:52 +01:00
Andreas Zweili
cc689065b2
add css settings to the footer
2017-12-27 18:22:06 +01:00
Andreas Zweili
1351588d26
add margins to the body
2017-12-27 18:21:07 +01:00
Andreas Zweili
45810163cf
reformat the base.html file
2017-12-27 17:50:25 +01:00
Andreas Zweili
b371cffec1
add a page title and character encoding to templates
2017-12-27 17:49:46 +01:00
Andreas Zweili
d64a55e8be
remove style formating from the html code
2017-12-27 17:48:45 +01:00
Andreas Zweili
67aad3bda1
reformat the index.html
2017-12-27 17:47:21 +01:00
Andreas Zweili
90c628e8f8
add the inventory.css to the docs.org
2017-12-27 17:21:08 +01:00
Andreas Zweili
f554bd5142
sort disks by their type
2017-12-27 17:12:47 +01:00
Andreas Zweili
e726b0213e
add a link to the computer details on the cron job page
2017-12-27 16:41:03 +01:00
Andreas Zweili
3ea76be053
add a padline parameter to the documentation
2017-12-27 16:37:52 +01:00
Andreas Zweili
ac069aa51f
remove the time from the cron job list
2017-12-27 16:36:56 +01:00
Andreas Zweili
52c42bc24f
rewrite the templates to reflect the current cron job model
...
since the cron job model got extended with the minutes and hours attribute
2017-12-27 16:33:53 +01:00
Andreas Zweili
91c0a2f495
extend the admin interface for cron jobs
2017-12-27 16:31:32 +01:00
Andreas Zweili
f5e08cabd5
add a subsection to the admin section
2017-12-27 16:28:38 +01:00
Andreas Zweili
7cfc80aee9
rewrite the description for "InLine" classes
2017-12-27 16:25:45 +01:00
Andreas Zweili
ad9c55ca77
remove a duplicate import
2017-12-27 15:52:52 +01:00
Andreas Zweili
cfb2d43fbb
fix an indent
2017-12-27 15:52:43 +01:00
Andreas Zweili
c397a85371
change the cronjobs timefield to separate model relations
2017-12-26 18:13:06 +01:00
Andreas Zweili
4a21cc6ad3
add a table which lists all the cron jobs
2017-12-26 11:36:28 +01:00
Andreas Zweili
afb2d0ed95
correct the CronJob model
...
The day relation was missing and all the times should be optional
because the can be combined.
2017-12-26 11:35:05 +01:00
Andreas Zweili
58b5f4c8d2
correct the DayOfMonth model
...
The DayOfMonth model basically just contains a list of numbers from
1-31 which means the name attribute doesn't make much sense.
2017-12-26 11:33:41 +01:00
Andreas Zweili
491de61132
add a padding to the computer list table
2017-12-26 11:14:58 +01:00
Andreas Zweili
c33cafdaba
some syntax corrections
2017-12-26 11:14:27 +01:00
Andreas Zweili
8f2ecb1a52
change the disks variable to a list
...
Since a computer can contain multiple different types of disks this
needs to be a list
2017-12-26 11:13:14 +01:00
Andreas Zweili
3ebfb24028
sort the computer list by IP
2017-12-25 23:55:35 +01:00
Andreas Zweili
ffa545110b
reformat the computer list to a table instead of a list
2017-12-25 23:55:07 +01:00
Andreas Zweili
5f00b2de26
add a css file to the project
2017-12-25 23:54:37 +01:00
Andreas Zweili
1dcec8e63a
replace the Device model with a a GeneralDevice model
...
This is required because otherwise when one gets all the Device
objects the sub classes get pulled as well. With a general class we
can use it really as a general device.
2017-12-25 16:23:42 +01:00
Andreas Zweili
34b91ca1bf
remove the hostname attribute from Computer
...
The device name should be used as a hostname for computers
2017-12-25 14:07:51 +01:00
Andreas Zweili
36bee7ba1f
add a link to home
2017-12-25 13:56:22 +01:00
Andreas Zweili
d28915a2c1
remove the padlines in the computer_details.html file
2017-12-25 13:50:47 +01:00
Andreas Zweili
00c9762d4c
add a template for device details
2017-12-25 13:50:32 +01:00
Andreas Zweili
f398547c7f
add a template for cron job details
2017-12-25 13:38:45 +01:00
Andreas Zweili
9cc24b3f81
add a template for computer details
2017-12-25 13:38:31 +01:00
Andreas Zweili
caf9e74a68
add a view for cron job details
2017-12-25 13:36:03 +01:00
Andreas Zweili
5279d5f3ee
add a view for computer details
2017-12-25 13:35:30 +01:00
Andreas Zweili
44456f0c0d
add view for device details
2017-12-25 13:35:09 +01:00
Andreas Zweili
7375d097f5
rename a list
2017-12-25 13:34:00 +01:00
Andreas Zweili
6e481af9b0
add various models to the views file
2017-12-25 13:33:28 +01:00
Andreas Zweili
ce0143b274
define url patterns for various views
2017-12-25 13:31:29 +01:00
Andreas Zweili
3f6a9974ff
add urlpatterns for the inventory app
2017-12-25 13:25:57 +01:00
Andreas Zweili
1e3d9d3bfb
sort date entries by their value
2017-12-25 13:19:58 +01:00
Andreas Zweili
d4a20bd57d
add an index view
2017-12-25 00:37:52 +01:00
Andreas Zweili
6d0231f9f6
adding html templates
2017-12-25 00:37:31 +01:00
Andreas Zweili
427d4499df
add a latex header
2017-12-25 00:12:07 +01:00
Andreas Zweili
673f93e24e
register the ComputerAdmin class in the admin interface
2017-12-25 00:09:41 +01:00
Andreas Zweili
1776c1abd9
remove the relations from the admin interface
...
The items can get added trough the computer form.
2017-12-25 00:09:06 +01:00
Andreas Zweili
b6ca7ed726
add additional fields to the computer list
2017-12-25 00:08:45 +01:00
Andreas Zweili
2df23bcfdd
remove the additional input fields from the computer form
...
Since it gives cleaner view I'm removing the additional input fields
for RAM, CPUs and disks. In addition it's usually not necessary to add
many different types of these items.
2017-12-25 00:07:19 +01:00
Andreas Zweili
52fa53e0df
correct the verbose name
...
In the user facing side Ram should be written RAM
2017-12-25 00:02:13 +01:00
Andreas Zweili
704cfcecad
fix the return value in two relations
...
Because the computer attribute is actually an object we can't
reference the hostname directly.
2017-12-25 00:00:26 +01:00
Andreas Zweili
56be9c59e2
add the verbose name to the ComputerDiskRelation
...
Forgot to commit this in the docs file
2017-12-24 23:59:10 +01:00
Andreas Zweili
197229d972
add a ComputerCpuRelation class
...
To represent systems with multiple CPUs this class needed.
2017-12-24 23:57:30 +01:00
Andreas Zweili
5047e7965d
change the __str__ return value for the computer class to string
...
as the name suggests __str__ needs to be of type string.
2017-12-24 23:53:13 +01:00
Andreas Zweili
82a942aa5e
move the raid attribute to the ComputerDiskRelationship class
...
It makes more sense to have the RAID attribute in the relationship
class because if a system has multiple RAID configurations it's not
possible to represent it otherwise.
2017-12-24 23:51:46 +01:00
Andreas Zweili
eb4ea91d9b
remove the obsolete "GB" string and fix a variable
...
The GB string is obsolete because it already gets added in the
DiskSize class.
The attribute name is size_in_gb not size.
2017-12-24 23:47:53 +01:00
Andreas Zweili
e5a99646aa
change the return value to string
...
Return values must be strings.
2017-12-24 23:44:27 +01:00
Andreas Zweili
6b99df109e
fix the return value of the Ram class
2017-12-24 23:43:41 +01:00
Andreas Zweili
c8ba021a56
change gigabytes to integere instead of float
...
I first it would make sense to save gigabytes as floating numbers.
However in practice I'm not really interested in anything smaller than
a gigabyte.
2017-12-24 23:41:15 +01:00
Andreas Zweili
388b69689d
add verbose names for all the hardware types
...
This make the items easier to understand in the admin interface.
2017-12-24 23:39:40 +01:00
Andreas Zweili
68b80d4ebc
add descriptions for a all the models
2017-12-23 00:00:37 +01:00
Andreas Zweili
6cec7c6c50
rename the inline classes
2017-12-22 23:59:40 +01:00
Andreas Zweili
96cae931c9
extend the time fields for a cronjob
2017-12-22 23:58:46 +01:00
Andreas Zweili
34c05611f4
add a values attribute to Weekday and DayOfMonth
2017-12-22 23:47:18 +01:00
Andreas Zweili
8d94a1edc9
add a model for days in a month
2017-12-22 23:43:10 +01:00
Andreas Zweili
d43215b535
add a boolean to check for type ecc to the RAM class
2017-12-22 23:42:06 +01:00
Andreas Zweili
a74740228e
split the models into smaller code blocks
2017-12-22 23:38:34 +01:00
Andreas Zweili
7223560a9f
add a description for Weekdays, DayOfMonth and Month
2017-12-22 23:35:08 +01:00
Andreas Zweili
fdc91ab9da
split the models into smaller code blocks
2017-12-22 23:34:40 +01:00
Andreas Zweili
c682cb5b6b
remove the shebangs
...
They are not required for these files
2017-12-22 23:33:30 +01:00
Andreas Zweili
a479a76c6f
add a general description of the models
2017-12-22 23:32:26 +01:00
Andreas Zweili
03bbfbc612
create an app for the inventory
2017-12-22 17:02:24 +01:00
Andreas Zweili
30a20c2697
add an erd
2017-12-22 17:01:10 +01:00
Andreas Zweili
c1dad8a61d
add models to the docs.org file
2017-12-22 14:13:51 +01:00
Andreas Zweili
cacb5d0b59
add a docs file
2017-12-22 07:40:13 +01:00