-
-
Notifications
You must be signed in to change notification settings - Fork 446
Expand file tree
/
Copy pathproblem_submit.html
More file actions
48 lines (47 loc) · 1.68 KB
/
problem_submit.html
File metadata and controls
48 lines (47 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% extends "layout/basic.html" %}
{% block content %}
{{ set(UiContext, 'pdoc', pdoc) }}
{% if tdoc %}
{{ set(UiContext, 'tdoc', tdoc) }}
{% endif %}
<div class="row">
<div class="medium-9 columns">
<div class="section">
<div class="section__header">
<h1 class="section__title">{{ _('Submit to Judge') }}</h1>
</div>
<div class="section__body typo" name="submit_section">
<form method="post" enctype="multipart/form-data">
<div class="hasjs--hide">
{{ form.form_select({
label:'Code language',
options:langRange,
name:'lang',
value:handler.user.codeLang
}) }}
</div>
<div class="row nojs--hide" id="codelang-selector"></div>
{{ form.form_textarea({label:'Code', columns:12, name:'code', extra_class:'monospace', autofocus:true}) }}
<div class="row">
<div class="medium-12 columns">
<p>{{ _('Or upload a file:') }} <input type="file" name="file"></p>
<br />
</div>
</div>
<div class="row"><div class="columns">
{% if not tdoc or not tdoc.lockedList[pdoc.docId].includes(handler.user._id) %}
<input type="submit" class="rounded primary button" value="{{ _('Submit') }}">
{% else %}
<input disabled type="submit" class="rounded primary button" value="{{ _('Locked') }}">
{% endif %}
</div></div>
</form>
</div>
</div>
</div>
<div class="medium-3 columns">
{% set owner_udoc = udoc %}
{% include "partials/problem_sidebar.html" %}
</div>
</div>
{% endblock %}