From 00c9762d4c2d64fc956f7ca7f56b72136708af96 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Dec 2017 13:50:32 +0100 Subject: [PATCH] add a template for device details --- docs/docs.org | 11 +++++++++++ inventory/templates/inventory/device_details.html | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 inventory/templates/inventory/device_details.html diff --git a/docs/docs.org b/docs/docs.org index d42ecfb..5d90378 100644 --- a/docs/docs.org +++ b/docs/docs.org @@ -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 %} +

Description

+

{{ device.description }}

+{% endblock %} +#+END_SRC + ** computer_details.html The computer details show all the known information about the selected computer. diff --git a/inventory/templates/inventory/device_details.html b/inventory/templates/inventory/device_details.html new file mode 100644 index 0000000..d492325 --- /dev/null +++ b/inventory/templates/inventory/device_details.html @@ -0,0 +1,6 @@ +{% extends "inventory/base.html" %} +{% block section_title %}{{ device.name }}{% endblock %} +{% block content %} +

Description

+

{{ device.description }}

+{% endblock %}