clean up the templates
This commit is contained in:
parent
b6fa56ee08
commit
7582507753
|
@ -1,82 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ backup.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ backup.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Computer:</b></td>
|
||||
<td><a href="{% url 'computer' backup.computer.id %}">{{ backup.computer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Method:</b></td>
|
||||
<td>{{ backup.method }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Software:</b></td>
|
||||
<td>{{ backup.software }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Time:</b></td>
|
||||
<td>{{ backup.exec_time }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Day:</b></td>
|
||||
<td>{{ backup.exec_day }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if target_device_list %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Target Devices</div>
|
||||
{% for device in target_device_list %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Target Device:</b></td>
|
||||
<td><a href="{% url 'computer' device.device.id %}">{{ device.device }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Target Path:</b></td>
|
||||
<td>{{ device.target_path }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if notifications %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Notifications</div>
|
||||
{% for notification in notifications %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Name:</b></td>
|
||||
<td>{{ notification.notification }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Description:</b></td>
|
||||
<td>{{ notification.notification.description }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Recipient:</b></td>
|
||||
<td>{{ notification.notification.recipient }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Type:</b></td>
|
||||
<td>{{ notification.notification.notification_type }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Backups{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table backups %}
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
|
||||
<title>Network Inventory</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div class="ui container">
|
||||
<a href="{% url 'customers' %}">Home</a> |
|
||||
<a href="{% url 'all_computers' %}">All Computers</a> |
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'logout' %}">Logout</a> |
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" >Login</a> |
|
||||
{% endif %}
|
||||
<h1>{% block section_title %}Device Inventory{% endblock %}</h1>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
{% block footer %}
|
||||
<p class="copyright">Created by Andreas Zweili licensed under GPL v3.0</p>
|
||||
{% endblock %}
|
||||
</footer>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}{{ net.name }}{% endblock %}
|
||||
{% block content %}
|
||||
{% if net.description %}
|
||||
<p>{{ net.description }}</p>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Nets{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table nets %}
|
||||
{% endblock %}
|
|
@ -1,106 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ user }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ user.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Customer</b></td>
|
||||
<td><a href="{% url 'customer' user.customer.id %}">{{ user.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>AD Login</b></td>
|
||||
<td>{{ user.ad_login }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>AD Password</b></td>
|
||||
<td>{{ user.ad_pw }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Email Address</b></td>
|
||||
<td>{{ user.ad_login }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Mail Password</b></td>
|
||||
<td>{{ user.mail_pw }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>User is activ</b></td>
|
||||
<td>{{ user.enabled }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Comptuers</b></td>
|
||||
<td>
|
||||
{% for computer in computers %}
|
||||
<a href="{% url 'computer' computer.id %}">{{ computer}}</a>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if ad_groups or mail_groups or mail_alias %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if mail_alias %}
|
||||
<div class="header">Mail Alias</div>
|
||||
<table class="ui celled table">
|
||||
{% for alias in mail_alias %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ alias }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if ad_groups %}
|
||||
<div class="header">AD Groups</div>
|
||||
<table class="ui celled table">
|
||||
{% for group in ad_groups %}
|
||||
<tr>
|
||||
<td>{{ group.group }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if mail_groups %}
|
||||
<div class="header">Mail Groups</div>
|
||||
<table class="ui celled table">
|
||||
<th>Group Name</th>
|
||||
<th>Address</th>
|
||||
{% for group in mail_groups %}
|
||||
<tr>
|
||||
<td>{{ group.group }}</td>
|
||||
<td>{{ group.group.mail_address }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if licenses %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Licenses</div>
|
||||
<table class="ui celled table">
|
||||
{% for license in licenses %}
|
||||
<tr>
|
||||
<td>{{ license.license.software }}</td>
|
||||
<td><code>{{ license.license.key }}</code></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}Users{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table users %}
|
||||
{% endblock %}
|
|
@ -1,24 +0,0 @@
|
|||
{% extends 'inventory/base.html' %}
|
||||
|
||||
{% block section_title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="login" name="login" method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
<label for="id_username">Username:</label>
|
||||
<div class="ui input">
|
||||
<input type="text" name="username" autofocus required id="id_username">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<label for="id_password">Password:</label>
|
||||
<div class="ui input">
|
||||
<input type="password" name="password" required id="id_password">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<button name="button_login" type="submit" class="ui button">Login</button>
|
||||
</form>
|
||||
</p>
|
||||
{% endblock %}
|
|
@ -1,23 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Computers{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui form">
|
||||
<form action="" method="get" class="ui form">
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
{{ filter.form.name__contains.label_tag }}
|
||||
{{ filter.form.name__contains }}
|
||||
</div>
|
||||
<div class="field">
|
||||
{{ filter.form.owner.label_tag }}
|
||||
{{ filter.form.owner }}
|
||||
</div>
|
||||
<div class="field">
|
||||
<button type="submit" class="ui button">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
|
@ -1,82 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ backup.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ backup.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Computer:</b></td>
|
||||
<td><a href="{% url 'computer' backup.computer.id %}">{{ backup.computer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Method:</b></td>
|
||||
<td>{{ backup.method }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Software:</b></td>
|
||||
<td>{{ backup.software }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Time:</b></td>
|
||||
<td>{{ backup.exec_time }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Day:</b></td>
|
||||
<td>{{ backup.exec_day }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if target_device_list %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Target Devices</div>
|
||||
{% for device in target_device_list %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Target Device:</b></td>
|
||||
<td><a href="{% url 'computer' device.device.id %}">{{ device.device }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Target Path:</b></td>
|
||||
<td>{{ device.target_path }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if notifications %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Notifications</div>
|
||||
{% for notification in notifications %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Name:</b></td>
|
||||
<td>{{ notification.notification }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Description:</b></td>
|
||||
<td>{{ notification.notification.description }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Recipient:</b></td>
|
||||
<td>{{ notification.notification.recipient }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Type:</b></td>
|
||||
<td>{{ notification.notification.notification_type }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Backups{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table backups %}
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
|
||||
<title>Network Inventory</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div class="ui container">
|
||||
<a href="{% url 'customers' %}">Home</a> |
|
||||
<a href="{% url 'all_computers' %}">All Computers</a> |
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'logout' %}">Logout</a> |
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" >Login</a> |
|
||||
{% endif %}
|
||||
<h1>{% block section_title %}Device Inventory{% endblock %}</h1>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
{% block footer %}
|
||||
<p class="copyright">Created by Andreas Zweili licensed under GPL v3.0</p>
|
||||
{% endblock %}
|
||||
</footer>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,171 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ computer }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ computer.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>OS:</b></td>
|
||||
<td>{{ computer.os }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Serial Number:</b></td>
|
||||
<td><code>{{ computer.serialnumber }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Category:</b></td>
|
||||
<td>{{ computer.category }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Owner:</b></td>
|
||||
<td>{{ computer.owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Customer:</b></td>
|
||||
<td><a href="{% url 'customer' computer.customer.id %}">{{ computer.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Manufacturer:</b></td>
|
||||
<td>{{ computer.manufacturer }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Location:</b></td>
|
||||
<td>{{ computer.location }}</td>
|
||||
</tr>
|
||||
{% if computer.user %}
|
||||
<tr>
|
||||
<td><b>User:</b></td>
|
||||
<td><a href="{% url 'user' computer.user.id %}">{{ computer.user }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td><b>Installation Date:</b></td>
|
||||
<td>{{ computer.installation_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>IPs:</b></td>
|
||||
<td>
|
||||
{% for net_id, ip in computer.ips.items %}
|
||||
<a href="{% url 'net' net_id %}">{{ip}}</a><br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% if software_list or backup_list %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if software_list %}
|
||||
<div class="header">Software</div>
|
||||
<ul>
|
||||
{% for software in software_list %}
|
||||
<li>{{ software.software }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if licenses %}
|
||||
<div class="header">Licenses</div>
|
||||
<table class="ui celled table">
|
||||
{% for license in licenses %}
|
||||
<tr>
|
||||
<td>{{ license.license.software }}</td>
|
||||
<td><code>{{ license.license.key }}</code></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% if backup_list %}
|
||||
<div class="header">Backup</div>
|
||||
<ul>
|
||||
{% for backup in backup_list %}
|
||||
<li><a href="{% url 'backup' backup.id %}">{{ backup }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if cpu_list or ram_list or disks_list or raid_disk_pairs or computer.host %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if cpu_list or ram_list or disks_list or computer.host %}
|
||||
<div class="header">Hardware</div>
|
||||
<table class="ui celled table">
|
||||
{% if cpu_list %}
|
||||
<tr>
|
||||
<td><b>CPUs:</b></td>
|
||||
<td>
|
||||
{% for cpu in cpu_list %}
|
||||
{{ cpu.amount }}x {{ cpu.cpu }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if ram_list %}
|
||||
<tr>
|
||||
<td><b>RAM Modules:</b></td>
|
||||
<td>
|
||||
{% for module in ram_list %}
|
||||
{{ module.amount }}x {{ module.ram }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if disks_list %}
|
||||
<tr>
|
||||
<td><b>Disks:</b></td>
|
||||
<td>
|
||||
{% for disk in disks_list %}
|
||||
{{ disk.amount }}x {{ disk.disk }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if raid_disk_pairs %}
|
||||
<div class="header">RAID</div>
|
||||
{% for raid, disks in raid_disk_pairs.items %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Type:</b></td>
|
||||
<td>{{ raid.raid_type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Usable Space</b></td>
|
||||
<td>{{ raid.usable_space }}</td>
|
||||
</tr>
|
||||
{% if disks %}
|
||||
{% for disk in disks %}
|
||||
<tr>
|
||||
<td><b>Disk Type</b></td>
|
||||
<td>{{ disk.disk }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Amount</b></td>
|
||||
<td>{{ disk.disk_amount }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</table>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if computer.host %}
|
||||
<div class="header">Host</div>
|
||||
<div class="description">
|
||||
<a href="{% url 'computer' computer.host.id %}">{{ computer.host }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Computers{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table computers %}
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ cronjob.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Description</h3>
|
||||
<p>
|
||||
<b>Host:</b> <a href="{% url 'computer' cronjob.host.id %}">{{ cronjob.host }}</a>
|
||||
</p>
|
||||
<p>
|
||||
<b>Command:</b><br/>
|
||||
<code>{{ cronjob.command }}</code>
|
||||
</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Minute</th>
|
||||
<th>Hour</th>
|
||||
<th>Day of Week</th>
|
||||
<th>Day of Month</th>
|
||||
<th>Month</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ cronjob.minutes }}</td>
|
||||
<td>{{ cronjob.hours }}</td>
|
||||
<td>{{ cronjob.weekday }}</td>
|
||||
<td>{{ cronjob.day }}</td>
|
||||
<td>{{ cronjob.month }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}List of Cron Jobs{% endblock %}
|
||||
{% block content %}
|
||||
{% if cronjob_list %}
|
||||
<table class="sortable">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Hostname</th>
|
||||
<th>Minute</th>
|
||||
<th>Hour</th>
|
||||
<th>Day of Week</th>
|
||||
<th>Day of Month</th>
|
||||
<th>Month</th>
|
||||
</tr>
|
||||
{% for cronjob in cronjob_list %}
|
||||
<tr>
|
||||
<td><a href="{% url 'cronjob' cronjob.id %}">{{ cronjob.name }}</a></td>
|
||||
<td>{{ cronjob.host }}</td>
|
||||
<td>{{ cronjob.minutes }}</td>
|
||||
<td>{{ cronjob.hours }}</td>
|
||||
<td>{{ cronjob.weekday }}</td>
|
||||
<td>{{ cronjob.day }}</td>
|
||||
<td>{{ cronjob.month }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ customer.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Description</h3>
|
||||
<p>{{ customer.description }}</p>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Customers{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table customers %}
|
||||
{% endblock %}
|
|
@ -1,43 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ device.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ device.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Serial Number:</b></th>
|
||||
<td><code>{{ device.serialnumber }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Category:</b></th>
|
||||
<td>{{ device.category }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Owner:</b></th>
|
||||
<td>{{ device.owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Customer:</b></th>
|
||||
<td><a href="{% url 'customer' device.customer.id %}">{{ device.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Manufacturer:</b></th>
|
||||
<td>{{ device.manufacturer }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Location:</b></th>
|
||||
<td>{{ device.location }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Installation Date:</b></th>
|
||||
<td>{{ device.installation_date }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of General Devices{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table devices %}
|
||||
{% endblock %}
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}Licenses{% endblock %}
|
||||
{% block content %}
|
||||
<h3>User Licenses</h3>
|
||||
{% render_table user_licenses %}
|
||||
<h3>Computer Licenses</h3>
|
||||
{% render_table computer_licenses %}
|
||||
{% endblock %}
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}{{ net.name }}{% endblock %}
|
||||
{% block content %}
|
||||
{% if net.description %}
|
||||
<p>{{ net.description }}</p>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Nets{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table nets %}
|
||||
{% endblock %}
|
|
@ -1,106 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ user }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ user.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Customer</b></td>
|
||||
<td><a href="{% url 'customer' user.customer.id %}">{{ user.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>AD Login</b></td>
|
||||
<td>{{ user.ad_login }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>AD Password</b></td>
|
||||
<td>{{ user.ad_pw }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Email Address</b></td>
|
||||
<td>{{ user.ad_login }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Mail Password</b></td>
|
||||
<td>{{ user.mail_pw }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>User is activ</b></td>
|
||||
<td>{{ user.enabled }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Comptuers</b></td>
|
||||
<td>
|
||||
{% for computer in computers %}
|
||||
<a href="{% url 'computer' computer.id %}">{{ computer}}</a>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if ad_groups or mail_groups or mail_alias %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if mail_alias %}
|
||||
<div class="header">Mail Alias</div>
|
||||
<table class="ui celled table">
|
||||
{% for alias in mail_alias %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ alias }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if ad_groups %}
|
||||
<div class="header">AD Groups</div>
|
||||
<table class="ui celled table">
|
||||
{% for group in ad_groups %}
|
||||
<tr>
|
||||
<td>{{ group.group }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if mail_groups %}
|
||||
<div class="header">Mail Groups</div>
|
||||
<table class="ui celled table">
|
||||
<th>Group Name</th>
|
||||
<th>Address</th>
|
||||
{% for group in mail_groups %}
|
||||
<tr>
|
||||
<td>{{ group.group }}</td>
|
||||
<td>{{ group.group.mail_address }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if licenses %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Licenses</div>
|
||||
<table class="ui celled table">
|
||||
{% for license in licenses %}
|
||||
<tr>
|
||||
<td>{{ license.license.software }}</td>
|
||||
<td><code>{{ license.license.key }}</code></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}Users{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table users %}
|
||||
{% endblock %}
|
|
@ -1,24 +0,0 @@
|
|||
{% extends 'inventory/base.html' %}
|
||||
|
||||
{% block section_title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="login" name="login" method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
<label for="id_username">Username:</label>
|
||||
<div class="ui input">
|
||||
<input type="text" name="username" autofocus required id="id_username">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<label for="id_password">Password:</label>
|
||||
<div class="ui input">
|
||||
<input type="password" name="password" required id="id_password">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<button name="button_login" type="submit" class="ui button">Login</button>
|
||||
</form>
|
||||
</p>
|
||||
{% endblock %}
|
|
@ -1,23 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Computers{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui form">
|
||||
<form action="" method="get" class="ui form">
|
||||
<div class="fields">
|
||||
<div class="field">
|
||||
{{ filter.form.name__contains.label_tag }}
|
||||
{{ filter.form.name__contains }}
|
||||
</div>
|
||||
<div class="field">
|
||||
{{ filter.form.owner.label_tag }}
|
||||
{{ filter.form.owner }}
|
||||
</div>
|
||||
<div class="field">
|
||||
<button type="submit" class="ui button">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
|
@ -1,82 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ backup.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ backup.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Computer:</b></td>
|
||||
<td><a href="{% url 'computer' backup.computer.id %}">{{ backup.computer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Method:</b></td>
|
||||
<td>{{ backup.method }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Backup Software:</b></td>
|
||||
<td>{{ backup.software }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Time:</b></td>
|
||||
<td>{{ backup.exec_time }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Exec Day:</b></td>
|
||||
<td>{{ backup.exec_day }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if target_device_list %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Target Devices</div>
|
||||
{% for device in target_device_list %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Target Device:</b></td>
|
||||
<td><a href="{% url 'computer' device.device.id %}">{{ device.device }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Target Path:</b></td>
|
||||
<td>{{ device.target_path }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if notifications %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Notifications</div>
|
||||
{% for notification in notifications %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Name:</b></td>
|
||||
<td>{{ notification.notification }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Description:</b></td>
|
||||
<td>{{ notification.notification.description }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Recipient:</b></td>
|
||||
<td>{{ notification.notification.recipient }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Type:</b></td>
|
||||
<td>{{ notification.notification.notification_type }}</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Backups{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table backups %}
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
|
||||
<title>Network Inventory</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div class="ui container">
|
||||
<a href="{% url 'customers' %}">Home</a> |
|
||||
<a href="{% url 'all_computers' %}">All Computers</a> |
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'logout' %}">Logout</a> |
|
||||
{% else %}
|
||||
<a href="{% url 'login' %}" >Login</a> |
|
||||
{% endif %}
|
||||
<h1>{% block section_title %}Device Inventory{% endblock %}</h1>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
{% block footer %}
|
||||
<p class="copyright">Created by Andreas Zweili licensed under GPL v3.0</p>
|
||||
{% endblock %}
|
||||
</footer>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -1,171 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ computer }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ computer.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>OS:</b></td>
|
||||
<td>{{ computer.os }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Serial Number:</b></td>
|
||||
<td><code>{{ computer.serialnumber }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Category:</b></td>
|
||||
<td>{{ computer.category }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Owner:</b></td>
|
||||
<td>{{ computer.owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Customer:</b></td>
|
||||
<td><a href="{% url 'customer' computer.customer.id %}">{{ computer.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Manufacturer:</b></td>
|
||||
<td>{{ computer.manufacturer }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Location:</b></td>
|
||||
<td>{{ computer.location }}</td>
|
||||
</tr>
|
||||
{% if computer.user %}
|
||||
<tr>
|
||||
<td><b>User:</b></td>
|
||||
<td><a href="{% url 'user' computer.user.id %}">{{ computer.user }}</a></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td><b>Installation Date:</b></td>
|
||||
<td>{{ computer.installation_date }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>IPs:</b></td>
|
||||
<td>
|
||||
{% for net_id, ip in computer.ips.items %}
|
||||
<a href="{% url 'net' net_id %}">{{ip}}</a><br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% if software_list or backup_list %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if software_list %}
|
||||
<div class="header">Software</div>
|
||||
<ul>
|
||||
{% for software in software_list %}
|
||||
<li>{{ software.software }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if licenses %}
|
||||
<div class="header">Licenses</div>
|
||||
<table class="ui celled table">
|
||||
{% for license in licenses %}
|
||||
<tr>
|
||||
<td>{{ license.license.software }}</td>
|
||||
<td><code>{{ license.license.key }}</code></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% if backup_list %}
|
||||
<div class="header">Backup</div>
|
||||
<ul>
|
||||
{% for backup in backup_list %}
|
||||
<li><a href="{% url 'backup' backup.id %}">{{ backup }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if cpu_list or ram_list or disks_list or raid_disk_pairs or computer.host %}
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
{% if cpu_list or ram_list or disks_list or computer.host %}
|
||||
<div class="header">Hardware</div>
|
||||
<table class="ui celled table">
|
||||
{% if cpu_list %}
|
||||
<tr>
|
||||
<td><b>CPUs:</b></td>
|
||||
<td>
|
||||
{% for cpu in cpu_list %}
|
||||
{{ cpu.amount }}x {{ cpu.cpu }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if ram_list %}
|
||||
<tr>
|
||||
<td><b>RAM Modules:</b></td>
|
||||
<td>
|
||||
{% for module in ram_list %}
|
||||
{{ module.amount }}x {{ module.ram }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if disks_list %}
|
||||
<tr>
|
||||
<td><b>Disks:</b></td>
|
||||
<td>
|
||||
{% for disk in disks_list %}
|
||||
{{ disk.amount }}x {{ disk.disk }}<br>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if raid_disk_pairs %}
|
||||
<div class="header">RAID</div>
|
||||
{% for raid, disks in raid_disk_pairs.items %}
|
||||
<table class="ui celled table">
|
||||
<tr>
|
||||
<td><b>Type:</b></td>
|
||||
<td>{{ raid.raid_type }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Usable Space</b></td>
|
||||
<td>{{ raid.usable_space }}</td>
|
||||
</tr>
|
||||
{% if disks %}
|
||||
{% for disk in disks %}
|
||||
<tr>
|
||||
<td><b>Disk Type</b></td>
|
||||
<td>{{ disk.disk }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Amount</b></td>
|
||||
<td>{{ disk.disk_amount }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</table>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if computer.host %}
|
||||
<div class="header">Host</div>
|
||||
<div class="description">
|
||||
<a href="{% url 'computer' computer.host.id %}">{{ computer.host }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Computers{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table computers %}
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ cronjob.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Description</h3>
|
||||
<p>
|
||||
<b>Host:</b> <a href="{% url 'computer' cronjob.host.id %}">{{ cronjob.host }}</a>
|
||||
</p>
|
||||
<p>
|
||||
<b>Command:</b><br/>
|
||||
<code>{{ cronjob.command }}</code>
|
||||
</p>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Minute</th>
|
||||
<th>Hour</th>
|
||||
<th>Day of Week</th>
|
||||
<th>Day of Month</th>
|
||||
<th>Month</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ cronjob.minutes }}</td>
|
||||
<td>{{ cronjob.hours }}</td>
|
||||
<td>{{ cronjob.weekday }}</td>
|
||||
<td>{{ cronjob.day }}</td>
|
||||
<td>{{ cronjob.month }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
{% endblock %}
|
|
@ -1,28 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}List of Cron Jobs{% endblock %}
|
||||
{% block content %}
|
||||
{% if cronjob_list %}
|
||||
<table class="sortable">
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Hostname</th>
|
||||
<th>Minute</th>
|
||||
<th>Hour</th>
|
||||
<th>Day of Week</th>
|
||||
<th>Day of Month</th>
|
||||
<th>Month</th>
|
||||
</tr>
|
||||
{% for cronjob in cronjob_list %}
|
||||
<tr>
|
||||
<td><a href="{% url 'cronjob' cronjob.id %}">{{ cronjob.name }}</a></td>
|
||||
<td>{{ cronjob.host }}</td>
|
||||
<td>{{ cronjob.minutes }}</td>
|
||||
<td>{{ cronjob.hours }}</td>
|
||||
<td>{{ cronjob.weekday }}</td>
|
||||
<td>{{ cronjob.day }}</td>
|
||||
<td>{{ cronjob.month }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ customer.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Description</h3>
|
||||
<p>{{ customer.description }}</p>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Customers{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table customers %}
|
||||
{% endblock %}
|
|
@ -1,43 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ device.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="ui cards">
|
||||
<div class="card">
|
||||
<div class="content">
|
||||
<div class="header">Description</div>
|
||||
<div class="description"><p>{{ device.description }}</p></div>
|
||||
<table class="ui celled table">
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Serial Number:</b></th>
|
||||
<td><code>{{ device.serialnumber }}</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Category:</b></th>
|
||||
<td>{{ device.category }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Owner:</b></th>
|
||||
<td>{{ device.owner }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Customer:</b></th>
|
||||
<td><a href="{% url 'customer' device.customer.id %}">{{ device.customer }}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Manufacturer:</b></th>
|
||||
<td>{{ device.manufacturer }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Location:</b></th>
|
||||
<td>{{ device.location }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><b>Installation Date:</b></th>
|
||||
<td>{{ device.installation_date }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of General Devices{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table devices %}
|
||||
{% endblock %}
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}Licenses{% endblock %}
|
||||
{% block content %}
|
||||
<h3>User Licenses</h3>
|
||||
{% render_table user_licenses %}
|
||||
<h3>Computer Licenses</h3>
|
||||
{% render_table computer_licenses %}
|
||||
{% endblock %}
|
|
@ -1,9 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}{{ net.name }}{% endblock %}
|
||||
{% block content %}
|
||||
{% if net.description %}
|
||||
<p>{{ net.description }}</p>
|
||||
{% endif %}
|
||||
{% render_table table %}
|
||||
{% endblock %}
|
|
@ -1,6 +0,0 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block section_title %}List of Nets{% endblock %}
|
||||
{% block content %}
|
||||
{% render_table nets %}
|
||||
{% endblock %}
|
|
@ -1,24 +0,0 @@
|
|||
{% extends 'inventory/base.html' %}
|
||||
|
||||
{% block section_title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form id="login" name="login" method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
<label for="id_username">Username:</label>
|
||||
<div class="ui input">
|
||||
<input type="text" name="username" autofocus required id="id_username">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<label for="id_password">Password:</label>
|
||||
<div class="ui input">
|
||||
<input type="password" name="password" required id="id_password">
|
||||
</div>
|
||||
</p>
|
||||
<p>
|
||||
<button name="button_login" type="submit" class="ui button">Login</button>
|
||||
</form>
|
||||
</p>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue