1 {% extends "admin_base.html" %}
7 <form action="{% url astakos.im.views.users_modify user.id %}" method="post">
9 <label for="user-id">ID</label>
11 <span class="uneditable-input" id="user-id">{{ user.id }}</span>
15 <div class="clearfix">
16 <label for="user-uniq">Uniq</label>
18 <input class="span4" id="user-uniq" name="uniq" value="{{ user.uniq }}" type="text" />
22 <div class="clearfix">
23 <label for="user-realname">Real Name</label>
25 <input class="span4" id="user-realname" name="realname" value="{{ user.realname }}" type="text" />
29 <div class="clearfix">
30 <label for="user-admin">Admin</label>
32 <ul class="inputs-list">
35 <input type="checkbox" id="user-admin" name="admin"{% if user.is_admin %} checked{% endif %}>
42 <div class="clearfix">
43 <label for="user-affiliation">Affiliation</label>
45 <input class="span4" id="user-affiliation" name="affiliation" value="{{ user.affiliation }}" type="text" />
49 <div class="clearfix">
50 <label for="user-state">State</label>
52 <select class="medium" id="user-state" name="state">
53 {% for state in states %}
54 <option{% ifequal state user.state %} selected{% endifequal %}>{{ state }}</option>
60 <div class="clearfix">
61 <label for="user-invitations">Invitations</label>
63 <input class="span2" id="user-invitations" name="invitations" value="{{ user.invitations }}" type="text" />
67 <div class="clearfix">
68 <label for="user-quota">Quota</label>
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>
77 <div class="clearfix">
78 <label for="user-token">Token</label>
80 <input class="span4" id="user-token" name="auth_token" value="{{ user.auth_token }}" type="text" />
84 <div class="clearfix">
85 <label for="token-created">Token Created</label>
87 <span class="uneditable-input" id="token-created">{{ user.auth_token_created }}</span>
91 <div class="clearfix">
92 <label for="token-expires">Token Expires</label>
94 <input type="datetime" class="span4" id="token-expires" name="auth_token_expires" value="{{ user.auth_token_expires|isoformat }}" />
98 <div class="clearfix">
99 <label for="user-created">Created</label>
101 <span class="uneditable-input" id="user-created">{{ user.created }}</span>
105 <div class="clearfix">
106 <label for="user-updated">Updated</label>
108 <span class="uneditable-input" id="user-updated">{{ user.updated }}</span>
112 <div class="actions">
113 <button type="submit" class="btn primary">Save Changes</button>
114 <button type="reset" class="btn">Reset</button>
116 <a class="btn danger needs-confirm" href="{% url astakos.im.views.users_delete user.id %}">Delete User</a>
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>