{% load i18n rest_framework %}


{% if success %}
	<div class="row justify-content-center">
		<div class="col-12 col-lg-7 col-xl-6 mb-4">
			<div class="alert alert-success">
				<p>{% trans "We've emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly." %}</p>

				<p>{% trans "If you don't receive an email, please make sure you've entered the address you registered with, and check your spam folder." %}</p>
			</div>
		</div>
	</div>
{% else %}
	<div class="row">
		<div class="col-12">
			{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}
		</div>
	</div>
	{% if request.method == 'POST' %}
		<div class="row justify-content-center mt-3">
			<div class="col-12 col-lg-8 col-xl-7">
				<div class="alert alert-danger">
					{% if error_message %}
						{{ error_message }}
					{% else %}
						{% trans 'There have been errors in the data you submitted.' %}
					{% endif %}
				</div>
			</div>
		</div>
	{% endif %}
	<div class="row justify-content-center mt-4">
		<div class="col-12 col-lg-7 col-xl-6">
			{% render_form serializer %}
		</div>
	</div>
{% endif %}



