You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

149 lines
9.9 KiB

{% extends 'reports/base_index.html' %}
{% load course_filter %}
{% block title %}Бесплатная неделя{% endblock %}
{% block page_title %}Бесплатная неделя{% endblock %}
{% block head %}
{% endblock %}
{% block content %}
{% if title %}
<p style=" font-weight: bold;
font-size: 30px;
margin-left: 15px;
padding-top: 10px;"><a href="/management/reports/freeweek/"><i class="glyphicon glyphicon-arrow-left"></i> Назад</a></p>
{% endif %}
<h3 style="margin-left: 20px;margin-top:20px;font-weight: bold;border-top: 1px dotted #ccc;padding-top: 30px;">
<i class="glyphicon glyphicon-equalizer"></i> {% if title %}{{ title }}{% else %}Активность пользователей{% endif %}
</h3>
{% if not title %}
<table class="table table-hover" style="background: #ffc;">
<tr style="font-weight: bold;background: #ccc;">
<td>Всего пользователей</td>
<td>Прошли активацию</td>
<td>Java <i>[ {{ java.all }} ]</i></td>
<td>Web <i>[ {{ web.all }} ]</i></td>
<td>Android <i>[ {{ android.all }} ]</i></td>
<td>C# <i>[ {{ csh.all }} ]</i></td>
</tr>
<tr>
<td style="border-right: 1px dotted #ccc;">{{ all }}</td>
<td style="border-right: 1px dotted #ccc;">{{ active.count }} <i>[{{ active.persent }}%]</i></td>
<td style="border-right: 1px dotted #ccc;">
Проходят обучение: {{ java.in.count }}<br>
Получили домашку: {{ java.in_hw }}<br>
Сдали домашку: {{ java.out_hw }}<br>
</td>
<td style="border-right: 1px dotted #ccc;">
Проходят обучение: {{ web.in.count }}<br>
Получили домашку: {{ web.in_hw }}<br>
Сдали домашку: {{ web.out_hw }}<br>
</td>
<td style="border-right: 1px dotted #ccc;">
Проходят обучение: {{ android.in.count }}<br>
Получили домашку: {{ android.in_hw }}<br>
Сдали домашку: {{ android.out_hw }}<br>
</td>
<td style="border-right: 1px dotted #ccc;">
Проходят обучение: {{ csh.in.count }}<br>
Получили домашку: {{ csh.in_hw }}<br>
Сдали домашку: {{ csh.out_hw }}<br>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td><a href="/management/reports/freeweek/?price={{ java.id }}" style="color: #00bdff;border-bottom: 1px dotted #00bdff;">Открыть конкретику</a></td>
<td><a href="/management/reports/freeweek/?price={{ web.id }}" style="color: #00bdff;border-bottom: 1px dotted #00bdff;">Открыть конкретику</a></td>
<td><a href="/management/reports/freeweek/?price={{ android.id }}" style="color: #00bdff;border-bottom: 1px dotted #00bdff;">Открыть конкретику</a></td>
<td><a href="/management/reports/freeweek/?price={{ csh.id }}" style="color: #00bdff;border-bottom: 1px dotted #00bdff;">Открыть конкретику</a></td>
</tr>
</table>
{% else %}
<table class="table table-hover" style="background: #ffc;">
<tr style="font-weight: bold;background: #ccc;">
<td style="border-right: 1px dotted #fff;">ФИО</td>
<td style="border-right: 1px dotted #fff;">Телефон</td>
<td style="border-right: 1px dotted #fff;">Email</td>
<td style="border-right: 1px dotted #fff;"> --- </td>
<td style="border-right: 1px dotted #fff;">Дата открытия доступа</td>
<td style="border-right: 1px dotted #fff;"> --- </td>
<td style="border-right: 1px dotted #fff;"> --- </td>
<td style="border-right: 1px dotted #fff;">Дата завершения доступа</td>
<td style="border-right: 1px dotted #fff;"> --- </td>
</tr>
<tr style="font-weight: bold;background: #ccc;">
<td colspan="9">Весь список [{{ b_in|length }}]</td>
</tr>
{% for bill in b_in %}
<tr>
<td style="border-right: 1px dotted #ccc;"><b>{{ bill.user.id }}:{{ bill.user.get_full_name }}</b></td>
<td style="border-right: 1px dotted #ccc;">{{ bill.user.get_phone }}</td>
<td style="border-right: 1px dotted #ccc;">{{ bill.user.email }}</td>
<td style="border-right: 1px dotted #ccc;"> --- </td>
<td style="border-right: 1px dotted #ccc;"><script>window.user_{{ bill.user.id }}_s = '{{ bill.finish_date }}'</script>{{ bill.finish_date }}</td>
<td style="border-right: 1px dotted #ccc;"> --- </td>
<td style="border-right: 1px dotted #ccc;"> --- </td>
<td style="border-right: 1px dotted #ccc;"><script>window.user_{{ bill.user.id }}_f = '{{ bill.fire_date }}'</script>{{ bill.fire_date }}</td>
<td style="border-right: 1px dotted #ccc;"> --- </td>
</tr>
{% endfor %}
<tr style="font-weight: bold;background: #ccc;">
<td colspan="9">Получили ДЗ [{{ in_hw|length }}]</td>
</tr>
<tr style="background: #f1f1f1;">
<td style="border-right: 1px dotted #fff;">ФИО</td>
<td style="border-right: 1px dotted #fff;">Телефон</td>
<td style="border-right: 1px dotted #fff;">Email</td>
<td style="border-right: 1px dotted #fff;">Точка нахождения</td>
<td style="border-right: 1px dotted #fff;">Дата открытия доступа</td>
<td style="border-right: 1px dotted #fff;"><b>Дата получения задания</b></td>
<td style="border-right: 1px dotted #fff;"> --- </td>
<td style="border-right: 1px dotted #fff;">Дата завершения доступа</td>
<td style="border-right: 1px dotted #fff;">Попыток сдачи</td>
</tr>
{% for h in in_hw %}
<tr>
<td style="border-right: 1px dotted #ccc;"><b>{{ h.student.id }}:{{ h.student.get_full_name }}</b></td>
<td style="border-right: 1px dotted #ccc;">{{ h.student.get_phone }}</td>
<td style="border-right: 1px dotted #ccc;">{{ h.student.email }}</td>
<td style="border-right: 1px dotted #ccc;">{{ h.material.theme.sort }}:<a href="/courses/{{ h.material.course.id }}?no_current={{ h.material.theme.id }}" target="_blank" style="color: #00bdff;
border-bottom: 1px dotted #00bdff;">{{ h.material.get_title }}</a></td>
<td style="border-right: 1px dotted #ccc;"><script>document.write(window.user_{{ h.student.id }}_s)</script></td>
<td style="border-right: 1px dotted #ccc;">{{ h.date }}</td>
<td style="border-right: 1px dotted #ccc;"> --- </td>
<td style="border-right: 1px dotted #ccc;"><script>document.write(window.user_{{ h.student.id }}_f)</script></td>
<td style="border-right: 1px dotted #ccc;">{{ h.get_trues_length }}</td>
</tr>
{% endfor %}
<tr style="font-weight: bold;background: #ccc;">
<td colspan="9">Сдали ДЗ [{{ out_hw|length }}]</td>
</tr>
<tr style="background: #f1f1f1;">
<td style="border-right: 1px dotted #fff;">ФИО</td>
<td style="border-right: 1px dotted #fff;">Телефон</td>
<td style="border-right: 1px dotted #fff;">Email</td>
<td style="border-right: 1px dotted #fff;">Точка нахождения</td>
<td style="border-right: 1px dotted #fff;">Дата открытия доступа</td>
<td style="border-right: 1px dotted #fff;">Дата получения задания</td>
<td style="border-right: 1px dotted #fff;"><b>Дата сдачи задания</b></td>
<td style="border-right: 1px dotted #fff;">Дата завершения доступа</td>
<td style="border-right: 1px dotted #fff;">Попыток сдачи</td>
</tr>
{% for h in out_hw %}
<tr>
<td style="border-right: 1px dotted #ccc;"><b>{{ h.student.id }}:{{ h.student.get_full_name }}</b></td>
<td style="border-right: 1px dotted #ccc;">{{ h.student.get_phone }}</td>
<td style="border-right: 1px dotted #ccc;">{{ h.student.email }}</td>
<td style="border-right: 1px dotted #ccc;">{{ h.material.theme.sort }}:<a href="/courses/{{ h.material.course.id }}?no_current={{ h.material.theme.id }}" target="_blank" style="color: #00bdff;
border-bottom: 1px dotted #00bdff;">{{ h.material.get_title }}</a> </td>
<td style="border-right: 1px dotted #ccc;"><script>document.write(window.user_{{ h.student.id }}_s)</script></td>
<td style="border-right: 1px dotted #ccc;">{{ h.date }}</td>
<td style="border-right: 1px dotted #ccc;">{{ h.f_date }}</td>
<td style="border-right: 1px dotted #ccc;"><script>document.write(window.user_{{ h.student.id }}_f)</script></td>
<td style="border-right: 1px dotted #ccc;">{{ h.get_trues_length }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock %}
{% block js %}
{% endblock %}