@@ -225,27 +225,29 @@ <h1>{% trans name=task.title, short_name=task.name %}{{ name }} ({{ short_name }
225
225
</ div >
226
226
{% endif %}
227
227
228
+ {% if actual_phase == 0 or actual_phase == 3 or participation.unrestricted %}
229
+
228
230
< h2 style ="margin-bottom: 10px "> {% trans %}Submit a solution{% endtrans %}</ h2 >
229
231
230
- {% set task_type = get_task_type(dataset=task.active_dataset) %}
231
- {% if task_type.ALLOW_PARTIAL_SUBMISSION %}
232
+ {% set task_type = get_task_type(dataset=task.active_dataset) %}
233
+ {% if task_type.ALLOW_PARTIAL_SUBMISSION %}
232
234
< p > < strong > {% trans %}You may submit any subset of outputs in a single submission.{% endtrans %}</ strong > </ p >
233
- {% endif %}
235
+ {% endif %}
234
236
235
- {% if submissions_left is not none %}
237
+ {% if submissions_left is not none %}
236
238
< div class ="span5 ">
237
239
< p >
238
240
{% trans submissions_left=submissions_left %}You can submit {{ submissions_left }} more solution(s).{% endtrans %}
239
241
</ p >
240
242
</ div >
241
- {% endif %}
243
+ {% endif %}
242
244
243
245
< div id ="submit_solution " class ="row ">
244
246
< div class ="span5 ">
245
247
< form class ="form-horizontal " enctype ="multipart/form-data " action ="{{ contest_url( "tasks ", task.name, "submit") }}" method="POST ">
246
248
{{ xsrf_form_html|safe }}
247
249
< fieldset >
248
- {% for filename in task.submission_format %}
250
+ {% for filename in task.submission_format %}
249
251
< div class ="control-group ">
250
252
< label class ="control-label " for ="input{{ loop.index0 }} "> {{ filename|replace(".%l", ": ") }}</ label >
251
253
< div class ="controls ">
@@ -255,18 +257,18 @@ <h2 style="margin-bottom: 10px">{% trans %}Submit a solution{% endtrans %}</h2>
255
257
$(this).parents('form').find('input[type=file]')) "/>
256
258
</ div >
257
259
</ div >
258
- {% endfor %}
259
- {% if task.submission_format|any("endswith", ".%l") %}
260
+ {% endfor %}
261
+ {% if task.submission_format|any("endswith", ".%l") %}
260
262
< div class ="control-group ">
261
263
< div class ="controls ">
262
264
< select name ="language ">
263
- {% for lang in contest.languages %}
265
+ {% for lang in contest.languages %}
264
266
< option value ="{{ lang }} "> {{ lang }}</ option >
265
- {% endfor %}
267
+ {% endfor %}
266
268
</ select >
267
269
</ div >
268
270
</ div >
269
- {% endif %}
271
+ {% endif %}
270
272
< div class ="control-group ">
271
273
< div class ="controls ">
272
274
< button type ="submit " class ="btn btn-success "> {% trans %}Submit{% endtrans %}</ button >
@@ -276,7 +278,7 @@ <h2 style="margin-bottom: 10px">{% trans %}Submit a solution{% endtrans %}</h2>
276
278
</ fieldset >
277
279
</ form >
278
280
</ div >
279
- {% if task.submission_format|length > 1 and not task.submission_format|any("endswith", ".%l") %}
281
+ {% if task.submission_format|length > 1 and not task.submission_format|any("endswith", ".%l") %}
280
282
< div class ="span4 ">
281
283
< form class ="form-horizontal " enctype ="multipart/form-data " action ="{{ contest_url( "tasks ", task.name, "submit") }}" method="POST ">
282
284
{{ xsrf_form_html|safe }}
@@ -296,9 +298,10 @@ <h2 style="margin-bottom: 10px">{% trans %}Submit a solution{% endtrans %}</h2>
296
298
</ fieldset >
297
299
</ form >
298
300
</ div >
299
- {% endif %}
301
+ {% endif %}
300
302
</ div >
301
303
304
+ {% endif %}
302
305
303
306
< h2 style ="margin: 40px 0 10px "> {% trans %}Previous submissions{% endtrans %}</ h2 >
304
307
0 commit comments