Skip to content
Snippets Groups Projects
Commit e5df1a02 authored by Jan Prachař's avatar Jan Prachař
Browse files

Vylepšení UX na výsledkovce a Tabulce řešení

parent 2f905aab
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ def org_score(round_id: Optional[int] = None, hier_id: Optional[int] = None, ct_ ...@@ -200,7 +200,7 @@ def org_score(round_id: Optional[int] = None, hier_id: Optional[int] = None, ct_
task.code task.code
) )
if ctx.rights.can_edit_points(): if ctx.rights.can_edit_points():
title += ' <a href="{}" title="Editovat body" class="icon">✎</a>'.format( title += ' <a href="{}" title="Editovat body" class="btn btn-xs btn-default"><span class="glyphicon glyphicon-pencil"></span></a>'.format(
url_for('org_contest_task_points', ct_id=local_ct_id, task_id=task.task_id), url_for('org_contest_task_points', ct_id=local_ct_id, task_id=task.task_id),
) )
columns.append(Column(key=f'task_{task.task_id}', name=task.code, title=title)) columns.append(Column(key=f'task_{task.task_id}', name=task.code, title=title))
......
...@@ -50,7 +50,7 @@ Odkazem v záhlaví se lze dostat na podrobný výpis odevzdání všech účast ...@@ -50,7 +50,7 @@ Odkazem v záhlaví se lze dostat na podrobný výpis odevzdání všech účast
{% for task in tasks[4*i:4*(i+1)] %}<th colspan=4> {% for task in tasks[4*i:4*(i+1)] %}<th colspan=4>
<a href="{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}">{{ task.code }}</a> <a href="{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}">{{ task.code }}</a>
{% if rights.can_edit_points() %} {% if rights.can_edit_points() %}
<a title="Editovat body" href="{{ ctx.url_for('org_contest_task_points', task_id=task.task_id) }}" class="icon pull-right"></a> <a class="btn btn-xs btn-default" href="{{ ctx.url_for('org_contest_task_points', task_id=task.task_id) }}"><span class="glyphicon glyphicon-pencil"></span> Zadat body</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<th rowspan=2>Body celkem <th rowspan=2>Body celkem
...@@ -117,11 +117,18 @@ Odkazem v záhlaví se lze dostat na podrobný výpis odevzdání všech účast ...@@ -117,11 +117,18 @@ Odkazem v záhlaví se lze dostat na podrobný výpis odevzdání všech účast
<tfoot> <tfoot>
<tr><td><td> <tr><td><td>
{% for task in tasks[4*i:4*(i+1)] %} {% for task in tasks[4*i:4*(i+1)] %}
<td colspan=4> <td>
<a class='btn btn-xs btn-primary' href="{{ ctx.url_for('org_generic_batch_download', task_id=task.task_id) }}"><span class="glyphicon glyphicon-cloud-download"></span> Stáhnout</a> <a class='btn btn-xs btn-default' href="{{ ctx.url_for('org_generic_batch_download', task_id=task.task_id) }}" title="Stáhnout ZIP řešení úlohy {{ task.code }}"><span class="glyphicon glyphicon-cloud-download"></span></a>
<td>
{% if rights.can_upload_feedback() %} {% if rights.can_upload_feedback() %}
<a class='btn btn-xs btn-primary' href="{{ ctx.url_for('org_generic_batch_upload', task_id=task.task_id) }}">Nahrát opravy</a> <a class='btn btn-xs btn-default' href="{{ ctx.url_for('org_generic_batch_upload', task_id=task.task_id) }}" title="Nahrát ZIP opravených řešení úlohy {{ task.code }}"><span class="glyphicon glyphicon-cloud-upload"></span></a>
{% endif %}
<td>
{% if rights.can_edit_points() %}
<a class="btn btn-xs btn-default" href="{{ ctx.url_for('org_contest_task_points', task_id=task.task_id) }}" title="Editovat body k úloze {{ task.code }}"><span class="glyphicon glyphicon-pencil"></span></a>
{% endif %} {% endif %}
<td>
<a class="btn btn-xs btn-primary" href="{{ ctx.url_for('org_contest_task', task_id=task.task_id) }}" title="Podrobný výpis odevzdaných řešení k úloze {{ task.code }}"><span class="glyphicon glyphicon-search"></span></a>
{% endfor %} {% endfor %}
<td> <td>
</tfoot> </tfoot>
......
...@@ -26,9 +26,8 @@ Výsledky {{ round.name|round_genitive|lower }}{% if public %} {{ round.year }}. ...@@ -26,9 +26,8 @@ Výsledky {{ round.name|round_genitive|lower }}{% if public %} {{ round.year }}.
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<p>Export pod tabulkou obsahuje sloupce navíc.
{% if contest and contest.state == RoundState.grading or round.state == RoundState.grading %} {% if contest and contest.state == RoundState.grading or round.state == RoundState.grading %}
Rozkliknutím bodů se lze dostat na detail daného řešení. <p>Rozkliknutím bodů se lze dostat na detail daného řešení.
{% endif %} {% endif %}
{% set master = round.master %} {% set master = round.master %}
......
...@@ -22,7 +22,7 @@ finální (ve výchozím stavu poslední nahrané).{% elif rights.can_upload_sol ...@@ -22,7 +22,7 @@ finální (ve výchozím stavu poslední nahrané).{% elif rights.can_upload_sol
<th>Poznámky <th>Poznámky
<th>Přidělené body <th>Přidělené body
{% if not for_user and not site and rights.can_edit_points() and not points_form %} {% if not for_user and not site and rights.can_edit_points() and not points_form %}
<a title="Editovat body" href="{{ ctx.url_for('org_contest_task_points') }}" class="icon pull-right"></a> <a class="btn btn-xs btn-default" title="Editovat body" href="{{ ctx.url_for('org_contest_task_points') }}"><span class="glyphicon glyphicon-pencil"></span></a>
{% endif %} {% endif %}
<th>Akce <th>Akce
</tr> </tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment