{% extends 'base.html' %}
{% load filters %}
{% block title %}{{ Block.name }} | решения{% endblock %}
{% block scripts %}
function filter() {
const idi = document.getElementById('idi').value;
const task = document.getElementById('task_name').value;
const user = document.getElementById('user').value;
const group = document.getElementById('group').value;
const last_solution = document.getElementById('last_solution').checked;
const best_result = document.getElementById('best_result').checked;
const only_students = document.getElementById('only_students').checked;
const not_seen = document.getElementById('not_seen').checked;
var req = '';
if (idi) {
req += '&solution_id=' + idi;
}
if (not_seen) {
req += '¬_seen=' + not_seen;
}
if (task) {
req += '&task_name=' + task;
}
if (user) {
req += '&user=' + user;
}
if (group) {
req += '&group=' + group;
}
if (last_solution) {
req += '&last_solution=' + last_solution;
}
if (best_result) {
req += '&best_result=' + best_result;
}
if (only_students) {
req += '&only_students=' + only_students;
}
window.location.href = '/admin/solutions?block_id={{ Block.id }}' + req;
}
function retest() {
let del = confirm("Подтвердите перетест");
if (del)
window.location.href = '/admin/retest?block_id={{ Block.id }}{% autoescape off %}{{ req }}{% endautoescape %}';
}
function download() {
let del = confirm("Подтвердите скачивание");
if (del) {
window.location.href = '/admin/download?block_id={{ Block.id }}{% autoescape off %}{{ req }}{% endautoescape %}';
}
}
function showHideTests() {
var text = document.getElementById('tests_text');
var button = document.getElementById('tests_button');
text.hidden = !text.hidden;
if (text.hidden) {
button.textContent = 'Показать тесты';
} else {
button.textContent = 'Скрыть тесты';
}
}
function showHideLog() {
var text = document.getElementById('log_text');
var button = document.getElementById('log_button');
text.hidden = !text.hidden;
if (text.hidden) {
button.textContent = 'Показать лог';
} else {
button.textContent = 'Скрыть лог';
}
}
function fillModalResults(id) {
jQuery.get('/get_result_data?id=' + id, function(data) {
const response = JSON.parse(data);
if (response['success'] == true) {
document.getElementById('resultModalLongTitle').innerHTML = 'Подробная информация о тестировании ' + id;
document.getElementById('results_text').innerHTML = response['results_text'];
document.getElementById('tests_text').innerHTML = '
Тесты
' + response['tests_text'];
document.getElementById('log_text').innerHTML = 'Лог
' + response['log_text'];
}
});
}
function fillModalComments(id) {
jQuery.get('/get_comment_data?id=' + id, function(data) {
const response = JSON.parse(data);
if (response['success'] == true) {
document.getElementById('commentModalLongTitle').innerHTML = 'Комментарий к решению ' + id;
document.getElementById('comment_text').innerHTML = response['comment_text'];
}
});
}
{% endblock %}
{% block styles %}
.input_field {
width: 500px;
}
{% endblock %}
{% block content %}
Фильтр
Статистика по таскам
Таск |
Верно |
Частично |
С ошибкой |
Все |
{% for task in Block.tasks %}
{{ task.name }} |
{{ task.correct_count }} |
{{ task.partially_passed }} |
{{ task.solutions_with_error }} |
{{ task.solutions_count }} |
{% endfor %}
Решения
id |
Таск |
Пользователь |
Время отправки |
Группа |
Результат |
Оценка |
Комментарий |
Действия |
{% for solution in solutions %}
{{ solution.id }}
|
{{ solution.task.name }}
|
{{ solution.userinfo.surname }} {{ solution.userinfo.name }} {{ solution.userinfo.middle_name }}
|
{{ solution.time_sent }}
|
{{ solution.userinfo.group }}
|
|
{{ solution.mark_property }}
|
{% if solution.comment %}
{% else %}
Нет комментария
{% endif %}
|
|
{% endfor %}
{% endblock %}