Statistics
| Branch: | Tag: | Revision:

root / pithos / im / templates / users_profile.html @ 0778f7e1

History | View | Annotate | Download (3.4 kB)

1
{% extends "base.html" %}
2

    
3
{% load formatters %}
4

    
5
{% block title%}
6
        <h2>User Profile</h2>
7
{% endblock title%}
8

    
9
{% block body %}
10

    
11
<form action="{% url pithos.im.views.users_edit%}" method="post">
12
  <div class="clearfix">
13
    <label for="user-id">ID</label>
14
    <div class="input">
15
      <span class="uneditable-input" id="user-id">{{ user.id }}</span>
16
    </div>
17
  </div>
18

    
19
  <div class="clearfix">
20
    <label for="user-uniq">Uniq</label>
21
    <div class="input">
22
        <span class="uneditable-input" id="user-uniq">{{ user.uniq }}</span>
23
    </div>
24
  </div>
25

    
26
  <div class="clearfix">
27
    <label for="user-realname">Real Name</label>
28
    <div class="input">
29
      <input class="span4" id="user-realname" name="realname" value="{{ user.realname }}" type="text" />
30
    </div>
31
  </div>
32

    
33
  <div class="clearfix">
34
    <label for="user-admin">Admin</label>
35
    <div class="input">
36
      <ul class="inputs-list">
37
        <li>
38
          <label>
39
            <input type="checkbox" id="user-admin" name="admin"{% if  %} checked{% endif %} disabled="disabled">
40
          </label>
41
        </li>
42
      </ul>
43
    </div>
44
  </div>
45

    
46
  <div class="clearfix">
47
    <label for="user-affiliation">Affiliation</label>
48
    <div class="input">
49
      <input class="span4" id="user-affiliation" name="affiliation" value="{{ user.affiliation }}" type="text" />
50
    </div>
51
  </div>
52

    
53
  <div class="clearfix">
54
    <label for="user-state">State</label>
55
    <div class="input">
56
      <select class="medium" id="user-state" name="state" disabled="disabled">
57
        {% for state in states %}
58
        <option{% ifequal  user.state %} selected{% endifequal %}>{{ state }}</option>
59
        {% endfor %}
60
      </select>
61
    </div>
62
  </div>
63

    
64
  <div class="clearfix">
65
    <label for="user-invitations">Invitations</label>
66
    <div class="input">
67
        <span class="uneditable-input" id="user-invitations">{{ user.invitations }}</span>
68
    </div>
69
  </div>
70

    
71
  <div class="clearfix">
72
    <label for="user-quota">Quota</label>
73
    <div class="input">
74
      <div class="input-append">
75
        <input class="span2" id="user-quota" name="quota" value="{{ user.quota|GiB }}" type="text" readonly="readonly"/>
76
        <span class="add-on">GiB</span>
77
      </div>
78
    </div>
79
  </div>
80

    
81
  <div class="clearfix">
82
    <label for="user-token">Token</label>
83
    <div class="input">
84
        <span class="uneditable-input" id="user-token">{{ user.auth_token }}</span>
85
    </div>
86
  </div>
87

    
88
  <div class="clearfix">
89
    <label for="token-created">Token Created</label>
90
    <div class="input">
91
      <span class="uneditable-input" id="token-created">{{ user.auth_token_created }}</span>
92
    </div>
93
  </div>
94

    
95
  <div class="clearfix">
96
    <label for="token-expires">Token Expires</label>
97
    <div class="input">
98
      <span class="uneditable-input" id="token-expires">{{ user.auth_token_expires }}</span>
99
    </div>
100
  </div>
101

    
102
  <div class="clearfix">
103
    <label for="user-created">Created</label>
104
    <div class="input">
105
      <span class="uneditable-input" id="user-created">{{ user.created }}</span>
106
    </div>
107
  </div>
108

    
109
  <div class="clearfix">
110
    <label for="user-updated">Updated</label>
111
    <div class="input">
112
      <span class="uneditable-input" id="user-updated">{{ user.updated }}</span>
113
    </div>
114
  </div>
115

    
116
  <div class="actions">
117
    <input type="hidden" name="next" value="{{ next }}">
118
    <button type="submit" class="btn primary">Verify</button>
119
  </div>
120

    
121
</form>
122
{% endblock body %}