[Rt-commit] rtir branch, 2.6-trunk, updated. 2.6.0-13-g8d9f304

Jesse Vincent jesse at bestpractical.com
Tue Jan 11 10:49:26 EST 2011


The branch, 2.6-trunk has been updated
       via  8d9f3043eac6a91f3c720cec6c6363fc42c44d13 (commit)
      from  d75108353c724834201b2333d8cd0e7fb00413b6 (commit)

Summary of changes:
 html/RTIR/Tools/Elements/ToolFormIframe    |   23 +++++++++++++++++++++++
 html/RTIR/Tools/Elements/ToolResultsIframe |   16 ++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 html/RTIR/Tools/Elements/ToolFormIframe
 create mode 100644 html/RTIR/Tools/Elements/ToolResultsIframe

- Log -----------------------------------------------------------------
commit 8d9f3043eac6a91f3c720cec6c6363fc42c44d13
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Jan 11 10:47:55 2011 -0500

    Checked in missing files for the new Iframe tools UI

diff --git a/html/RTIR/Tools/Elements/ToolFormIframe b/html/RTIR/Tools/Elements/ToolFormIframe
new file mode 100644
index 0000000..3c650ec
--- /dev/null
+++ b/html/RTIR/Tools/Elements/ToolFormIframe
@@ -0,0 +1,23 @@
+<form action="Lookup.html" method="get">
+  <input type="hidden" name="ticket" value="<% $TicketObj->id %>" />
+    <span class="label"><%loc('Research Tool')%>:</span>
+    <span class="input">
+      <input size="30" name="q" value="<% $q %>" /> at
+      <select 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')%>" />
+</form>
+<%args>
+$TicketObj => undef
+$q => undef
+$ResearchTool => undef
+</%args>
+<%INIT>
+my $unique_id = time().rand();
+$m->notes(rtir_research_iframe_id => $unique_id);
+my $research_tools = RT->Config->Get('RTIRIframeResearchToolConfig');
+</%INIT>
diff --git a/html/RTIR/Tools/Elements/ToolResultsIframe b/html/RTIR/Tools/Elements/ToolResultsIframe
new file mode 100644
index 0000000..509affa
--- /dev/null
+++ b/html/RTIR/Tools/Elements/ToolResultsIframe
@@ -0,0 +1,16 @@
+<h2><&|/l&><%$research_tools->{$ResearchTool}->{FriendlyName}%></&></h2>
+<iframe src="<%$url%>" name="rtir_research_<%$m->notes('rtir_research_iframe_id')%>" style="width: 100%; height: 70%;">
+</iframe>
+<%args>
+$q =>  undef
+$TicketType => undef
+$TicketObj => undef
+$ResearchTool => undef
+</%args>
+<%init>
+return unless ($ResearchTool);
+my $research_tools = RT->Config->Get('RTIRIframeResearchToolConfig');
+my $url = $research_tools->{$ResearchTool}->{URL};
+warn $research_tools->{$ResearchTool}->{URL};
+$url =~ s/__SearchTerm__/$q/g;
+</%init>

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


More information about the Rt-commit mailing list