Revision 3d81901c templates/profile.html

b/templates/profile.html
6 6
<h3>{% trans "My profile" %}</h3>
7 7

  
8 8
<div id="profile">
9
	My data:<br>
10 9
	<strong>First name:</strong> {{user.first_name}} <br>
11 10
	<strong>Last name:</strong> {{user.last_name}} <br>
12 11
	<strong>Email:</strong> {{user.email}}<br>
13
	<strong>Organization:</strong> {{peer}} <br>
14
	<strong>Admin Networks:</strong> <br>
15
	{% for network in peer.networks.all %}
16
	{{network}}<br>
17
	{% empty %}
18
    <span style="color:red">Ooops! Seems you have no networks associated with your peer. Contact Helpdesk to resolve this issue.</span>
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>
19 28
	{% endfor %}
20

  
29
	</table>
21 30
</div>
22 31

  
23 32

  

Also available in: Unified diff