NDOJ/templates/contest/clone.html

58 lines
1.3 KiB
HTML
Raw 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>
#contest-clone-panel {
position: relative;
margin: 5em auto auto -10em;
top: 40%;
left: 50%;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
#contest-key-container {
margin: 0.5em 0;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
#id_key {
width: 100%;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
ul.errorlist {
list-style-type: none;
padding-left: 0;
text-align: center;
}
</style>
2020-01-21 06:35:58 +00:00
{% endblock %}
2023-08-14 14:10:28 +00:00
{% block js_media %}
<script type="text/javascript">
$(function() {
$("#id_organization").select2();
});
</script>
{% endblock %}
2020-01-21 06:35:58 +00:00
{% block body %}
2023-01-27 23:11:10 +00:00
<form id="contest-clone-panel" action="" method="post" class="form-area">
{% csrf_token %}
2023-08-14 14:10:28 +00:00
{% if form.key.errors %}
2023-01-27 23:11:10 +00:00
<div id="form-errors">
2023-08-14 14:10:28 +00:00
<div>{{ form.key.errors }}</div>
2023-01-27 23:11:10 +00:00
</div>
{% endif %}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
<div><label class="inline-header grayed">{{ _('Enter a new key for the cloned contest:') }}</label></div>
<div id="contest-key-container"><span class="fullwidth">{{ form.key }}</span></div>
2023-10-16 22:37:52 +00:00
<div><label class="inline-header grayed">{{ _('Group') }}:</label></div>
2023-08-14 14:10:28 +00:00
{{form.organization}}
{% if form.organization.errors %}
<div id="form-errors">
<div>{{ form.organization.errors }}</div>
</div>
{% endif %}
2023-01-27 23:11:10 +00:00
<hr>
<button style="float: right;" type="submit">{{ _('Clone!') }}</button>
</form>
2020-01-21 06:35:58 +00:00
{% endblock %}