source: asadb/template/groups/group_detail.html @ b8d924e

space-accessstablestage
Last change on this file since b8d924e was b38a26a, checked in by Alex Dehnert <adehnert@…>, 14 years ago

Show MIT offices the link to space access page

MIT offices don't have admin_group, so they don't get the full set of tools.
Unfortunately, they *should* get the space access page, so they can view
who is supposed to have access.

Longer term, group_tools.part.html should probably get used for everybody.
It should cleverly compute viewpriv and adminpriv based on request.user and
the group currently being viewed... but unfortunately we don't have that,
and I don't feel like adding it right now. So this'll have to do.

  • Property mode set to 100644
File size: 4.6 KB
Line 
1{% extends "base.html" %}
2
3{% block title %}{{group.name}}{% endblock %}
4{% block content %}
5
6<h1>{{group.name}}{% if group.abbreviation %} ({{group.abbreviation}}){%endif%}</h1>
7
8{% if adminpriv %}{% include "groups/group_tools.part.html" %}
9{% else %}
10<div class='toolbox'>
11<h2>Tools</h2>
12{% if user.is_authenticated %}
13<p>You are not an admin of this group.</p>
14<p><a href='http://web.mit.edu/asa/database/faq.html#perm'>See FAQ</a> for more info.</p>
15{% if viewpriv %}<p>See also <a href='{% url groups:group-space-access group.pk %}'>space access</a>.</p>{% endif %}
16{% else %}
17<p>No tools available without <a href='{% url login %}?next={% firstof request.path '/' %}'>logging in</a>.</p>
18{% endif %}
19</div>
20{% endif %}
21
22<table class='pretty-table'>
23<tr><th colspan='2'>Basic Information</th></tr>
24<tr><th>Name</th><td>{{group.name}}</td></tr>
25<tr>
26    <th>Abbreviation</th>
27    <td>{%if group.abbreviation%}{{group.abbreviation}}{%else%}<i>none</i>{%endif%}</td>
28</tr>
29<tr><th>Group ID</th><td>{{group.pk}}</td></tr>
30<tr><th>Type</th><td>{{group.activity_category}}</td></tr>
31<tr><th>Description</th><td>{{group.description}}</td></tr>
32
33<tr><th colspan='2'>Contact Information</th></tr>
34<tr><th>Website</th><td><a href="{{group.website_url}}">{{group.website_url}}</a></td></tr>
35<tr><th>Meeting times</th><td>{{group.meeting_times}}</td></tr>
36<tr><th>Officers' email list</th><td>{% if user.is_authenticated %}{{group.officer_email}}{% else %}[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see emails]{% endif %}</td></tr>
37{% if viewpriv %}<tr class='private-info'>
38    <th>Group email list</th>
39    <td>{{group.group_email}}</td>
40</tr>{% endif %}
41
42<tr><th colspan='2'>People</th></tr>
43{% if user.is_authenticated %}
44{% for name, role, people in roles %}
45<tr{%if not role.publicly_visible %} class='private-info'{%endif%}>
46    <th>{{name}}</th>
47    <td><ul>
48    {% for person in people %}<li>{{person.format_person}}</li>{%endfor%}
49    </ul></td>
50</tr>
51{% endfor %}
52{% else %}
53<tr><td colspan='2'>[<a href='{% url login %}?next={% firstof request.path '/' %}'>log in</a> to see people involved]</td></tr>
54{% endif %}
55
56<tr><th colspan='2'>Recognition</th></tr>
57<tr><th>Group status</th><td>{{group.group_status.name}}</td></tr>
58<tr><th>Group class</th><td>{{group.group_class.name}}</td></tr>
59<tr><th>Recognition date</th><td>{{group.recognition_date}}</td></tr>
60
61<tr><th colspan='2'>Financial Information</th></tr>
62<tr><th>Funding status</th><td>{{group.group_funding}}</td></tr>
63{% if viewpriv %}
64<tr class='private-info'><th>Main Account</th><td>{{group.main_account_id}}</td></tr>
65<tr class='private-info'><th>Funding Account</th><td>{{group.funding_account_id}}</td></tr>
66{% endif %}
67
68<tr><th colspan='2'>Additional Information</th></tr>
69{% if viewpriv %}
70<tr class='private-info'>
71    <th>Constitution</th>
72    <td>{% if group.constitution_url %}<a href='{{group.constitution_url}}'>{{group.constitution_url}}</a>{%else%}<i>not provided</i>{%endif%}</td>
73</tr>
74{% endif %}
75<tr>
76    <th>Advisor</th>
77    <td>{{group.advisor_name}}</td>
78</tr>
79<tr><th>Athena locker</th><td>{{group.athena_locker}}</td></tr>
80<tr><th>Last updated</th><td>{{group.update_string}}</td></tr>
81
82{% if viewpriv %}
83<tr class='private-info'><th colspan='2'>Information that is not available to the general MIT community.</th></tr>
84{% endif %}
85
86</table>
87
88<table class='pretty-table'>
89<caption>Group Size</caption>
90<tr>
91    <th>Undergraduates</th>
92    <th>Graduate Students</th>
93    <th>MIT Community</th>
94    <th>Other</th>
95</tr>
96<tr>
97    <td>{{group.num_undergrads}}</td>
98    <td>{{group.num_grads}}</td>
99    <td>{{group.num_community}}</td>
100    <td>{{group.num_other}}</td>
101</tr>
102</table>
103
104<h2>My Connection</h2>
105
106{% if my_roles %}
107<p>You have the following connections to this group:</p>
108<table class='pretty-table'>
109<tr>
110    <th>Connection</th>
111    <th>Description</th>
112</tr>
113{% for holder in my_roles %}
114<tr>
115    <th>{{holder.role.display_name}}</th>
116    <td>{{holder.role.description}}</td>
117</tr>
118{% endfor %}
119</table>
120{% else %}
121{% if user.is_authenticated %}
122<p>No roles in this group.</p>
123{% else %}
124<p><a href='{% url login %}?next={% firstof request.path '/' %}'>Log in</a> to see any roles in this group.</p>
125{% endif %}
126{% endif %}
127
128<h2>Notes</h2>
129
130{% if notes %}
131<table class='pretty-table'>
132<thead>
133{% include "groups/note/detail.head.html" %}
134</thead>
135<tbody>
136{% for note in notes %}
137{% include "groups/note/detail.row.html" %}
138{% endfor %}
139</tbody>
140</table>
141{% else %}
142<p>No notes are visible to you at this time.</p>
143{% endif %}
144
145{% if perms.groups.add_groupnote %}
146<p><a href='{% url admin:groups_groupnote_add %}'>Add note</a></p>
147{% endif %}
148
149{% endblock %}
150
Note: See TracBrowser for help on using the repository browser.