From bc99b1caf6a16e61e4782ab64eab6fe76a42bbdc Mon Sep 17 00:00:00 2001 From: Anton Shalimov <solidovic@ynadex.ru> Date: Thu, 3 Sep 2015 14:00:29 +0300 Subject: [PATCH] fix: show exam cell if Discipline.Type == 'exam' --- .../views/teacher/discipline/rating/rate.twig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/~dev_rating/application/views/teacher/discipline/rating/rate.twig b/~dev_rating/application/views/teacher/discipline/rating/rate.twig index 6a2e26683..d56d11473 100644 --- a/~dev_rating/application/views/teacher/discipline/rating/rate.twig +++ b/~dev_rating/application/views/teacher/discipline/rating/rate.twig @@ -159,7 +159,7 @@ {% set j = j + 1 %} {% if Module.Type == 'regular' %} - <td id="col_{{ j }}" class="commonCell {{ Discipline.Milestone ? staticCell }}"> + <td id="col_{{ j }}" class="{{ Discipline.Milestone ? 'staticCell' : 'commonCell' }}"> <input type="text" value="{{ rate }}"> </td> {% else %} @@ -182,10 +182,12 @@ {{ extraRate ? extraRate }} </td> - <td class="staticCell examCell"> - {#<p>{{ examRate ? examRate }}</p>#} - {{ examRate ? examRate }} - </td> + {% if Discipline.Type == 'exam' %} + <td class="staticCell examCell"> + {#<p>{{ examRate ? examRate }}</p>#} + {{ examRate ? examRate }} + </td> + {% endif %} <td class="staticCell rateResultCell"> {{ sumRate > 100 ? '100+' : sumRate }} -- GitLab