[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-342-g2f1c25c
Thomas Sibley
trs at bestpractical.com
Mon Aug 16 17:38:02 EDT 2010
The branch, 3.9-trunk has been updated
via 2f1c25cf0a57520d5311480e65d1cbda69413a29 (commit)
from 0df4577252b86fd9655b3cd7c633b0edbd585c07 (commit)
Summary of changes:
share/html/Admin/Users/index.html | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 2f1c25cf0a57520d5311480e65d1cbda69413a29
Author: Thomas Sibley <trs at bestpractical.com>
Date: Mon Aug 16 17:39:18 2010 -0400
Add an autocomplete field for easily jumping to the modify user page
diff --git a/share/html/Admin/Users/index.html b/share/html/Admin/Users/index.html
index 9ed60b3..8d6daba 100755
--- a/share/html/Admin/Users/index.html
+++ b/share/html/Admin/Users/index.html
@@ -83,6 +83,25 @@
% next unless defined $ARGS{ $field } && length $ARGS{ $field };
<input type="hidden" name="<% $field %>" value="<% $ARGS{ $field } %>" />
% }
+<input type="hidden" name="UserField" value="Name" />
+<&|/l&>Go to user</&>
+<input type="text" name="UserString" value="" id="autocomplete-UserString" />
+<script type="text/javascript">
+ jQuery("#autocomplete-UserString").autocomplete({
+ source: "<% RT->Config->Get('WebPath')%>/Helpers/Autocomplete/Users?return=Name",
+ // Auto-submit once a user is chosen
+ select: function( event, ui ) {
+ jQuery(event.target).closest("form").submit();
+ }
+ });
+</script>
+</form>
+
+<form method="post" action="<% RT->Config->Get('WebPath') %>/Admin/Users/index.html">
+% foreach my $field( qw(Format Rows Page Order OrderBy) ) {
+% next unless defined $ARGS{ $field } && length $ARGS{ $field };
+<input type="hidden" name="<% $field %>" value="<% $ARGS{ $field } %>" />
+% }
<&|/l&>Find all users whose</&> <& /Elements/SelectUsers, %ARGS, Fields => \@fields &><br />
<input type="checkbox" class="checkbox" name="FindDisabledUsers" value="1" <% $FindDisabledUsers? 'checked="checked"': '' %> />
<&|/l&>Include disabled users in search.</&>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list