You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="container" style="text-align:center;">
|
|
|
|
|
|
|
|
<div class="title">
|
|
|
|
<h3>Add Node</h3>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>URL</th>
|
|
|
|
<th>Tor</th>
|
|
|
|
<th>Available</th>
|
|
|
|
<th>Network</th>
|
|
|
|
<th>Is Monero</th>
|
|
|
|
<th>Last Checked</th>
|
|
|
|
</tr>
|
|
|
|
{% for node in nodes %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ node.url }}</td>
|
|
|
|
<td>{{ node.is_tor }}</td>
|
|
|
|
<td>{{ node.available }}</td>
|
|
|
|
<td>{{ node.nettype }}</td>
|
|
|
|
<td>{{ node.is_monero }}</td>
|
|
|
|
<td>{{ node.datetime_checked }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<form method="POST" action="{{ url_for('add') }}">
|
|
|
|
{{ form.csrf_token }}
|
|
|
|
{% for f in form %}
|
|
|
|
{% if f.name != 'csrf_token' %}
|
|
|
|
<div class="form-group">
|
|
|
|
{{ f.label }}
|
|
|
|
{{ f }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<ul>
|
|
|
|
{% for field, errors in form.errors.items() %}
|
|
|
|
<li>{{ form[field].label }}: {{ ', '.join(errors) }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
<input type="submit" value="Send" class="btn btn-link btn-outline btn-xl">
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
{% if page > 1 %}
|
|
|
|
<a href="/?page={{ page - 1 }}">Back</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if page < total_pages and total_pages > 0 %}
|
|
|
|
<a href="/?page={{ page + 1 }}">Next</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|