summaryrefslogtreecommitdiffstats
path: root/templates/agenda/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/agenda/base.html')
-rwxr-xr-xtemplates/agenda/base.html61
1 files changed, 48 insertions, 13 deletions
diff --git a/templates/agenda/base.html b/templates/agenda/base.html
index 8ecf206..6d67e43 100755
--- a/templates/agenda/base.html
+++ b/templates/agenda/base.html
@@ -2,8 +2,13 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <link rel="stylesheet" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />
+ <link rel="stylesheet" href="{% load adminmedia %}{% admin_media_prefix %}css/base.css" />
<title>{% block title %}Infopoint{% endblock %}</title>
+ <script type="text/javascript" src="http://infopoint/media/js/core.js"></script>
+ <script type="text/javascript" src="/admin/jsi18n/"></script>
+
+ <script type="text/javascript" src="http://infopoint/media/js/admin/RelatedObjectLookups.js"></script>
+{% block head %}{% endblock %}
</head>
{% load i18n %}
<body class="dashboard">
@@ -12,33 +17,63 @@
<!-- Header -->
<div id="header">
<div id="branding">
- <h1 id="site-name">{% block branding %}Infopoint{% endblock %}</h1> </div>
+ <h1 id="site-name">{% block branding %}<a href="/">Infopoint</a>{% endblock %}</h1> </div>
{% if user.is_authenticated and user.is_staff %}
- <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="{{ root_path }}doc/">{% trans 'Documentation' %}</a> / <a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / {% block info %}{% endblock %} <a href="{{ root_path }}logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
+ <div id="user-tools">{% trans 'Welcome,' %} <strong>{% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}</strong>. {% block userlinks %}<a href="{{ root_path }}doc/">{% trans 'Documentation' %}</a> / <a href="{{ root_path }}password_change/">{% trans 'Change password' %}</a> / {% block info %}{% endblock %} <a href="/admin/logout/">{% trans 'Log out' %}</a>{% endblock %}</div>
{% endif %}
{% block nav-global %}{% endblock %}
- {% block map %}{% endblock %}
</div>
<!-- END Header -->
- {% endif %}
-
+ {% endif %}
<div id="content" class="colMS">
<div id="content-related">
{% block sidebar %}
<div class="module">
<h2>{% trans 'Links' %}</h2>
<ul class="actionlist">
- <li><a href="/agenda/me/">My page</a></li>
- <li><a href="/agenda/">Agenda</a></li>
- <li><a href="/admin/">Admin</a></li>
- <li><a href="/todo/add">Add todo</a></li>
- <li><a href="map/">Refresh_map</a></li>
+ <li><a href="{% url agenda.views.calendar %}">{% trans 'Home' %}</a></li>
+ {% if user.is_authenticated and user.is_staff %}<li><a href="{% url agenda.views.mismensajes %}">{% trans 'My page' %}</a></li>{% endif %}
+ <li><a href="{% url agenda.views.wishlist %}">{% trans 'Wishlist' %}</a></li>
+ <li><a href="/cal/{% now "Y\/m" %}/">{% trans 'Calendar' %}</a></li>
+ {% if user.is_authenticated and user.is_staff %}<li><a href="{% url agenda.views.orphan_events %}">{% trans 'Events with no mentor' %}</a></li>{% endif %}
+ <li><a href="/admin/">{% trans 'Admin' %}</a></li>
</ul>
</div>
+{% if todolist %}
+ <div class="module">
+ <h2><a href="{#% url agenda.views.todolist %#}" >{% trans 'ToDo list' %}</a></h2>
+ <ul>
+ {% for object in todolist %}
+ <li>{{ object.title }} - <a href="{% url agenda.views.closealltodo object.id %}" class="deletelink">close</a></li>
+ {% endfor %}
+ </ul>
+ <p><a href="http://infopoint/admin/agenda/todo/add/" class="changelink">Add new Todo</a>
+ </div>
+{% endif %}
+
+{% if wishlist %}
+ <div class="module">
+ <h2><a href="{% url agenda.views.wishlist %}" >{% trans 'Wishlist' %}</a></h2>
+ <ul>
+ {% for object in wishlist %}
+ <li>{{ object.title|title }}</li>
+ {% endfor %}
+ </ul>
+ <p><a href="http://infopoint/admin/agenda/wish/add/" class="changelink">Add new wishitem</a>
+ </div>
+{% endif %}
+
{% endblock %}
- </div>
- <div id="content-main">
+ </div>
+ <div id="content-main">
+ {% if messages %}
+ {% for message in messages %}
+ <li>{{ message }}</li>
+ {% endfor %}
+
+ {% endif %}
+
{% block content %}
<h1>Infopoint</h1>
This is the default content.<br>