NDOJ/templates/problem/clone.html

43 lines
952 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>
#problem-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
#problem-code-container {
margin: 0.5em 0;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
#id_code {
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 %}
{% block body %}
2023-01-27 23:11:10 +00:00
<form id="problem-clone-panel" action="" method="post" class="form-area">
{% csrf_token %}
{% if form.errors %}
<div id="form-errors">
{{ form.code.errors }}
</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 code for the cloned problem:') }}</label></div>
<div id="problem-code-container"><span class="fullwidth">{{ form.code }}</span></div>
<hr>
<button style="float:right;" type="submit">{{ _('Clone!') }}</button>
</form>
2020-01-21 06:35:58 +00:00
{% endblock %}