AdminUsersInterface

From Request Tracker Wiki
Jump to navigation Jump to search

This small patch against RT 3.6.4rc2 optimizes the view of all Users. There are two major changes.

1. The Searchbox moved up to the top of the Page, because if you have a lof of users, it takes a lot of time to scroll down ;-)

2. The Userinformation Display is extendet to get a better overview.

We have to change the /html/Admin/Users/index.html

--- /opt/rt3/share/html/Admin/Users/index.html  2007-06-11 10:10:42.000000000 +0200
+++ /opt/rt3/local/html/Admin/Users/index.html  2007-06-11 16:14:05.000000000 +0200
@@ -50,30 +50,60 @@
     current_subtab => 'Admin/Users/',
     Title => loc('Select a user') &>

+<br /><br />
+
+<form method="post" action="<% $RT::WebPath %>/Admin/Users/index.html">
+
+<&|/l&>Find people whose:</&><br /><br /> <& /Elements/SelectUsers &><br />
+<br /><br /><br />
+<input type="checkbox" class="checkbox" name="FindDisabledUsers" value="1" /> <&|/l&>Include disabled users in search.</&>
+<br />
+<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
+</form>
+
+
 <h1><%$caption%></h1>
 <p><&|/l&>Select a user</&>:</p>
-<ul>
 %if ($users->Count == 0) {
 <li><em><&|/l&>No users matching search criteria found.</&></em></li>
 % }
 %my @ids;
+<table width="100%" cellpadding="0" cellspacing="0" style="text-align: left;">
+  <tbody>
+    <tr>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Username<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Mailaddress<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Organization<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Work Phone<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Department<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">City<br>
+      </th>
+      <th style="vertical-align: top; border-bottom: 2px solid #000;">Country<br>
+      </th>
+    </tr>
 %while ( $user = $users->Next) {
 %    push @ids, $user->Id;
-<li><a href="Modify.html?id=<%$user->id%>"><%$user->Name || loc('(no name listed)')%></a></li>
+    <tr>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><a href="Modify.html?id=<%$user->id%>"><%$user->Name || loc('(no name listed)')%></a></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->EmailAddress%></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->Organization%></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->WorkPhone%></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->Address1%></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->City%></td>
+      <td style="vertical-align: top; border: 1px solid #ccc;"><%$user->Country%></td>
+    </tr>
 %}
-</ul>
+  </tbody>
+</table>
 %if (my $ids = join(',', @ids)) {
 <em>(<a href="<%$RT::WebPath%>/Download/Tabular/User/<% $ids %>/Users.tsv"><&|/l&>Download as a tab-delimited file</&></a>)</em><br />
 %}

-<br /><br />
-<form method="post" action="<% $RT::WebPath %>/Admin/Users/index.html">
-
-<&|/l&>Find people whose</&> <& /Elements/SelectUsers &><br />
-<input type="checkbox" class="checkbox" name="FindDisabledUsers" value="1" /> <&|/l&>Include disabled users in search.</&>
-<br />
-<div align="right"><input type="submit" class="button" value="<&|/l&>Go!</&>" /></div>
-</form>

<%INIT>
my ($user, $caption);