forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.html
More file actions
69 lines (61 loc) · 2.35 KB
/
view.html
File metadata and controls
69 lines (61 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{% extends "base_site.html" %}
{% block title %}Rolodex - View{% endblock %}
{% block breadcrumbs %}{{ block.super }}
» <a href="../">Rolodex</a>
» {{ person.name }}
{% endblock %}
{% block content %}
<div class="module">
<h2>{{ person.name }} ({{ person.id }})</h2>
<table id="rolodex-view-table" class="full-width">
<col width="150">
<tr><td>Name:</td><td>{{ person.name }}</td></tr>
<tr><td>Ascii Name:</td><td>{{ person.ascii }}</td></tr>
<tr><td>Short Name:</td><td>{{ person.ascii_short }}</td></tr>
<tr><td>Aliases:</td><td>{% for alias in person.alias_set.all %}{% if not forloop.first %}, {% endif %}{{ alias.name }}{% endfor %}
<tr><td>User:</td><td>{{ person.user }}</td></tr>
<tr></tr>
{% for email in person.emails %}
<tr><td>Email {{ forloop.counter }}:</td><td>{{ email }}</td></tr>
{% endfor %}
</table>
<br />
<div class="inline-related">
<h2><b>Roles</b></h2>
<table id="rolodex-role-table" class="full-width">
<thead>
<tr>
<th>Role Name</th>
<th>Group / Area</th>
<th>Email</th>
</tr>
</thead>
<tbody>
{% for role in roles %}
<tr>
<td>{{ role.name }} </td>
<td>
{% if role.group.type.slug == "area" %}
<a href="{% url "ietf.secr.areas.views.view" name=role.group.acronym %}">{{ role.group.acronym }}{% if role.group.state.slug == "conclude" %} (concluded){% endif %}</a>
{% else %}
<a href="{% url 'ietf.secr.groups.views.view' acronym=role.group.acronym %}">{{ role.group.acronym }}{% if role.group.state.slug == "conclude" %} (concluded){% endif %}</a>
{% endif %}
</td>
<td>{{ role.email }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div> <!-- iniline-related -->
<div class="button-group">
<ul>
<li><button onclick="window.location='../'">Search</button></li>
<li><button onclick="window.location='edit/'">Edit</button></li>
{% comment %}
Removed per Glen
<li><button onclick="window.location='../../delete/{{ person.person_or_org_tag }}'">Delete</button></li>
{% endcomment %}
</ul>
</div> <!-- view-buttons -->
</div> <!-- view-container -->
{% endblock %}