{% extends 'base' %} {% block title %}Сессия{% endblock %} {# head -> title #} {% block media %} {# head -> css, js #} <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="pragma" content="no-cache" /> {{ HTML.script('media/js/functions.js')|raw }} {{ HTML.script('media/js/jquery.fileDownload.js')|raw }} {{ HTML.style('media/css/rating.css')|raw }} {{ HTML.script('media/js/rating.js')|raw }} {% endblock %} {% block main_top_title %}Сессия{% endblock %} {% block main_content %} <h2 style="margin-left: 2.5%; font-weight: normal; color: #3399CC;"> {% if disciplineInfo.ExamType == 'exam' %} Экзамен {% else %} Зачет {% endif %} </h2> {{ HTML.anchor('rate/'~disciplineInfo.ID, "Перейти к оцениванию", {'title': 'Оценивание', 'class': 'rate_a'})|raw }} <div class="groupSelectorWrap"> <div class="groupSelectorText">Фильтр:</div> <select class="groupSelector"> <option value="0">Все группы</option> {% for key, group in groups %} <option value="{{ key }}">{{ group }}</option> {% endfor %} </select> </div> <table class="studentsRate" border="0" cellspacing="0" cellpadding="0"> <tr class="RatingTableModulesHead"> <td class="title" width="150px">Модуль</td> <td class="subject" rowspan="3">Итог за семестр</td> {% for i in 1..headerRate.ModulesCount %} <td class="subject" colspan="{{headerRate[i].SubmodulesCount}}"> {{ headerRate[i].ModuleTitle }} </td> {% endfor %} <td class="subject" rowspan="3">Итог</td> </tr> <tr class="RatingTableSubmodulesHead"> {% set CellCount = 0 %} {% set col = 0 %} <td class="title">Мероприятие</td> {% for i in 1..headerRate.ModulesCount %} {% set CellCount = CellCount + headerRate[i].SubmodulesCount %} {% for j in 1..headerRate[i].SubmodulesCount %} {% set col = col + 1 %} <td class="subject col_{{ col }}"> {{ headerRate[i][j].Title }} </td> {% endfor %} {# {% set col = col + 1 %} #} {% endfor %} </tr> <tr class="RatingTableSubmodulesHeadMaxRate"> {% set CellCount = 0 %} {% set col = 0 %} <td class="title">Макс. балл</td> {% for i in 1..headerRate.ModulesCount %} {% set CellCount = CellCount + headerRate[i].SubmodulesCount %} {% for j in 1..headerRate[i].SubmodulesCount %} {% set col = col + 1 %} <td class="subject col_{{ col }}" id="{{ headerRate[i][j].SubmoduleID }}"> {% if headerRate[i].ModuleType == 'extra' %}max {% endif %} {{ headerRate[i][j].MaxRate }} <input type="hidden" class="MaxRate" value="{{ headerRate[i][j].MaxRate }}"> </td> {% endfor %} {% endfor %} </tr> {% set row = 0 %} {% for group in rateTable %} <tr id="group_{{ group.GroupID }}" class="group_{{ group.GroupID }}"> <td class="group" colspan="{{ CellCount + 3 }}"> {% if group.isAttached == 1 %} {{ group.GradeTitle }} {% endif %}{{ group.GroupNum }} группа. <span class="downloadExcelStatement" id="group_{{ group.GroupID }}">Скачать ведомость</span> </td> </tr> {% for student in group.Students %} {% set row = row + 1 %} {% set col = 0 %} <tr id="row_{{ row }}" class="group_{{ group.GroupID }}"> <td id="student_{{ student.ID }}" class="studentCell staticCell">{{ student.Last }} {{ student.First }}</td> <td class="semesterRateResultCell staticCell">{{ student.RateSemesterResult }}</td> {% for r in student.Rates %} {% set col = col + 1 %} {% if r.ModuleType == 'exam' %} {% set td_class = 'attemptCell' %} {% endif %} {% if r.ModuleType == 'extra' %} {% set td_class = 'additionalCell' %} {% endif %} {% if r.Block == 'True' %} <td id="col_{{ col }}" class="staticCell {{ td_class }}"> {# <input type="text" value="{{ r.Rate }}" disabled="disabled"> #} {{ r.Rate }} </td> {% else %} <td id="col_{{ col }}" class="commonCell {{ td_class }}"> <input type="text" value="{{ r.Rate }}" {% if r.ModuleType == 'extra' %}placeholder="max {{ student.Extra }}"{% endif %}> </td> {% endif %} {% endfor %} <td class="rateResultCell staticCell">{{ student.RateResult }}</td> </tr> {% endfor %} {% endfor %} </table> <div id="tdInfo_wrap"> <div id="tdInfo"> <span id="student">Студент: <b></b></span> <span id="submodule">Мероприятие: <b></b></span> <span id="maxRate">Максимальный балл: <b></b></span> </div> </div> <div id="hidden_div"> { "studyGroupID": "{{ studyGroupID }}" } </div> {% endblock %}