Skip to content
Snippets Groups Projects
Commit da219cf0 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add filter field to configuration table (gui)

parent 5cc024b6
No related branches found
No related tags found
3 merge requests!109Acceptance,!108Master,!107Dev nico
...@@ -107,13 +107,16 @@ def convert_config_to_html(querylist): ...@@ -107,13 +107,16 @@ def convert_config_to_html(querylist):
# iterate through the dict of key/values # iterate through the dict of key/values
key = record.key key = record.key
value = record.value value = record.value
filter = record.filter
try: try:
if "://" in value: if "://" in value:
link = "<a href=" + '"' + value + '">' + key +"</a>" link = "<a href=" + '"' + value + '">' + key +"</a>"
value = link value = link
except: except:
pass pass
line = "<tr><td><b>" + str(key) + "</b></td><td>" + str(value) + "</td></tr>"
line = "<tr><td><b>" + str(filter) + "</b></td> <td><b>" + str(key) + "</b></td><td>" + str(value) + "</td></tr>"
results = results + line results = results + line
except: except:
results = "<tr><td>no data</td></tr>" results = "<tr><td>no data</td></tr>"
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<div class="card-body"> <div class="card-body">
<h3>Configuration </h3> <h3>Configuration </h3>
<table class="table table-striped"> <table class="table table-striped">
<th>filter</th><th>key</th><th>value</th>
<tbody> <tbody>
{{ results | safe }} {{ results | safe }}
</tbody> </tbody>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment