diff --git a/~dev_rating/application/views/teacher/rating.twig b/~dev_rating/application/views/teacher/rating.twig index b09efbc81d48ebddb9f39f6732e5ddd7d585d25d..a268484021269138de14cfc784368338b2574366 100644 --- a/~dev_rating/application/views/teacher/rating.twig +++ b/~dev_rating/application/views/teacher/rating.twig @@ -33,7 +33,8 @@ <td class="subject" rowspan="3">Ртог</td> </tr> <tr class="RatingTableSubmodulesHead"> - {% set CellCount = 0 %} {% set col = 0 %} + {% set CellCount = 0 %} + {% set col = 0 %} <td class="title">Мероприятие</td> {% for i in 1..headerRate.ModulesCount %} {% set CellCount = CellCount + headerRate[i].SubmodulesCount %} @@ -46,13 +47,20 @@ {% endfor %} </tr> <tr class="RatingTableSubmodulesHeadMaxRate"> - {% set CellCount = 0 %} {% set col = 0 %} + {% 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 }}">{{ headerRate[i][j].MaxRate }} <input type="hidden" class="MaxRate" value="{{ headerRate[i][j].MaxRate }}"></td> + {% if headerRate[i].ModuleType == "exam" %} + <td class="subject" id="{{ headerRate[i][j].SubmoduleID }}">{{ headerRate[i][j].MaxRate }}</td> + {% else %} + {% set col = col + 1 %} + <td class="subject col_{{ col }}" id="{{ headerRate[i][j].SubmoduleID }}">{{ headerRate[i][j].MaxRate }} + <input type="hidden" class="MaxRate" value="{{ headerRate[i][j].MaxRate }}"> + </td> + {% endif %} {% endfor %} {% endfor %} </tr>