(r'^organisations/(.*)/$', 'core.views.organisationform'),
(r'^products/(.*)/$', 'downloads.views.productform'),
+ # Organisation information
+ (r'^orglist/$', 'account.views.orglist'),
+
# Docs comments
(r'^comments/(new)/(.*)/(.*)/$', 'docs.views.commentform'),
'suburl': objtype,
}, NavContext(request, 'account'))
+@ssl_required
+@login_required
+def orglist(request):
+ orgs = Organisation.objects.filter(approved=True)
+
+ return render_to_response('account/orglist.html', {
+ 'orgs': orgs,
+ }, NavContext(request, 'account'))
+
@ssl_required
def login(request):
return authviews.login(request, template_name='account/login.html')
Organisation. One or more persons can be given permissions to manage
the data for an organisation. If you do not have permissions for an
organisation and think you should have, you need to contact the current
-managers for that organisation.
+managers for that organisation. You can find a list of organisations
+and managers <a href="orglist/">here</a>.
</p>
<h2>Migrated data</h2>
--- /dev/null
+{%extends "base/page.html"%}
+{%block title%}Organisatoins{%endblock%}
+{%block contents%}
+<h1>Organisations</h1>
+<p>
+The following organisations are registered in our database:
+</p>
+<table>
+ <tr>
+ <th>Organisation</th>
+ <th>Manager</th>
+ </tr>
+{%for o in orgs%}
+ <tr>
+ <td>{{o.name}}</td>
+ <td>{%for m in o.managers.all%}{{m.first_name}} {{m.last_name}}{%if not forloop.last%}<br/>{%endif%}{%endfor%}</td>
+ </tr>
+{%endfor%}
+</table>
+{%endblock%}
+