summaryrefslogtreecommitdiffstats
path: root/templates/agenda/wishlist.html
blob: bb4f176ae9b81f612abfcc73ad344e3ecf57a4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends 'agenda/base.html' %}
{% load i18n  %}
{% block content_title %}<h1>{% trans 'Wishlist' %}</h1>{% endblock %}
{% block content %}
		<div class="module">
		 <h2>{% trans 'Wishlist' %}</h2>
{% if wishlist %}
		 <ul>
	{% for object in wishlist %}
               	<li>{{ object.title|title }}
		<p>{{ object.description }}</p>
		{% if object.due_date %}<p>Due date: {{ object.due_date|date }}</p>{% endif %}
		{% if object.location.count %}{% trans 'Location' %}:
			{% for location in object.location.all %}
				 <a href="{% url agenda.views.location location.id %}" class="location">{{ location.title }}</a>

				{% endfor %}
			
		{% endif %}
		{% if object.comment_set.all %}{% trans 'Comments' %}: {{ object.comment_set.count }}{% endif %}
{% if user.is_staff %} - <a href="/admin/agenda/wish/{{ object.id }}" class="changelink">{% trans 'Modify' %}</a> - <a href="/admin/agenda/wish/{{ object.id }}/delete" class="deletelink">{% trans 'Delete' %}</a>
{% endif %}

    </li>
	{% endfor %}
            </ul>
{% else %}
<p>{% trans 'There are no items on the wishlist! Do you want to add one?' %}<a href="/admin/agenda/wish/add" class="actionlink">{% trans ' Click here.' %}</a>
	</div>
{% endif %}
{% endblock %}
{% block sidebar %}
	{{ block.super }}
{% endblock %}
{% block info %}
template: "agenda/wishlist.html"
{% endblock %}