From dfc569d9681f5a69c8fe36ca34884349302bb9d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A8=D0=B0=D0=BB=D0=B8?=
 =?UTF-8?q?=D0=BC=D0=BE=D0=B2?= <solidovic@gmail.com>
Date: Tue, 23 Dec 2014 22:57:15 +0300
Subject: [PATCH] fix exam page

---
 ~dev_rating/application/views/base.twig         | 1 +
 ~dev_rating/application/views/teacher/exam.twig | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig
index 06a6d19c1..04d1b87ac 100644
--- a/~dev_rating/application/views/base.twig
+++ b/~dev_rating/application/views/base.twig
@@ -18,6 +18,7 @@
 <head>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
 	<title>{% block title %}{% endblock %} | {{ System.Title }}</title>
+	<meta http-equiv="Cache-Control" content="no-cache">
 	{{ HTML.style('media/css/base.css')|raw }}
 	{{ HTML.style('media/css/global.css')|raw }}
 	{{ HTML.style('media/css/messages.css')|raw }}
diff --git a/~dev_rating/application/views/teacher/exam.twig b/~dev_rating/application/views/teacher/exam.twig
index bfc3f592f..49fa56e72 100644
--- a/~dev_rating/application/views/teacher/exam.twig
+++ b/~dev_rating/application/views/teacher/exam.twig
@@ -112,7 +112,8 @@
 							</td>
 						{% else %}
 							<td id="col_{{ col }}" class="commonCell {{ td_class }}">
-								<input type="text" value="{{ r.Rate  }}" {% if r.ModuleType == 'extra' %}placeholder="{{ student.Extra }}"{% endif %}>
+								<input type="text" value="{{ r.Rate  }}" {% if r.ModuleType == 'extra' %}
+												placeholder="{% if r.MaxRate > 0 %} max {{r.MaxRate}} {% else %} 0 {% endif %}"{% endif %}>
 							</td>
 						{% endif %}
 					{% endfor %}
-- 
GitLab