mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Distinguish between active and inactive users on the Find People page.
This commit is contained in:
parent
c54826653f
commit
9d24003528
@ -379,3 +379,7 @@ ul.checkboxlist li input {
|
||||
width: 1.2em;
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
||||
#inactive {
|
||||
background-color: silver;
|
||||
}
|
||||
|
@ -465,7 +465,7 @@ class UserController(IPAController):
|
||||
uid = kw.get('uid')
|
||||
if uid != None and len(uid) > 0:
|
||||
try:
|
||||
users = client.find_users(uid.encode('utf-8'), None, 0, 2)
|
||||
users = client.find_users(uid.encode('utf-8'), user_fields, 0, 2)
|
||||
counter = users[0]
|
||||
users = users[1:]
|
||||
if counter == -1:
|
||||
|
@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div py:if='(users != None) and (len(users) > 0)'>
|
||||
<h2>${len(users)} results returned:</h2>
|
||||
<table id="resultstable" class="details sortable resizable">
|
||||
<table id="resultstable" class="details sortable resizable" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@ -37,7 +37,25 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr py:for="user in users">
|
||||
<tr py:for="user in users" py:if="user.nsAccountLock != 'true'">
|
||||
<td>
|
||||
<a href="${tg.url('/user/show',uid=user.uid)}"
|
||||
>${user.givenName} ${user.sn}</a>
|
||||
(${user.uid})
|
||||
</td>
|
||||
<td>
|
||||
${user.telephoneNumber}
|
||||
</td>
|
||||
<td>
|
||||
${user.ou}
|
||||
</td>
|
||||
<td>
|
||||
${user.title}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<tr id="inactive" py:for="user in users" py:if="user.nsAccountLock == 'true'">
|
||||
<td>
|
||||
<a href="${tg.url('/user/show',uid=user.uid)}"
|
||||
>${user.givenName} ${user.sn}</a>
|
||||
|
Loading…
Reference in New Issue
Block a user