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

Code style

parent d0e23404
Branches
Tags
No related merge requests found
...@@ -136,8 +136,12 @@ ...@@ -136,8 +136,12 @@
{% set row = row + 1 %} {% set row = row + 1 %}
{% set col = 1 %} {% set col = 1 %}
<tr id="row_{{ row }}" class="group_{{ group.GroupID }}"> <tr id="row_{{ row }}" class="group_{{ group.GroupID }}">
<td id="student_{{ student.ID }}" class="studentCell staticCell">{{ student.LastName }} {{ student.FirstName }}</td> <td id="student_{{ student.ID }}" class="studentCell staticCell">
<td class="semesterRateResultCell staticCell">{{ student.RateSemesterResult }}</td> {{ student.LastName }} {{ student.FirstName }}
</td>
<td class="semesterRateResultCell staticCell">
{{ student.RateSemesterResult }}
</td>
{% set autoPassNotAdded = true %} {% set autoPassNotAdded = true %}
{% for r in student.Rates %} {% for r in student.Rates %}
...@@ -173,13 +177,13 @@ ...@@ -173,13 +177,13 @@
{% if r.ModuleType == 'exam' %} {% if r.ModuleType == 'exam' %}
<td class="absenceCell {{ td_class }}" id="absence_{{col}}_{{row}}"> <td class="absenceCell {{ td_class }}" id="absence_{{col}}_{{row}}">
<input type="checkbox" class="absenceCheck" <input type="checkbox" class="absenceCheck"
{% if r.ExamPeriodOption == 'absence' %} checked="true" {% endif %}> {{ r.ExamPeriodOption == 'absence' ? 'checked="true"' }}>
</td> </td>
{% if autoPassNotAdded %} {% if autoPassNotAdded %}
<td class="autoPass {{ td_class }}" id="autopass_{{col}}_{{row}}"> <td class="autoPass {{ td_class }}" id="autopass_{{col}}_{{row}}">
<input type="checkbox" class="autoPassCheck" <input type="checkbox" class="autoPassCheck"
{% if r.ExamPeriodOption == 'pass' %} checked="true" {% endif %}> {{ r.ExamPeriodOption == 'pass' ? 'checked="true"' }}>
</td> </td>
{% set autoPassNotAdded = false %} {% set autoPassNotAdded = false %}
{% endif %} {% endif %}
...@@ -187,8 +191,16 @@ ...@@ -187,8 +191,16 @@
{% endfor %} {% endfor %}
<td class="bonus staticCell" >{% if student.Bonus is null %}0{% else %}{{ student.Bonus }}{% endif %} </td> <td class="bonus staticCell" >
<td class="rateResultCell staticCell">{% if student.RateResult + student.Bonus > 100 %} 100+ {% else %} {{ student.RateResult + student.Bonus }} {% endif %}</td> {{ student.Bonus is null ? 0 : student.Bonus }}
</td>
<td class="rateResultCell staticCell">
{% if student.RateResult + student.Bonus > 100 %}
100+
{% else %}
{{ student.RateResult + student.Bonus }}
{% endif %}
</td>
</tr> </tr>
{% endfor %} {% endfor %}
{% endfor %} {% endfor %}
......
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