NDOJ/templates/admin/judge/contest/change_form.html

24 lines
804 B
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% extends "admin/change_form.html" %}
{% load i18n %}
{% block extrahead %}{{ block.super }}
2023-01-27 23:11:10 +00:00
<script>
django.jQuery(function ($) {
$('.rerate-link').appendTo('div#bottombar').show();
$('.rejudge-link').click(function () {
return confirm('{{ _('Are you sure you want to rejudge ALL the submissions?') }}');
});
});
</script>
2020-01-21 06:35:58 +00:00
{% endblock extrahead %}
{% block after_field_sets %}{{ block.super }}
2023-01-27 23:11:10 +00:00
{% if original and original.is_rated and original.ended and perms.judge.contest_rating %}
<a style="display: none" title="{% trans "Rate" %}" href="{% url 'admin:judge_contest_rate' original.pk %}"
class="button rerate-link">
<i class="fa fa-lg fa-signal"></i>
<span class="text">{% trans "Rate" %}</span>
</a>
{% endif %}
2020-01-21 06:35:58 +00:00
{% endblock %}