{% extends base_template %}
{% load i18n static localcosmos_tags %}

{% block title %}{{ title }}{% endblock %}

{% block content %}
	<div class="container">
		<div class="row">
			<div class="col-12">
				<div class="slogan text-center">
					{{ title }}
				</div>
			</div>
		</div>

		<div class="row justify-content-center">
			
			{% if validlink %}
				<div class="col-12 col-md-8 col-lg-6">
					<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>

					<form method="post">{% csrf_token %}
						{% render_bootstrap_form form %}
						<p class="text-center">
							<button type="submit" class="btn btn-outline-success">{% trans 'Change my password' %}</button>
						</p>
					</form>
				</div>
			{% else %}
				<div class="col-12">
					<p>{% trans 'The password reset link was invalid, possibly because it has already been used. Please request a new password reset.' %}</p>
				</div>
			{% endif %}

		</div>
	</div>
{% endblock %}
