{% extends "base.html" %}

{% block title %}AS215085 - Router tools | RPKI lookup{% endblock %}

{% block page_header %}<H3>RPKI Lookup</H3>{% endblock %}

{% block content %}
    <script src="../static/js/pages/rpki.js"></script>
	<section id="rpki-lookup">
	    <h2>RPKI lookup</h2>
		<div class="input-group mb-3">
			<input
				type="text"
				id="rpkiInput"
				class="form-control"
				placeholder="Enter AS number or prefix (e.g., 215085 or 1.1.1.0/24)"
				aria-label="Enter an AS number or prefix"
				onkeydown="if(event.key === 'Enter') lookupRpki()"
			/>
			<button class="btn btn-outline-primary" type="button" onclick="lookupRpki()">Lookup</button>
		</div>
		<pre id="rpkiOutput" aria-label="RPKI lookup output">Enter an AS-number or prefix and click Lookup.</pre>
	</section>

	<section id="rpki-status">
		<h2>RPKI cache connection status</h2>
		<div id="rpkiStatusOutput" aria-label="RPKI cache connection status output">
            <p>Loading...</p>
        </div>
	</section>
{% endblock %}