summaryrefslogtreecommitdiffstats
path: root/templates/agenda/one_group.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/one_group.html')
-rwxr-xr-xtemplates/agenda/one_group.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/templates/agenda/one_group.html b/templates/agenda/one_group.html
new file mode 100755
index 0000000..6f0adfb
--- /dev/null
+++ b/templates/agenda/one_group.html
@@ -0,0 +1,73 @@
+{% extends "agenda/base.html" %}
+{% load i18n %}
+{% load comments %}
+{% block title %}{{ group.name }}{% endblock %}
+{% block branding %}{{ group.name }}{% endblock %}
+{% block content_title %} <h1>{{ group.name }}</h1> {% endblock %}
+{% block map %}
+<div class="map" style="float: right;">
+ {% include "agenda/group_map_view.html" %}
+</div>
+{% endblock %}
+
+{% block content %}
+<div id="content-main">
+{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
+ {% if group.networkevent.count %}
+<div class="module">
+ <h2>{% trans 'Events' %}</h2>
+ {% for event_link in group.networkevent.all %}
+ <h4><a href="/agenda/{{ event_link.event.id }}">{{ event_link.event }}</a> {{ event_link.event.start_date|date }}</h4>
+ <p>{{ event_link.event.description }}
+ {% endfor %}
+</div>
+{% endif %}
+<div class="module">
+ <h2>{% trans 'Comments' %}</h2>
+ <h4>{% trans 'Leave comment' %}:</h4>
+ {% render_comment_form for auth.group group.id %}
+
+</div>
+</div>
+</div>
+</div>
+{% endblock %}
+{% block sidebar %}{{ block.super }}
+
+<div class="module">
+<h2>{% trans 'To do' %}</h2>
+<form action="todo/add/" 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="network" value="{{ group.id }}" id="id_group" />
+<input type="hidden" name="creator" value="{{ user.id }}" id="id_creator" />
+</form>
+
+ {% if todos %}
+ <h3>{% trans 'Todo List' %}</h3>
+ {% for todo in 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="/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 %}
+ {% endif %}
+</div>
+<div class="module">
+{% get_comment_list for auth.group group.id as comment_list %}
+{% if comment_list %}
+<h2>{% trans 'Comments for this group' %}</h2>
+<ul class="actionlist">
+{% for comment in comment_list %}
+{% if comment.is_public %}
+<li><a href="/comment/{{ comment.id }}">{{ comment.headline }}
+<p>{{ comment.comment|truncatewords_html:"10" }}</a>
+
+ <p>Posted by {{ comment.user }} on {{ comment.submit_date|date }}</li>
+ {% endif %}
+
+{% endfor %}
+</ul>
+{% endif %}
+</div>
+{% endblock %}