NDOJ/templates/contest/clarification.html

55 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2021-07-19 01:22:44 +00:00
{% extends "base.html" %}
{% block media %}
2023-01-27 23:11:10 +00:00
{{ form.media.css }}
<style>
form#clarification-form {
display: block;
margin: 0 auto;
width: 100%;
max-width: 750px;
padding-top: 1em;
}
2021-07-19 01:22:44 +00:00
2023-01-27 23:11:10 +00:00
#id_title {
width: 100%;
}
2021-07-19 01:22:44 +00:00
2023-01-27 23:11:10 +00:00
form#clarification-form .submit {
margin: 10px 0 0 auto;
}
</style>
2021-07-19 01:22:44 +00:00
{% endblock %}
{% block js_media %}
2023-01-27 23:11:10 +00:00
{{ form.media.js }}
<script>
2021-07-19 01:22:44 +00:00
$(function() {
2023-01-27 23:11:10 +00:00
$('#problem-select').select2({width: '40em'});
2021-07-19 01:22:44 +00:00
});
2023-01-27 23:11:10 +00:00
</script>
2021-07-19 01:22:44 +00:00
{% endblock %}
{% block body %}
2023-01-27 23:11:10 +00:00
<form id="clarification-form" action="" method="POST" class="form-area">
{% csrf_token %}
{% if form.body.errors %}
<div class="form-errors">
{{ form.body.errors }}
</div>
{% endif %}
<h4>
<span>{{_('Problem')}}: </span>
<select name="problem" id="problem-select">
{% for problem in problems %}
<option value="{{ problem.problem.code }}" class="point-dropdown">
{{ problem.order }}. {{problem.problem.name}}
</option>
{% endfor %}
</select>
</h4>
<div class="body-block">{{ form.body }}</div>
<button type="submit" class="submit">{{ _('Create') }}</button>
</form>
2021-07-19 01:22:44 +00:00
{% endblock %}