ui: Handle missing txn gracefully on bid page.

This commit is contained in:
tecnovert committed 2022-10-05 16:55:09 +02:00
1 parent eb30369bd4
commit f29eac0eb5
4 files changed
+18 -6

No files matched your search

+7
View File
@@ -10,6 +10,9 @@
{% for m in messages %}
<p>{{ m }}</p>
{% endfor %}
{% for m in err_messages %}
<p class="error_msg">Error: {{ m }}</p>
{% endfor %}
<table>
{% if data.was_sent == 'True' %}
@@ -104,9 +107,13 @@
<table>
<tr><td>View Transaction</td><td>
<select name="view_tx">
{% if data.txns|length %}
{% for tx in data.txns %}
<option value="{{ tx.txid }}"{% if data.view_tx_ind==tx.txid %} selected{% endif %}>{{ tx.type }} {{ tx.txid }}</option>
{% endfor %}
{% else %}
<option value="0">--- None exist yet ---</option>
{% endif %}
</select></td></tr>
</table>
<input name="view_tx_submit" type="submit" value="View Tx">
+1 -1
View File
@@ -7,6 +7,6 @@
<body>
<h2>{{ title_str }}</h2>
<p>Error: {{ message_str }}</p>
<p><a href=\'/\'>home</a></p>
<p><a href="/">home</a></p>
</body>
</html>
+1 -1
View File
@@ -7,6 +7,6 @@
<body>
<h2>{{ title_str }}</h2>
<p>Info: {{ message_str }}</p>
<p><a href=\'/\'>home</a></p>
<p><a href="/">home</a></p>
</body>
</html>