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

26 lines
1,005 B
HTML
Raw 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 ($) {
$('.submissions-link').appendTo('div#bottombar').show();
$('.votes-link').appendTo('div#bottombar').show();
});
</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 %}
<a style="display: none" title="{% trans "View Submissions" %}" class="button submissions-link"
href="{% url 'admin:judge_submission_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-search-plus"></i>
<span class="text">{% trans "View submissions" %}</span>
<a style="display: none" title="{{ _('View votes') }}" class="button votes-link"
href="{% url 'admin:judge_problempointsvote_changelist' %}?problem__code={{ original.code }}">
<i class="fa fa-lg fa-envelope"></i>
<span class="text">{{ _('View votes') }}</span>
</a>
{% endif %}
2020-01-21 06:35:58 +00:00
{% endblock %}