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.html118
1 files changed, 62 insertions, 56 deletions
diff --git a/templates/agenda/one_event.html b/templates/agenda/one_event.html
index cf43fcb..97824f7 100755
--- a/templates/agenda/one_event.html
+++ b/templates/agenda/one_event.html
@@ -1,39 +1,36 @@
{% 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_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>
-
-
+ <h1>{{ event.title }}</h1>
+<div class="module">
+ <p>{% trans 'Location' %}: <a href="/agenda/location/{{ event.location_id }}" class="viewsitelink">{{ event.location.colored_location|safe }}</a><br>
+ <p>{% trans 'Starts' %}: {{ event.start_date|date:"D" }} - <a href="/cal/{{ event.start_date.year }}/{{ event.start_date.month }}/">{{ event.start_date|date }}</a> - {{ event.start_date|time }}<br>
+ <p>{% trans 'Ends' %}: {{ event.end_date|date:"D" }} - <a href="/cal/{{ event.start_date.year }}/{{ event.start_date.month }}/">{{ event.end_date|date }}</a> - {{ event.end_date|time }}<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>
+ <li><a href="/cal/{{ event.start_date.year }}/{{ event.start_date.month }}/">{% trans 'Calendar' %}</a></li>
+ <li><a href="/admin/agenda/event/{{ event.id }}" class="viewsitelink">{% trans 'Edit' %}</a></li>
</ul>
+{% if event.picture %}<a href="http://infopoint/media/{{ event.picture }}"><img src="http://infopoint/media/{{ event.picture }}" width="300px"></a><br>
+{% endif %}
+<p>{% trans 'Public' %}: {{ event.public|yesno }}
+<p>{% trans 'Confirmed' %}: {{ event.confirmed|yesno:"yes,no" }}
+{% if event.confirmed %}<img src="http://infopoint/media/img/admin/icon-yes.gif" alt="1" />{% else %}
+<img src="http://infopoint/media/img/admin/icon-no.gif" alt="0" />
-{% 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>
+{% if event.description %}<p>{% trans 'Description' %}: {{ event.description|linebreaks }}<br>{% endif %}
+
</div>
<div class="module">
{% if event.attendance_set.count %}
@@ -52,63 +49,72 @@
{% endfor %}
</table><br>
{% endif %}
-</div>
+
</div>
<div class="module">
- <h2>{% trans 'Leave comment' %}:</h2>
+ <h2>{% trans 'Comments' %}:</h2>
- {% get_comment_form for agenda.event event.id as form %}
- {% render_comment_form for agenda.event event.id %}
+{% get_comment_list for event as comment_list %}
+ {% if comment_list %}
+ {% for comment in comment_list %}
+ {% if comment.is_public %}
+ <h4>{{ comment.headline }}</h4>
+ <p>{{ comment.comment|linebreaks }}
+ <p>{% trans 'Posted by' %} {{ comment.user }} on {{ comment.submit_date|date }}
+ {% if user.is_staff %} <a href="/admin/comments/comment/{{ comment.id }}/delete" class="deletelink">{% trans 'Delete' %}</a>{% endif %}
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+
+<h3>{% trans 'Leave comment' %}:</h3>
+ <form action="{% comment_form_target %}" method="POST">
+ {% render_comment_form for event %}
</div>
</div>
</div>
</div>
-
-{% endblock %}
-
-{% block map %}
-<div class="map" style="float: right;">
+</div>
+<div class="map">
{% include "agenda/event_map_view.html" %}
+<a href="{% url agenda.billboardviews.event_galaxy event.id %}" class="deletelink">map it!</a>
</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>
+
+{% block sidebar %}{{ block.super }}
+
{% 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 %}
+ <p>{% trans "This event still has no mentor. Do you want to help coordinate it?" %}
+<p><form action="{% url infopoint.agenda.views.adoptevent event.id %}" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" /> {% if user.is_authenticated %} <input type="hidden" name="pixie" value="{{ user.id }}" id="id_pixie" /> <p><input type="submit" name="submit" class="close-post" value="I will do it">
+{% endif %}
</form>
</div>
{% endif %}
+{% if event.pixie.count %}
+<div class="module">
+<h2>{% trans 'Event coordinator' %}:</h2>
+<p>{{ event.pixie.all|join:", " }}</p>
+<p><form action="{% url infopoint.agenda.views.adoptevent event.id %}" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
+{% if user.is_authenticated %}
+ <input type="hidden" name="pixie" value="{{ user.id }}" id="id_pixie" /> <p><input type="submit" name="submit" class="close-post" value="I can help too">
+{% 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>
+ {% for group in event.redes.all %}
+ <p><a href="{% url agenda.views.justonegroup group.id %}">{{ group.name }}</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>
+ <form action="{% url agenda.views.addeventtogroupsave event.id %}" method="POST">
+ {{ addtogroup.as_p }}
+ <p><input type="submit" name="submit" class="submit-post" value="{% trans 'Add' %}">
<input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
<input type="hidden" name="creator" value="{{ user.id }}" id="id_creator" />
</form>
@@ -117,12 +123,12 @@
<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" />
+ <form action="{% url agenda.views.closetodo event.id todo.id %}" 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">
+ <form action="{% url agenda.views.saveeventtodo event.id %}" class="collapse" method="POST">
<ul class="actionlist">
{{ newtodo.as_ul }}
<li><input type="submit" name="submit" class="submit-post" value="Post"></li>