joeni

Fix color bug with course pages

The buttons regarding course management are now properly colored. Admittedly it's done in a pretty ugly way: A +

95
    
86
96
        {% trans "Edit course page" %}
87
97
    
88
98
    
89
99
        {% trans "Student results" %}
90
100
    
91
101
    

{% trans "Students" %}

92
102
    
93
103
        
94
104
            
{% trans "Student name" %}
95
105
            
{% trans "Student number" %}
96
106
            
{% trans "First result" %}
97
107
            
{% trans "Second result" %}
98
108
            
{% trans "Decision" %}
99
109
        
100
110
            {% for student in student_list %}
101
111
                
102
112
                
{{ student.student }}
103
113
                
{{ student.student.number }}
104
114
                
{{ course_result.first_score|default:"-" }}
105
115
                
{{ course_result.second_score|default:"-" }}
106
116
                
{% with result=course_result.result %}
107
117
                    {% if result == "CRED" or result == "VRST" or result == "TLRD" or result == "ITLR"%}
108
118
                        
109
119
                    {% elif result == "FAIL" %}
110
120
                        
111
121
                    {% elif result == "BDRG" %}
112
122
                        
113
123
                    {% elif result == "STOP" %}
114
124
                        
115
125
                    {% endif %}
116
126
                    {{ course_result.get_result_display }}
117
127
                {% endwith %}
118
128
        
119
129
        {% endfor %}
120
130
        
121
131
{% endblock main %}