summaryrefslogtreecommitdiffstats
path: root/templates/agenda/user_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/user_page.html')
-rwxr-xr-xtemplates/agenda/user_page.html66
1 files changed, 33 insertions, 33 deletions
diff --git a/templates/agenda/user_page.html b/templates/agenda/user_page.html
index 335baa9..f9ac453 100755
--- a/templates/agenda/user_page.html
+++ b/templates/agenda/user_page.html
@@ -9,43 +9,57 @@
<h2>{% trans 'Events that need a pixie' %}:</h2>
<ul class="actionlist">
{% for event in missing_pixies %}
- <li><form action="/agenda/{{ event.id }}/adopt/" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" /><a href="/admin/agenda/event/{{ event.id }}/">{{ event.title }}</a>: <span class="mini quiet">{{ event.description }} 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 %}
+ <li><form action="{% url agenda.views.adoptevent event.id %}" class="collapse" method="POST"> <input type="hidden" name="event" value="{{ event.id }}" id="id_event" />
+ <a href="{% url agenda.views.event event.id %}">{{ event.title }}</a>: <span class="mini quiet">{{ event.description }} - {{ event.start_date|date }}
+ {% if event.groups.count %} {% trans 'Groups' %}: {{ event.network.iterator|join:" ," }} {% endif %}
+ </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="{% trans 'I will do it' %}">{% endif %}
</form></li>
{% endfor %}
</ul>
</div>
{% endif %}
+{% endblock %}
+{% block content %}
{% if group_todos.count %}
<div class="module">
<h2>{% trans 'Pending ToDos on your groups' %}:</h2>
<ul class="actionlist">
{% for todo in group_todos %}
- <li><form action="todo/{{ todo.id }}/close/" class="collapse" method="POST"> <input type="hidden" name="todo" value="{{ todo.id }}" id="id_todo" /><a href="/admin/agenda/todo/{{ todo.id }}/">{{ todo.title }}</a>: <span class="mini quiet">{{ todo.description }} Groups: {{ todo.network.iterator|join:" ," }}</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">{% endif %}
+ <li><form action="{% url agenda.views.closealltodo todo.id %}" class="collapse" method="POST"> <input type="hidden" name="todo" value="{{ todo.id }}" id="id_todo" /><a href="/admin/agenda/todo/{{ todo.id }}/">{{ todo.title }}</a>: <span class="mini quiet">{{ todo.description }} Groups: {{ todo.network.iterator|join:" ," }}</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">{% endif %}
</form></li>
{% endfor %}
</ul>
</div>
{% endif %}
+ <div class="module">
+
+ <h2>{% trans 'Your groups' %}</h2>
+
+ <ul>
+ {% for group in user.groups.all %}
+ <li><a href="{% url agenda.views.justonegroup group.id %}">{{ group }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+
+
+ </div>
<div class="module">
-<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>
-{% endblock %}
-{% block content %}
-<div class="module">
-<h2><a href="{{ user.id }}">{{ user.name|upper }}</a></h2>
- {% if user.event_set.count %}
<h2>{% trans 'Your events' %}</h2>
+ {% if my_mentored_events %}
+ <h3>{% trans 'Events you coordinate' %}</h3>
+ <ul class="actionlist">
+ {% for event in my_mentored_events %}
+ <li><a href="{% url agenda.views.event event.id %}">{{ event.title }}</a> - {{ event.start_date|date }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if user.event_set.count %}
+ <h3>{% trans 'Events you are attending' %}</h3>
<ul class="actionlist">
{% for event in user.event_set.all %}
- <li><a href="/agenda/{{ event.id }}/">{{ event.title }}</a> - {{ event.start_date|date }}</li>
+ <li><a href="{% url agenda.views.event event.id %}">{{ event.title }}</a> - {{ event.start_date|date }}</li>
{% endfor %}
</ul>
{% endif %}
@@ -58,15 +72,6 @@
{% endfor %}</td></div>
{% endif %}
- {% if user.logentry_set.count %}
- <div class="module">
- <h2>{% trans 'Log entries' %}:</h2>
- <ul class="actionlist">
- {% for logentry in logentries %} <br>
- <li>{{ logentry.change_message }} {% trans 'on' %} {{ logentry.get_edited_object }},{% trans 'on the' %} {{ logentry.action_time|date }}</li>
- {% endfor %}
- </ul></div>
- {% endif %}
{% if user.messages_set.count %}
<div class="module">
<h2>{% trans 'Messages' %}:</h2>
@@ -83,14 +88,9 @@
<li>{{ comment.headline }}</li>
{% endfor %}</ul></div>
{% endif %}
-</td>
-<td><a href="{{ user.karmascore_set.count }}" class="changelink">karmascore_set.count: {{ user.karmascore_set.count }}</a></td>
{{ calendartable }}
-</tr>
-
-</table>
</div>
{% endblock %}
{% block info %}
-template: "agenda/event_list.html"
+template: "agenda/user_page.html"
{% endblock %}