Move inventory to new repo
This commit is contained in:
65
inventory-app/templates/inventory_view_public.html
Normal file
65
inventory-app/templates/inventory_view_public.html
Normal file
@@ -0,0 +1,65 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<p>Inventory item.</p>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Key</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>Type</td>
|
||||
<td>{{ item["type"] }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Vendor</td>
|
||||
<td>{{ item.get("hardware").vendor }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Product</td>
|
||||
<td>{{ item.get("hardware").product }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td>{{ item.name }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>URL slug</td>
|
||||
<td>
|
||||
{% if item.get("shortener").slug %}
|
||||
<a href="http://k6.ee/{{ item.get("shortener").slug }}">
|
||||
k6.ee/{{ item.get("shortener").slug }}
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="tooltip" data-tooltip="Unauthenticated user can see this in public list">In use</td>
|
||||
<td>{% if item.inventory.user %}<i class="material-icons">check_circle</i>{% endif %}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h3>Description</h3>
|
||||
<p class="auto-height">
|
||||
{{ item.description | markdown }}
|
||||
</p>
|
||||
|
||||
<h3>Photo</h3>
|
||||
{% if item.has_photo %}
|
||||
<img src="{{ photo_url }}" alt="" style="max-width: 800px; width: 100%;">
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user