uv_detail.jinja 1.55 KB
Newer Older
Sli's avatar
Sli committed
1
2
3
4
5
6
7
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}UV Details{% endtrans %}
{% endblock %}

{% block content %}
Sli's avatar
Sli committed
8
	<p><a href="{{ url('pedagogy:guide') }}">{% trans %}Back{% endtrans %}</a></p>
Sli's avatar
Sli committed
9
	<h1>{{ object.code }} - {{ object.title }}</h1>
10
	<p>{% trans %}Department: {% endtrans %}{{ object.department }}</p>
Sli's avatar
Sli committed
11
12
13
14
	<p>{{ object.objectives|markdown }}</p>
	<p>{{ object.program|markdown }}</p>
	<p>{{ object.skills|markdown }}</p>
	<p>{{ object.key_concepts|markdown }}</p>
15
16
17
18
19
20
21
22
23
24

	{% 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>{{ comment.comment }}</p>
25
			<p>{% trans %}Published: {% endtrans %}{{ comment.publish_date }}</p>
26
			<p>{% trans %}Author: {% endtrans %}{{ comment.author }}</p>
27
			{% if user.is_owner(comment) %}
Sli's avatar
Sli committed
28
				<p><a href="{{ url('pedagogy:comment_update', comment_id=comment.id) }}">{% trans %}Edit{% endtrans %}</a></p>
29
30
31
32
33
34
35
36
37
38
39
				<p><a href="{{ url('pedagogy:comment_delete', comment_id=comment.id) }}">{% trans %}Delete{% endtrans %}</a></p>
			{% endif %}
		{% endfor %}
	{% endif %}

	<h2>{% trans %}Leave comment{% endtrans %}</h2>
	<form action="{{ url('pedagogy:uv_detail', uv_id=object.id) }}" method="post" enctype="multipart/form-data">
        {% csrf_token %}
		{{ form.as_p() }}
        <p><input type="submit" value="{% trans %}Comment{% endtrans %}" /></p>
	</form>
Sli's avatar
Sli committed
40
{% endblock %}