diff --git a/~dev_rating/application/views/teacher/exam.twig b/~dev_rating/application/views/teacher/exam.twig index 49fa56e72cf6f35bbaf6920c340d040b5d653480..a82ef8413d06150d4a00758ae1bca641f65b8d41 100644 --- a/~dev_rating/application/views/teacher/exam.twig +++ b/~dev_rating/application/views/teacher/exam.twig @@ -113,7 +113,7 @@ {% else %} <td id="col_{{ col }}" class="commonCell {{ td_class }}"> <input type="text" value="{{ r.Rate }}" {% if r.ModuleType == 'extra' %} - placeholder="{% if r.MaxRate > 0 %} max {{r.MaxRate}} {% else %} 0 {% endif %}"{% endif %}> + placeholder="{% if r.MaxRate > 0 %} макс. {{r.MaxRate}} {% else %} --- {% endif %}"{% endif %}> </td> {% endif %} {% endfor %} diff --git a/~dev_rating/media/js/rating.js b/~dev_rating/media/js/rating.js index 58b699e34a3ba63738b052681494337a4c4d84ce..7cfac75c8140ba3f0eaf92359c44feb7309c97d1 100644 --- a/~dev_rating/media/js/rating.js +++ b/~dev_rating/media/js/rating.js @@ -101,9 +101,10 @@ $(function() { if (t > 31 && t < 39) g_submoduleMaxRate = 38 - t; else g_submoduleMaxRate = 0; - if (g_submoduleMaxRate > 0) - jThis.children("input").attr("placeholder", "max "+g_submoduleMaxRate); - else jThis.children("input").attr("placeholder", "0"); + + //if (g_submoduleMaxRate > 0) + // jThis.children("input").attr("placeholder", "макс. "+g_submoduleMaxRate); + //else jThis.children("input").attr("placeholder", "---"); } // Получаем студента