root / astakos / im / templates / users_info.html @ 64cd4730
History | View | Annotate | Download (3.8 kB)
1 |
{% extends "admin_base.html" %} |
---|---|
2 |
|
3 |
{% load formatters %} |
4 |
|
5 |
{% block body %} |
6 |
|
7 |
<form action="{% url astakos.im.views.users_modify user.id %}" method="post"> |
8 |
<div class="clearfix"> |
9 |
<label for="user-id">ID</label> |
10 |
<div class="input"> |
11 |
<span class="uneditable-input" id="user-id">{{ user.id }}</span> |
12 |
</div>
|
13 |
</div>
|
14 |
|
15 |
<div class="clearfix"> |
16 |
<label for="user-uniq">Uniq</label> |
17 |
<div class="input"> |
18 |
<input class="span4" id="user-uniq" name="uniq" value="{{ user.uniq }}" type="text" /> |
19 |
</div>
|
20 |
</div>
|
21 |
|
22 |
<div class="clearfix"> |
23 |
<label for="user-realname">Real Name</label> |
24 |
<div class="input"> |
25 |
<input class="span4" id="user-realname" name="realname" value="{{ user.realname }}" type="text" /> |
26 |
</div>
|
27 |
</div>
|
28 |
|
29 |
<div class="clearfix"> |
30 |
<label for="user-admin">Admin</label> |
31 |
<div class="input"> |
32 |
<ul class="inputs-list"> |
33 |
<li>
|
34 |
<label>
|
35 |
<input type="checkbox" id="user-admin" name="admin"{% if %} checked{% endif %}> |
36 |
</label>
|
37 |
</li>
|
38 |
</ul>
|
39 |
</div>
|
40 |
</div>
|
41 |
|
42 |
<div class="clearfix"> |
43 |
<label for="user-affiliation">Affiliation</label> |
44 |
<div class="input"> |
45 |
<input class="span4" id="user-affiliation" name="affiliation" value="{{ user.affiliation }}" type="text" /> |
46 |
</div>
|
47 |
</div>
|
48 |
|
49 |
<div class="clearfix"> |
50 |
<label for="user-state">State</label> |
51 |
<div class="input"> |
52 |
<select class="medium" id="user-state" name="state"> |
53 |
{% for state in states %} |
54 |
<option{% ifequal user.state %} selected{% endifequal %}>{{ state }}</option> |
55 |
{% endfor %} |
56 |
</select>
|
57 |
</div>
|
58 |
</div>
|
59 |
|
60 |
<div class="clearfix"> |
61 |
<label for="user-invitations">Invitations</label> |
62 |
<div class="input"> |
63 |
<input class="span2" id="user-invitations" name="invitations" value="{{ user.invitations }}" type="text" /> |
64 |
</div>
|
65 |
</div>
|
66 |
|
67 |
<div class="clearfix"> |
68 |
<label for="user-quota">Quota</label> |
69 |
<div class="input"> |
70 |
<div class="input-append"> |
71 |
<input class="span2" id="user-quota" name="quota" value="{{ user.quota|GiB }}" type="text" /> |
72 |
<span class="add-on">GiB</span> |
73 |
</div>
|
74 |
</div>
|
75 |
</div>
|
76 |
|
77 |
<div class="clearfix"> |
78 |
<label for="user-token">Token</label> |
79 |
<div class="input"> |
80 |
<input class="span4" id="user-token" name="auth_token" value="{{ user.auth_token }}" type="text" /> |
81 |
</div>
|
82 |
</div>
|
83 |
|
84 |
<div class="clearfix"> |
85 |
<label for="token-created">Token Created</label> |
86 |
<div class="input"> |
87 |
<span class="uneditable-input" id="token-created">{{ user.auth_token_created }}</span> |
88 |
</div>
|
89 |
</div>
|
90 |
|
91 |
<div class="clearfix"> |
92 |
<label for="token-expires">Token Expires</label> |
93 |
<div class="input"> |
94 |
<input type="datetime" class="span4" id="token-expires" name="auth_token_expires" value="{{ user.auth_token_expires|isoformat }}" /> |
95 |
</div>
|
96 |
</div>
|
97 |
|
98 |
<div class="clearfix"> |
99 |
<label for="user-created">Created</label> |
100 |
<div class="input"> |
101 |
<span class="uneditable-input" id="user-created">{{ user.created }}</span> |
102 |
</div>
|
103 |
</div>
|
104 |
|
105 |
<div class="clearfix"> |
106 |
<label for="user-updated">Updated</label> |
107 |
<div class="input"> |
108 |
<span class="uneditable-input" id="user-updated">{{ user.updated }}</span> |
109 |
</div>
|
110 |
</div>
|
111 |
|
112 |
<div class="actions"> |
113 |
<button type="submit" class="btn primary">Save Changes</button> |
114 |
<button type="reset" class="btn">Reset</button> |
115 |
|
116 |
<a class="btn danger needs-confirm" href="{% url astakos.im.views.users_delete user.id %}">Delete User</a> |
117 |
</div>
|
118 |
|
119 |
<div class="alert-message block-message error"> |
120 |
<p><strong>WARNING:</strong> Are you sure you want to delete this user?</p> |
121 |
<div class="alert-actions"> |
122 |
<a class="btn danger" href="{% url astakos.im.views.users_delete user.id %}">Delete</a> |
123 |
<a class="btn alert-close">Cancel</a> |
124 |
</div>
|
125 |
</div>
|
126 |
</form>
|
127 |
{% endblock body %} |