[pedagogy] Star for comment grades

This commit is contained in:
Cyl
2019-07-01 18:51:32 +02:00
committed by Bartuccio Antoine
parent 3376f4dfb4
commit 851231869b
5 changed files with 85 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
{% extends "core/base.jinja" %}
{% import "pedagogy/macros.jinja" as macros%}
{% block title %}
{% trans %}UV Details{% endtrans %}
@@ -23,11 +24,11 @@
{% if object.comments.exists() %}
<h2>{% trans %}Comments{% endtrans %}</h2>
{% for comment in object.comments.all() %}
<p>{{ comment.grade_global }}</p>
<p>{{ comment.grade_utility }}</p>
<p>{{ comment.grade_interest }}</p>
<p>{{ comment.grade_teaching }}</p>
<p>{{ comment.grade_work_load }}</p>
<p>{{ macros.display_star(comment.grade_global) }}</p>
<p>{{ macros.display_star(comment.grade_utility) }}</p>
<p>{{ macros.display_star(comment.grade_interest) }}</p>
<p>{{ macros.display_star(comment.grade_teaching) }}</p>
<p>{{ macros.display_star(comment.grade_work_load) }}</p>
<p>{{ comment.comment|markdown }}</p>
<p>{% trans %}Published: {% endtrans %}{{ comment.publish_date }}</p>
<p>{% trans %}Author: {% endtrans %}{{ comment.author }}</p>
@@ -48,4 +49,4 @@
{{ form.as_p() }}
<p><input type="submit" value="{% trans %}Comment{% endtrans %}" /></p>
</form>
{% endblock %}
{% endblock %}