[Rt-commit] rtir branch, 4.2-theme/migrate-to-elevator-themes, updated. 4.0.1rc1-98-g4719d3b1
Blaine Motsinger
blaine at bestpractical.com
Thu Sep 12 18:40:58 EDT 2019
The branch, 4.2-theme/migrate-to-elevator-themes has been updated
via 4719d3b135c2e6d658636f2c77099d63e0ee8a04 (commit)
from 8759c1c6cfcf77bd41f3285aa0077d6214d466de (commit)
Summary of changes:
html/RTIR/Tools/Elements/SelectWhoisServer | 2 +-
html/RTIR/Tools/Elements/ToolFormIframe | 27 ++++++++++++++++-----------
html/RTIR/Tools/Elements/ToolFormTraceroute | 20 ++++++++++++--------
html/RTIR/Tools/Elements/ToolFormWhois | 27 ++++++++++++++++-----------
html/RTIR/Tools/Elements/Tools | 6 ++++--
5 files changed, 49 insertions(+), 33 deletions(-)
- Log -----------------------------------------------------------------
commit 4719d3b135c2e6d658636f2c77099d63e0ee8a04
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Thu Sep 12 17:40:32 2019 -0500
Migrate RTIR/Tools/Lookup to elevator themes
diff --git a/html/RTIR/Tools/Elements/SelectWhoisServer b/html/RTIR/Tools/Elements/SelectWhoisServer
index cf095538..7a993488 100644
--- a/html/RTIR/Tools/Elements/SelectWhoisServer
+++ b/html/RTIR/Tools/Elements/SelectWhoisServer
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<select name="<% $Name %>">
+<select class="form-control selectpicker" name="<% $Name %>">
<%PERL>
foreach my $s ( sort grep $servers{ $_ }, keys %servers ) {
my $srv = $servers{ $s };
diff --git a/html/RTIR/Tools/Elements/ToolFormIframe b/html/RTIR/Tools/Elements/ToolFormIframe
index 832aeb59..9a4063b3 100644
--- a/html/RTIR/Tools/Elements/ToolFormIframe
+++ b/html/RTIR/Tools/Elements/ToolFormIframe
@@ -45,25 +45,30 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<tr>
-<td valign="middle" class="label"><%loc('Research Tool')%>:</td>
-<td valign="middle">
<form action="Lookup.html" method="get">
+ <div class="form-row">
+ <div class="col-md-2">
+ <%loc('Research Tool')%>:
+ </div>
% foreach my $arg ( grep exists $ARGS{$_}, @PassArguments ) {
- <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
+ <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
% }
- <span class="input">
- <input type="text" size="30" name="q" value="<% $q %>" /> at
- <select name="ResearchTool">
+ <div class="col-md-4">
+ <input class="form-control" type="text" name="q" value="<% $q %>" />
+ </div>
+ <div class="col-md-auto"> at </div>
+ <div class="col-md-3">
+ <select class="form-control selectpicker" name="ResearchTool">
% for my $tool (grep {defined } keys %$research_tools) {
<option value="<%$tool%>" <%$tool eq $ResearchTool ? 'SELECTED' : ''%>><% $research_tools->{$tool}->{FriendlyName} %></option>
%}
</select>
- </span>
- <input type="submit" value="<%loc('Go')%>" />
+ </div>
+ <div class="col-md-auto">
+ <input class="form-control btn btn-primary button" type="submit" value="<%loc('Go')%>" />
+ </div>
+ </div>
</form>
-</td>
-</tr>
<%args>
$q => ''
$ResearchTool => ''
diff --git a/html/RTIR/Tools/Elements/ToolFormTraceroute b/html/RTIR/Tools/Elements/ToolFormTraceroute
index 561ea90d..0c858712 100644
--- a/html/RTIR/Tools/Elements/ToolFormTraceroute
+++ b/html/RTIR/Tools/Elements/ToolFormTraceroute
@@ -45,18 +45,22 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<tr>
-<td valign="top" class="label"><%loc('Traceroute to')%>:</td>
-<td valign="top">
<form action="Traceroute.html" method="get" target="_blank">
+ <div class="form-row">
+ <div class="col-md-2">
+ <%loc('Traceroute to')%>:
+ </div>
% foreach my $arg ( grep exists $ARGS{$_}, @PassArguments ) {
- <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
+ <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
% }
- <span class="input"><input type="text" size="30" name="q" value="<% $q %>" /></span>
- <input type="submit" value="<%loc('Go')%>" />
+ <div class="col-md-4">
+ <input class="form-control" type="text" name="q" value="<% $q %>" />
+ </div>
+ <div class="col-md-auto">
+ <input class="form-control btn btn-primary button" type="submit" value="<%loc('Go')%>" />
+ </div>
+ </div>
</form>
-</td>
-</tr>
<%args>
$q => ''
@PassArguments => ()
diff --git a/html/RTIR/Tools/Elements/ToolFormWhois b/html/RTIR/Tools/Elements/ToolFormWhois
index 3ef3220f..c9cad026 100644
--- a/html/RTIR/Tools/Elements/ToolFormWhois
+++ b/html/RTIR/Tools/Elements/ToolFormWhois
@@ -45,21 +45,26 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<tr>
-<td valign="top" class="label"><%loc('WHOIS')%>:</td>
-<td valign="top">
<form name="ToolFormWhois" action="Lookup.html" method="get">
+ <div class="form-row">
+ <div class="col-md-2">
+ <%loc('WHOIS')%>:
+ </div>
% foreach my $arg ( grep exists $ARGS{$_}, @PassArguments ) {
- <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
+ <input type="hidden" name="<% $arg %>" value="<% $ARGS{ $arg } %>" />
% }
- <span class="input">
- <input type="text" size="30" name="q" value="<% $q %>" /> at
- <& SelectWhoisServer, Name => 'WhoisServer', Default => $WhoisServer &>
- </span>
- <input type="submit" value="<%loc('Go')%>" />
+ <div class="col-md-4">
+ <input class="form-control" type="text" name="q" value="<% $q %>" />
+ </div>
+ <div class="col-md-auto"> at </div>
+ <div class="col-md-3">
+ <& SelectWhoisServer, Name => 'WhoisServer', Default => $WhoisServer &>
+ </div>
+ <div class="col-md-auto">
+ <input class="form-control btn btn-primary button" type="submit" value="<%loc('Go')%>" />
+ </div>
+ </div>
</form>
-</td>
-</tr>
<%args>
$q => ''
$WhoisServer => undef
diff --git a/html/RTIR/Tools/Elements/Tools b/html/RTIR/Tools/Elements/Tools
index ec022b51..f4539732 100644
--- a/html/RTIR/Tools/Elements/Tools
+++ b/html/RTIR/Tools/Elements/Tools
@@ -49,13 +49,15 @@
my $tools = RT->Config->Get('RTIRResearchTools') || ();
</%INIT>
-<table class="lookup-tool-forms">
+<div class="row">
+ <div class="col-md-6">
% for my $tool (@$tools) {
% if ($m->comp_exists('ToolForm' . $tool)) {
% $m->comp('ToolForm' . $tool, %ARGS);
% }
% }
-</table>
+ </div>
+</div>
<%perl>
for my $tool (@$tools) {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list