switch the device_details template to Semantic UI
This commit is contained in:
parent
789d41989e
commit
1563c2eaac
|
@ -1,18 +1,43 @@
|
|||
{% extends "inventory/base.html" %}
|
||||
{% block section_title %}{{ device.name }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Description</h3>
|
||||
<p>{{ device.description }}</p>
|
||||
<h3>Serial Number</h3>
|
||||
<p><code>{{ device.serialnumber }}</code></p>
|
||||
<h3>Category</h3>
|
||||
<p>{{ device.category }}</p>
|
||||
<h3>Owner</h3>
|
||||
<p>{{ device.owner }}</p>
|
||||
<h3>Customer</h3>
|
||||
<p><a href="{% url 'customer' device.customer.id %}">{{ device.customer }}</a></p>
|
||||
<h3>Manufacturer</h3>
|
||||
<p>{{ device.manufacturer }}</p>
|
||||
<h3>Location</h3>
|
||||
<p>{{ device.location }}</p>
|
||||
<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 %}
|
||||
|
|
Loading…
Reference in New Issue