Statistics
| Branch: | Tag: | Revision:

root / templates / profile.html @ 62ee35d6

History | View | Annotate | Download (1.7 kB)

1
{% extends "base.html" %}
2
{% load i18n %}
3

    
4
{% block title %}{% trans "My profile" %}{% endblock %}
5
{% block breadcrumbs %} <li class="active"><span class="divider">/</span>{% trans "My profile" %}</li>{% endblock %}
6
{% block content %}
7
<h4>{% trans "My profile" %}</h4>
8
<br>
9
<div id="profile">
10
    <div class="row">
11
            <div class="span2"><strong>{% trans "Username" %}:</strong></div>
12
            <div class="span8">{{user.username}}</div>
13
    </div>
14
    <div class="row">
15
            <div class="span2"><strong>Rest API Key:</strong></div>
16
            <div class="span8"><span id="apikey">{{apikey.key}}</span></div>
17
    </div>
18
    <div class="row">
19
            <div class="span2"><strong>{% trans "First name" %}:</strong></div>
20
            <div class="span8">{{user.first_name}}</div>
21
    </div>
22
    <div class="row">
23
            <div class="span2"><strong>{% trans "Last name" %}:</strong></div>
24
            <div class="span8">{{user.last_name}}</div>
25
    </div>
26
    <div class="row">
27
            <div class="span2"><strong>{% trans "Email" %}:</strong></div>
28
            <div class="span8">{{user.email}}</div>
29
    </div>
30
    </div>
31
    <br>
32
    <div>
33
    <div class="row">
34
            <div class="span2"><strong>{% trans "My Networks" %}:</strong></div>
35
            <div class="span8"></div>
36
    </div>
37
        <table class="table table-striped table-bordered">
38
        <thead>
39
        <tr>
40
        <th>{% trans "Organization" %}</th><th>{% trans "Networks" %}</th>
41
        </tr>
42
        </thead>
43
        {% for peer in peers %}
44
                <tr>
45
                <td>{{peer}} </td>
46
                <td>
47
                {% for network in peer.networks.all %}
48
                {{network}}<br>
49
                {% empty %}
50
            <span style="color:red">{% blocktrans %}Ooops! Seems you have no networks associated with your peer. Contact Helpdesk to resolve this issue.{% endblocktrans %}</span>
51
                {% endfor %}
52
                </td></tr>
53
        {% endfor %}
54
        </table>
55
</div>
56

    
57
{% endblock %}
58

    
59

    
60