{% extends "base" %}
{% block title %}Found a stray? - {% endblock title %}
{% block main %}
<form action="/profile" id="stray-form">
	<h2>Found a stray?</h2>

	{% if miss %}
	<p class="form-error">Nothing found with this ID</p>
	{% endif %}

	<label for="ident">Enter the 6-digit ID you found</label>
	<input type="text" inputmode="numeric" pattern="\d{6}" id="ident" name="ident" size="6" placeholder="000000"
		autofocus {% if ident %}value="{{ident}}" {% endif %} />

	<label for="microchip_id">Alternatively, enter the microchip ID (hexadecimal form), if available</label>
	<input type="text" pattern="(0x)?[a-fA-F0-9]+" id="microchip_id" name="microchip_id" placeholder="A hexadecimal ID"
		{% if microchip_id %}value="{{microchip_id}}" {% endif %} />

	<button type="submit">Search the database</button>
</form>
{% endblock main %}