Skip to content
Snippets Groups Projects
Commit 6c32dee2 authored by xamgore's avatar xamgore
Browse files

Fixed fields of a discipline at the rating/exam twig templates

parent 482ef940
Branches
Tags
No related merge requests found
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
<div class="disciplineInfo last"> <div class="disciplineInfo last">
{% if Discipline.DepName %} {% if Discipline.depName %}
<div class="clearFix"> <div class="clearFix">
<div class="label">Кафедра:</div> <div class="label">Кафедра:</div>
<div class="content">{{ Discipline.depName }}</div> <div class="content">{{ Discipline.depName }}</div>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% block main_content %} {% block main_content %}
<h2 class="h2_titleSubject"> {{ disciplineInfo.LocalizedExamType }} </h2> <h2 class="h2_titleSubject"> {{ disciplineInfo.LocalizedExamType }} </h2>
{{ HTML.anchor('rate/'~disciplineInfo.DisciplineID, {{ HTML.anchor('rate/'~disciplineInfo.ID,
"← Перейти к оцениванию", "← Перейти к оцениванию",
{'title': 'Оценивание', 'class': 'rate_a'})|raw }} {'title': 'Оценивание', 'class': 'rate_a'})|raw }}
......
...@@ -11,23 +11,23 @@ ...@@ -11,23 +11,23 @@
{% block main_top_title %}Выставление баллов{% endblock %} {% block main_top_title %}Выставление баллов{% endblock %}
{% block main_content %} {% block main_content %}
{% if disciplineInfo.Milestone > 0 %} {% if disciplineInfo.milestone > 0 %}
<p class="canNotEdit"> <p class="canNotEdit">
Семестр завершен. Выставление баллов <u>запрещено</u>. Семестр завершен. Выставление баллов <u>запрещено</u>.
</p> </p>
{% endif %} {% endif %}
{# {#
{% if disciplineInfo.ExamType == 'exam' %} {% if disciplineInfo.type == 'exam' %}
<p class="canNotEdit"> <p class="canNotEdit">
Выставление баллов за экзамен возможно только на странице "Сессия". Выставление баллов за экзамен возможно только на странице "Сессия".
</p> </p>
{% endif %} {% endif %}
#} #}
<h2 class="h2_titleSubject">{{ disciplineInfo.SubjectName }}</h2> <h2 class="h2_titleSubject">{{ disciplineInfo.subjectName }}</h2>
<button class="downloadExcel" style="display: none">Скачать в excel формате [dev version]</button> <button class="downloadExcel" style="display: none">Скачать в excel формате [dev version]</button>
{{ HTML.anchor('exam/'~disciplineInfo.DisciplineID, {{ HTML.anchor('exam/'~disciplineInfo.ID,
"Перейти к сессии →", "Перейти к сессии →",
{'title': 'Сессия', 'class': 'exam_a'})|raw }} {'title': 'Сессия', 'class': 'exam_a'})|raw }}
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<td id="student_{{ student.ID }}" class="studentCell staticCell">{{ student.LastName }} {{ student.FirstName }}</td> <td id="student_{{ student.ID }}" class="studentCell staticCell">{{ student.LastName }} {{ student.FirstName }}</td>
{% for i in 1..CellCount %} {% for i in 1..CellCount %}
{% set j = j + 1 %} {% set j = j + 1 %}
{% if student.Rates[i].SubmoduleID >= 0 and disciplineInfo.Milestone == 0 %} {% if student.Rates[i].SubmoduleID >= 0 and disciplineInfo.milestone == 0 %}
<td id="col_{{ j }}" class="commonCell"> <td id="col_{{ j }}" class="commonCell">
<input type="text" value="{{ student.Rates[i].Rate }}"> <input type="text" value="{{ student.Rates[i].Rate }}">
</td> </td>
......
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