summaryrefslogtreecommitdiffstats
path: root/pywrap/templates/registers_list.html
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-22 12:21:04 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-22 12:21:04 +0100
commit2c2a714e0615d6aff3773fabfd3b93e8672a40a1 (patch)
treee482ce7d9c6de21dac5999fb2af2cab30208ec32 /pywrap/templates/registers_list.html
parentb16fd97ffcaf9e7bd3fd52e505adbed2ffd0c768 (diff)
downloadpcitool-2c2a714e0615d6aff3773fabfd3b93e8672a40a1.tar.gz
pcitool-2c2a714e0615d6aff3773fabfd3b93e8672a40a1.tar.bz2
pcitool-2c2a714e0615d6aff3773fabfd3b93e8672a40a1.tar.xz
pcitool-2c2a714e0615d6aff3773fabfd3b93e8672a40a1.zip
Add device html server
Diffstat (limited to 'pywrap/templates/registers_list.html')
-rw-r--r--pywrap/templates/registers_list.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/pywrap/templates/registers_list.html b/pywrap/templates/registers_list.html
new file mode 100644
index 0000000..199475b
--- /dev/null
+++ b/pywrap/templates/registers_list.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+{% block title %}Registers list{% endblock %}
+{% block info %}
+<h1>List of aviable registers</h1>
+{% endblock %}
+
+{% block content %}
+<table border="1" style="width:100%">
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ </tr>
+{% for register in registers %}
+ <tr>
+ <td><a href="{{ url_for('get_register_info', bank=register.bank, name=register.name) }}">{{ register.name }}</td>
+ {% if 'description' in register %}
+ <td>{{ register.description }}</td>
+ {% else %}
+ <td></td>
+ {% endif %}
+ </tr>
+{% endfor %}
+</table>
+{% endblock %}
+
+