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/register_info.html | 106 ++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 pywrap/templates/register_info.html (limited to 'pywrap/templates/register_info.html') diff --git a/pywrap/templates/register_info.html b/pywrap/templates/register_info.html new file mode 100644 index 0000000..a7f11dc --- /dev/null +++ b/pywrap/templates/register_info.html @@ -0,0 +1,106 @@ +{% extends "base.html" %} +{% block title %}Register info{% endblock %} +{% block info %} +

Register '{{ register.name }}' info

+{% endblock %} + +{% block content %} + + + + {% if 'description' in register %} + + + + + {% endif %} + + + + + {% if 'W' in register.mode %} + + + + + {% endif %} + + + + + + + + + + + + + {% if 'range' in register %} + + + + + {% endif %} + {% if 'values' in register %} + {% for v in register['values'] %} + + {% if 'name' in v %} + + {% endif %} + + + {% endfor %} + {% endif %} +
Description {{ register.description }}
Current value {{ value }}
Set value + + +
Bank{{ register.bank }}
Default value{{ register.defvalue }}
Mode +
    + {% for m in register.mode %} +
  • {{ m }}
  • + {% endfor %} +
+
+ Range + + + + + + + + + + +
min {{ register.range.min }}
max {{ register.range.max }}
+
{{v.name}} + + {% if 'description' in v %} + + + + + {% endif %} + + + + + + + + + + + + +
description {{ v.description }}
min {{ v.min }}
max {{ v.max }}
value {{ v.value }}
+
+{% endblock %} -- cgit v1.2.3