[Rt-commit] rt branch, 5.0/find-user-input-width, created. rt-5.0.0-51-g4d473c3168

? sunnavy sunnavy at bestpractical.com
Thu Oct 8 15:46:53 EDT 2020


The branch, 5.0/find-user-input-width has been created
        at  4d473c3168f70651fe1e16e37e223ab38c22008d (commit)

- Log -----------------------------------------------------------------
commit 4d473c3168f70651fe1e16e37e223ab38c22008d
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 9 03:31:54 2020 +0800

    Widen input box in Find a user portlet on RT at a Glance

diff --git a/share/html/Elements/FindUser b/share/html/Elements/FindUser
index 233bbf4b91..82088fc4ff 100644
--- a/share/html/Elements/FindUser
+++ b/share/html/Elements/FindUser
@@ -46,5 +46,5 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <&|/Widgets/TitleBox, title => loc('Find a user')&>
-<& /Elements/GotoUser &>
+<& /Elements/GotoUser, Cols => 9 &>
 </&>
diff --git a/share/html/Elements/GotoUser b/share/html/Elements/GotoUser
index b2720449bc..2a72c4118b 100644
--- a/share/html/Elements/GotoUser
+++ b/share/html/Elements/GotoUser
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <form name="UserSearch" method="post" action="<% RT->Config->Get('WebPath') %>/User/Search.html">
   <div class="form-row justify-content-center">
-    <div class="col-4">
+    <div class="col-<% $Cols %>">
       <input type="text" class="form-control" name="UserString" value="<% $Default %>" data-autocomplete="Users" data-autocomplete-return="Name" id="autocomplete-UserString" />
     </div>
     <div class="col-auto">
@@ -65,4 +65,5 @@ jQuery(function(){
 </form>
 <%ARGS>
 $Default => ''
+$Cols    => 4
 </%ARGS>

-----------------------------------------------------------------------


More information about the rt-commit mailing list