{% extends 'base.html' %}
{% block content %}
<div class="container" style="text-align:center;">
<div class="title">
<h3>Add Node</h3>
</div>
{% for node in nodes %}
{{ node.url }}<br>
{% endfor %}
<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 }}
{% endif %}
<ul>
{% for field, errors in form.errors.items() %}
<li>{{ form[field].label }}: {{ ', '.join(errors) }}</li>
</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>
{% if page < total_pages and total_pages > 0 %}
<a href="/?page={{ page + 1 }}">Next</a>
{% endblock %}