From 2c2a714e0615d6aff3773fabfd3b93e8672a40a1 Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Mon, 22 Feb 2016 12:21:04 +0100 Subject: Add device html server --- pywrap/templates/property_info.html | 91 +++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 pywrap/templates/property_info.html (limited to 'pywrap/templates/property_info.html') diff --git a/pywrap/templates/property_info.html b/pywrap/templates/property_info.html new file mode 100644 index 0000000..912d3d5 --- /dev/null +++ b/pywrap/templates/property_info.html @@ -0,0 +1,91 @@ +{% extends "base.html" %} +{% block title %}Property list{% endblock %} +{% block info %} +

List of properties in branch {{ branch }}

+{% endblock %} + +{% block content %} + + + + + + + + + {% for property in properties %} + + {% if ('childs' in property.flags) or (properties|length != 1) %} + + {% if 'description' in property %} + + + {% else %} + + {% endif %} + {% else %} + + + {% endif %} + + {% endfor %} +
NameDescription
"{{ property.name }}"{{ property.description }}{{ property.name }}" + + {% if 'description' in property %} + + + + + {% endif %} + + + + + {% if 'W' in property.mode %} + + + + + {% endif %} + + + + + + + + + + + + + + + + +
Description {{ property.description }}
Current value {{ value }}
Set value + + +
Mode +
    + {% for m in property.mode %} +
  • {{ m }}
  • + {% endfor %} +
+
Type {{ property.type }}
Unit {{ property.unit }}
Path {{ property.path }}
+
+{% endblock %} -- cgit v1.2.3