root / templates / profile.html @ 3d81901c
History | View | Annotate | Download (923 Bytes)
1 |
{% extends "base.html" %} |
---|---|
2 |
{% load i18n %} |
3 |
|
4 |
{% block title %}{% trans "My profile" %}{% endblock %} |
5 |
{% block content %} |
6 |
<h3>{% trans "My profile" %}</h3> |
7 |
|
8 |
<div id="profile"> |
9 |
<strong>First name:</strong> {{user.first_name}} <br> |
10 |
<strong>Last name:</strong> {{user.last_name}} <br> |
11 |
<strong>Email:</strong> {{user.email}}<br> |
12 |
<br>
|
13 |
<strong>My Networks:</strong><br> |
14 |
<table class="display"> |
15 |
<tr>
|
16 |
<th class="ui-state-default">Organization</th><th class="ui-state-default">Networks</th> |
17 |
</tr>
|
18 |
{% for peer in peers %} |
19 |
<tr class="gradeC {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}"> |
20 |
<td>{{peer}} </td> |
21 |
<td>
|
22 |
{% for network in peer.networks.all %} |
23 |
{{network}}<br>
|
24 |
{% empty %} |
25 |
<span style="color:red">Ooops! Seems you have no networks associated with this peer. Contact Helpdesk to resolve this issue.</span> |
26 |
{% endfor %} |
27 |
</td></tr> |
28 |
{% endfor %} |
29 |
</table>
|
30 |
</div>
|
31 |
|
32 |
|
33 |
|
34 |
{% endblock %} |