summaryrefslogtreecommitdiffstats
path: root/templates/agenda/wishlist.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/wishlist.html')
-rwxr-xr-xtemplates/agenda/wishlist.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/agenda/wishlist.html b/templates/agenda/wishlist.html
new file mode 100755
index 0000000..bb4f176
--- /dev/null
+++ b/templates/agenda/wishlist.html
@@ -0,0 +1,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 %}
+