Skip to content
Snippets Groups Projects
Commit 72cb6690 authored by Антон Шалимов's avatar Антон Шалимов
Browse files

blocked exam in rating page

parent 3fddb9ca
Branches
Tags
No related merge requests found
......@@ -50,6 +50,9 @@ class Controller_Teacher_Rating extends Controller_UserEnvi {
$disciplineHandled[$i]['MaxRate'] += (int) $row['MaxRate'];
$disciplineHandled[$i]['ModuleTitle'] = $row['ModuleName'];
$disciplineHandled[$i]['ModuleType'] = $row['ModuleType'];
if ($row['ModuleType'] == "exam")
$twig->examSubmoduleID = $row['SubmoduleID'];
$disciplineHandled[$i][$j]['SubmoduleID'] = $row['SubmoduleID'];
$disciplineHandled[$i][$j]['Title'] = $row['SubModuleName'];
$disciplineHandled[$i][$j]['Description'] = $row['SubmoduleDescription'];
......
......@@ -71,7 +71,13 @@
<td class="student" id="{{ student.ID }}">{{ student.Last }} {{ student.First }}</td>
{% for i in 1..CellCount %}
{% set RateResult = RateResult + student[i].Rate %}
<td id="{{ i }}" class="rateCell"><input type="text" value="{{ student[i].Rate }}"></td>
<td id="{{ i }}" class="rateCell">
{% if examSubmoduleID != student[i].SubmoduleID %}
<input type="text" value="{{ student[i].Rate }}">
{% else %}
<p>{{ student[i].Rate }}</p>
{% endif %}
</td>
{% endfor %}
<td class="row_{{ row }} col_{{ i + 1 }} RateResult">{{ RateResult }}</td>
</tr>
......
......@@ -91,6 +91,10 @@ td {
line-height: 140%;
}
*/
td p {
width: 100%;
text-align: center
}
td input {
display: block;
margin: 0 auto;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment