summaryrefslogtreecommitdiffstats
path: root/templates/agenda/user_events.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/user_events.html')
-rwxr-xr-xtemplates/agenda/user_events.html71
1 files changed, 71 insertions, 0 deletions
diff --git a/templates/agenda/user_events.html b/templates/agenda/user_events.html
new file mode 100755
index 0000000..498fba5
--- /dev/null
+++ b/templates/agenda/user_events.html
@@ -0,0 +1,71 @@
+{% extends 'agenda/base.html' %}
+{% load i18n %}
+{% load calendartable %}
+{% block title %}
+{% if user.first_name %}
+{{ user.first_name|escape }}{% else %}{{ user.username }}
+{% endif %}
+{% endblock %}
+{% block branding %}My events{% endblock %}
+{% block content_title %}<h1>{{ user.full_name|escape }} events</h1>{% endblock %}
+{% block content %}
+broken! is not showing the pending or the confirmed events for the user...
+{% if pending %}
+
+ <div class="module">
+ <h3>pending events</h3>
+ {% for object in pending %}
+ <table summary="blogs">
+ <caption><a href="/agenda/{{ object.id }}">{{ object.event.start_date|date }}</a></caption>
+ <tr><th colspan="3"><a href="/agenda/{{ object.id }}">{{ object.event.title|upper }}</a></th></tr>
+ <tr><td colspan="3">{{ object.event.description }}</td></tr>
+ <tr>{% if object.event.comment_set.count %}Comments: {{ object.event.comment_set.count }}{% endif %}</td>
+ <td bgcolor="#{{ object.event.location.color }}"><a href="location/{{ object.event.location_id }}" class="changelink">Location: {{ object.event.location }}</a></td>
+ <td>{% if object.event.attendance_set.count %}Asistencia confirmada: {{ object.event.attendance_set.count }}{% endif %}
+ <td><a href="{{ object.event.id }}/attend/" class="addlink">I'm attending</a></td>
+ <td><a href="/admin/agenda/event/{{ object.event.id }}" class="changelink">Modificar</a></td>
+ </tr>
+
+ </table>
+ {% endfor %}
+ </div>
+ {% endif %}
+{% if confirmed %}
+ <div class="module">
+ <h3>confirmed events</h3>
+ {% for object in confirmed %}
+
+ <table summary="blogs">
+ <caption><a href="agenda/">{{ object.event.start_date|date }}</a></caption>
+ <tr><th colspan="3"><a href="{{ object.id }}">{{ object.event.title|upper }}</a></th></tr>
+ <tr><td colspan="3">{{ object.event.description }}</td></tr>
+ <tr>
+ {% if object.event.comment_set.count %}Comments: {{ object.event.comment_set.count }}{% endif %}</td>
+ <td bgcolor="#{{ object.event.location.color }}"><a href="location/{{ object.event.location_id }}" class="changelink">Location: {{ object.event.location }}</a></td>
+ <td>{% if object.event.attendance_set.count %}Asistencia confirmada: {{ object.event.attendance_set.count }}{% endif %}
+ <td><a href="{{ object.event.id }}/confirm/" class="addlink">I'm attending</a></td>
+ <td><a href="/admin/agenda/event/{{ object.event.id }}" class="changelink">Modificar</a></td>
+ {{ calendartable }}
+ </tr>
+
+ </table>
+ {% endfor %}
+ {% endif %}
+ <div class="module">
+ Todo: Events of my groups
+
+ </div>
+
+ <div class="module">
+ Todo: Dismissed events
+
+ </div>
+
+
+ </div>
+
+{% endblock %}
+{% block info %}
+template: "agenda/user_events.html"
+{% endblock %}
+