summaryrefslogtreecommitdiffstats
path: root/templates/agenda/one_event.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/one_event.html')
-rwxr-xr-xtemplates/agenda/one_event.html145
1 files changed, 145 insertions, 0 deletions
diff --git a/templates/agenda/one_event.html b/templates/agenda/one_event.html
new file mode 100755
index 0000000..cf43fcb
--- /dev/null
+++ b/templates/agenda/one_event.html
@@ -0,0 +1,145 @@
+{% extends "agenda/base.html" %}
+{% load i18n %}
+<link rel="alternate" type="text/calendar" title="iCalendar" href="cal" />
+
+{% load comments %}
+{% block info %} {% endblock %}
+{% block title %}{{ event.title }}{% endblock %}
+{% block branding %}{{ event.title }}{% endblock %}
+{% block content_title %} <h1>{{ event.title }}</h1>
+{% endblock %}
+
+{% block content %}
+<div id="content-main">
+
+
+ <div class="module">
+
+ {% trans 'Location' %}: <a href="/agenda/location/{{ event.location_id }}" class="viewsitelink">{{ event.location.colored_location|safe }}</a><br>
+ {% trans 'Starts' %}: {{ event.start_date|date }}<br>
+ {% trans 'Ends' %}: {{ event.end_date|date }}<br>
+
+
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+<ul class="object-tools">
+ <li><a href="/admin/agenda/event/add">{% trans 'New Event' %}</a></li>
+ <li><a href="/agenda/location/{{ event.location_id }}" class="viewsitelink">{% trans 'See location' %}</a></li>
+ <li><a href="/admin/agenda/event/{{ event.id }}">{% trans 'Edit' %}</a></li>
+</ul>
+
+
+
+{% if event.picture %}<img src="/media/{{ event.picture }}" width="300px"><br>
+{% endif %}
+
+{% if event.description %}{% trans 'Description' %}: {{ event.description }}<br>{% endif %}
+<a href="cal">{% trans 'Add to your calendar' %}</a>
+</div>
+<div class="module">
+{% if event.attendance_set.count %}
+<h4>{% trans 'Attending' %}:</h4>
+<table >
+<tr><td>{% trans 'Person' %}</td><td>Att.</td></tr>
+{% for person_id in event.attendance_set.all %}
+<tr>
+ <td>{{ person_id.person }}</td>
+ {% for attendance in person.attendance_set.all %}
+
+ <td> {{ person_id.attendance|yesno }}</td>
+ {% endfor %}
+
+</tr>
+{% endfor %}
+</table><br>
+{% endif %}
+</div>
+</div>
+<div class="module">
+ <h2>{% trans 'Leave comment' %}:</h2>
+
+ {% get_comment_form for agenda.event event.id as form %}
+ {% render_comment_form for agenda.event event.id %}
+
+</div>
+</div>
+</div>
+</div>
+
+{% endblock %}
+
+{% block map %}
+<div class="map" style="float: right;">
+{% include "agenda/event_map_view.html" %}
+</div>
+{% endblock %}
+{% block sidebar %}
+{{ block.super }}
+
+ <div id="hcalendar-{{ event.title|slugify }}" class="vevent">
+ <span class="summary">{{ event.title }}</span><br>
+ <abbr title="{{ event.start_date }}" class="dtstart">{{ event.start_date }}</abbr><br>
+ <abbr title="{{ event.end_date }}" class="dtend"> {{ event.end_date }}</abbr><br>
+ <div class="description">{{ event.description }}</div>
+ <div class="venue location vcard">
+ <span class="fn org"><a href="/agenda/location/{{ event.location.id }}">{{ event.location.title }}</a></span><br />
+ <div class="address adr">
+ <span class="street-address">{{ address }}</span>
+ <span class="locality">{{ city }}</span>, <span class="region">{{ city }}</span> <span class="postal-code">29012</span>
+
+ <span class="city">{{ city }}</span>
+ </div>
+ </div>
+ </div>
+{% if not event.pixie.count %}
+<div class="module">
+ <h2>{% trans 'Adopt this event' %}:</h2>
+<p><form action="/agenda/{{ event.id }}/adopt/" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" /> Groups: {{ event.network.iterator|join:" ," }}</span> {% if user.is_authenticated %}<a href="/admin/agenda/event/{{ event.id }}/" class="changelink">edit</a> <input type="hidden" name="pixie" value="{{ user.id }}" id="id_pixie" /> <input type="submit" name="submit" class="close-post" value="I will do it">{% endif %}
+ </form>
+ </div>
+ {% endif %}
+
+<div class="module">
+ <h2>{% trans 'Groups' %}:</h2>
+ {% for group in event.group.all %}
+ <p><a href="/group/{{ group.group.id }}">{{ group.group }}</a>
+ {% endfor %}
+ <h3>{% trans 'Add event to a group' %}</h3>
+ <form action="group/add/" method="POST">
+ <ul class="actionlist">
+ {{ addtogroup.as_ul }}
+ <li><input type="submit" name="submit" class="submit-post" value="{% trans 'Add' %}"></li>
+ </ul>
+ <input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
+ <input type="hidden" name="creator" value="{{ user.id }}" id="id_creator" />
+ </form>
+
+</div>
+<div class="module">
+ <h2>{% trans 'Todo' %}:</h2>
+ {% for todo in pending_todos %}
+ <form action="todo/{{ todo.id }}/close/" class="collapse" method="POST"> <input type="hidden" name="todo" value="{{ todo.id }}" id="id_todo" />
+ <p><a href="/admin/agenda/todo/{{ todo.id }}/">{{ todo.title }}</a>: <span class="mini quiet">{{ todo.description }} </span>{% if user.is_authenticated %}<a href="/admin/agenda/todo/{{ todo.id }}/" class="changelink">edit</a> <input type="hidden" name="done" value="True" id="id_done" /> <input type="submit" name="submit" class="close-post" value="close"></form>
+ {% endif %}
+ {% endfor %}
+ <h3>{% trans 'Add Todo' %}:</h3>
+ <form action="todo/submit/" class="collapse" method="POST">
+ <ul class="actionlist">
+ {{ newtodo.as_ul }}
+ <li><input type="submit" name="submit" class="submit-post" value="Post"></li>
+ </ul>
+ <input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
+ <input type="hidden" name="creator" value="{{ user.id }}" id="id_creator" />
+ </form>
+</div>
+{% get_comment_list for agenda.event event.id as comment_list %}
+{% if comment_list %}
+ <div class="module">
+ <h2>{% trans 'Comments' %}:</h2>
+ {% for comment in comment_list %}
+ <p><a href="/comment/{{ comment.id }}">{{ comment.comment }}</a>
+ <p>{% trans 'Posted by' %} {{ comment.user }} {% trans 'on' %} {{ comment.submit_date|date }}
+ {% if user.is_authenticated and user.is_staff %}<a href="/admin/comments/comment/{{ comment.id }}/delete" class="deletelink">{% trans 'delete' %}</a> {% endif %}
+ {% endfor %}
+ </div>
+{% endif %}
+{% endblock %}