@@ -225,27 +225,29 @@ <h1>{% trans name=task.title, short_name=task.name %}{{ name }} ({{ short_name }
225225</ div >
226226{% endif %}
227227
228+ {% if actual_phase == 0 or actual_phase == 3 or participation.unrestricted %}
229+
228230< h2 style ="margin-bottom: 10px "> {% trans %}Submit a solution{% endtrans %}</ h2 >
229231
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 %}
232234 < p > < strong > {% trans %}You may submit any subset of outputs in a single submission.{% endtrans %}</ strong > </ p >
233- {% endif %}
235+ {% endif %}
234236
235- {% if submissions_left is not none %}
237+ {% if submissions_left is not none %}
236238 < div class ="span5 ">
237239 < p >
238240 {% trans submissions_left=submissions_left %}You can submit {{ submissions_left }} more solution(s).{% endtrans %}
239241 </ p >
240242 </ div >
241- {% endif %}
243+ {% endif %}
242244
243245< div id ="submit_solution " class ="row ">
244246 < div class ="span5 ">
245247 < form class ="form-horizontal " enctype ="multipart/form-data " action ="{{ contest_url( "tasks ", task.name, "submit") }}" method="POST ">
246248 {{ xsrf_form_html|safe }}
247249 < fieldset >
248- {% for filename in task.submission_format %}
250+ {% for filename in task.submission_format %}
249251 < div class ="control-group ">
250252 < label class ="control-label " for ="input{{ loop.index0 }} "> {{ filename|replace(".%l", ": ") }}</ label >
251253 < div class ="controls ">
@@ -255,18 +257,18 @@ <h2 style="margin-bottom: 10px">{% trans %}Submit a solution{% endtrans %}</h2>
255257 $(this).parents('form').find('input[type=file]')) "/>
256258 </ div >
257259 </ div >
258- {% endfor %}
259- {% if task.submission_format|any("endswith", ".%l") %}
260+ {% endfor %}
261+ {% if task.submission_format|any("endswith", ".%l") %}
260262 < div class ="control-group ">
261263 < div class ="controls ">
262264 < select name ="language ">
263- {% for lang in contest.languages %}
265+ {% for lang in contest.languages %}
264266 < option value ="{{ lang }} "> {{ lang }}</ option >
265- {% endfor %}
267+ {% endfor %}
266268 </ select >
267269 </ div >
268270 </ div >
269- {% endif %}
271+ {% endif %}
270272 < div class ="control-group ">
271273 < div class ="controls ">
272274 < 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>
276278 </ fieldset >
277279 </ form >
278280 </ 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") %}
280282 < div class ="span4 ">
281283 < form class ="form-horizontal " enctype ="multipart/form-data " action ="{{ contest_url( "tasks ", task.name, "submit") }}" method="POST ">
282284 {{ xsrf_form_html|safe }}
@@ -296,9 +298,10 @@ <h2 style="margin-bottom: 10px">{% trans %}Submit a solution{% endtrans %}</h2>
296298 </ fieldset >
297299 </ form >
298300 </ div >
299- {% endif %}
301+ {% endif %}
300302</ div >
301303
304+ {% endif %}
302305
303306< h2 style ="margin: 40px 0 10px "> {% trans %}Previous submissions{% endtrans %}</ h2 >
304307
0 commit comments