add a template for device details

This commit is contained in:
Andreas Zweili 2017-12-25 13:50:32 +01:00
parent f398547c7f
commit 00c9762d4c
2 changed files with 17 additions and 0 deletions

View File

@ -535,6 +535,17 @@ information.
{% endblock %}
#+END_SRC
** device_details.html
#+BEGIN_SRC html :tangle ../inventory/templates/inventory/device_details.html
{% extends "inventory/base.html" %}
{% block section_title %}{{ device.name }}{% endblock %}
{% block content %}
<h3>Description</h3>
<p>{{ device.description }}</p>
{% endblock %}
#+END_SRC
** computer_details.html
The computer details show all the known information about the selected computer.

View File

@ -0,0 +1,6 @@
{% extends "inventory/base.html" %}
{% block section_title %}{{ device.name }}{% endblock %}
{% block content %}
<h3>Description</h3>
<p>{{ device.description }}</p>
{% endblock %}