NDOJ/templates/contest/access_code.html

36 lines
763 B
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% extends "base.html" %}
{% block media %}
2023-01-27 23:11:10 +00:00
<style>
#access-code-form {
margin: 50px auto 0;
display: block;
max-width: 500px;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
#id_access_code {
width: 100%;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
.button-line {
text-align: right;
}
</style>
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block body %}
2023-01-27 23:11:10 +00:00
<form id="access-code-form" action="" method="post" class="form-area">
{% csrf_token %}
{% if form.errors or wrong_code %}
<div id="form-errors">
<p class="error">{{ _('Invalid access code.') }}</p>
</div>
{% endif %}
<p>{{ _('Please enter your access code:') }}</p>
<p>{{ form.access_code }}</p>
<p class="button-line">
<button type="submit">{{ _('Join Contest') }}</button>
</p>
</form>
2020-01-21 06:35:58 +00:00
{% endblock %}