[Bps-public-commit] r10989 - RT-Extension-Reports/html/Reports/Types

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Mar 4 07:54:49 EST 2008


Author: sunnavy
Date: Tue Mar  4 07:54:48 2008
New Revision: 10989

Modified:
   RT-Extension-Reports/html/Reports/Types/ActiveOrInactive
   RT-Extension-Reports/html/Reports/Types/CreatedOrResolved
   RT-Extension-Reports/html/Reports/Types/General

Log:
updated all types for select out type

Modified: RT-Extension-Reports/html/Reports/Types/ActiveOrInactive
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/ActiveOrInactive	(original)
+++ RT-Extension-Reports/html/Reports/Types/ActiveOrInactive	Tue Mar  4 07:54:48 2008
@@ -74,10 +74,14 @@
 <td><& /Reports/Elements/EditFilter, Content => $Filter, Name => 'Filter' &></td>
 </tr>
 <tr><td /><td>
+<& /Reports/Elements/SelectOutType, Name => 'OutType' &>
+</td>
+</tr>
+<tr>
+<td />
+<td>
 <input type="hidden" name="Run" value=1>
-<input type="submit" name="screen" value="Submit" />
-<input type="submit" name="csv" value="CSV File" />
-<input type="submit" name="chart" value="Chart" />
+<input type="submit" value="submit" />
 </td>
 </tr>
 <table>
@@ -183,11 +187,11 @@
         }
     }
 
-    if ( $ARGS{csv} ) {
+    if ( $ARGS{OutType} eq 'csv' ) {
         $m->comp( '/Reports/Elements/ShowResults', Headers => \@headers,
 Results => \@results, Type => 'csv' );
     }
-    elsif ( $ARGS{chart} ) {
+    elsif ( $ARGS{OutType} eq 'chart' ) {
         for ( @results ) {
             splice @$_, 0, 2, $_->[1] ? ( join ':', @$_[0 .. 1] ) : $_->[0];
         }

Modified: RT-Extension-Reports/html/Reports/Types/CreatedOrResolved
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/CreatedOrResolved	(original)
+++ RT-Extension-Reports/html/Reports/Types/CreatedOrResolved	Tue Mar  4 07:54:48 2008
@@ -75,10 +75,14 @@
 <td><& /Reports/Elements/EditFilter, Content => $Filter, Name => 'Filter' &></td>
 </tr>
 <tr><td /><td>
+<& /Reports/Elements/SelectOutType, Name => 'OutType' &>
+</td>
+</tr>
+<tr>
+<td />
+<td>
 <input type="hidden" name="Run" value=1>
-<input type="submit" name="screen" value="Submit" />
-<input type="submit" name="csv" value="CSV File" />
-<input type="submit" name="chart" value="Chart" />
+<input type="submit" value="submit" />
 </td>
 </tr>
 <table>
@@ -177,11 +181,11 @@
         }
     }
 
-    if ( $ARGS{csv} ) {
+    if ( $ARGS{OutType} eq 'csv' ) {
         $m->comp( '/Reports/Elements/ShowResults', Headers => \@headers,
 Results => \@results, Type => 'csv' );
     }
-    elsif ( $ARGS{chart} ) {
+    elsif ( $ARGS{OutType} eq 'chart' ) {
         for ( @results ) {
             splice @$_, 0, 2, $_->[1] ? ( join ':', @$_[0 .. 1] ) : $_->[0];
         }

Modified: RT-Extension-Reports/html/Reports/Types/General
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/General	(original)
+++ RT-Extension-Reports/html/Reports/Types/General	Tue Mar  4 07:54:48 2008
@@ -66,10 +66,14 @@
 <td><& /Reports/Elements/EditFilter, Content => $Filter, Name => 'Filter' &></td>
 </tr>
 <tr><td /><td>
+<& /Reports/Elements/SelectOutType, Name => 'OutType' &>
+</td>
+</tr>
+<tr>
+<td />
+<td>
 <input type="hidden" name="Run" value=1>
-<input type="submit" name="screen" value="Submit" />
-<input type="submit" name="csv" value="CSV File" />
-<input type="submit" name="chart" value="Chart" />
+<input type="submit" value="submit" />
 </td>
 </tr>
 <table>
@@ -158,11 +162,11 @@
         }
     }
 
-    if ( $ARGS{csv} ) {
+    if ( $ARGS{OutType} eq 'csv' ) {
         $m->comp( '/Reports/Elements/ShowResults', Headers => \@headers,
 Results => \@results, Type => 'csv' );
     }
-    elsif ( $ARGS{chart} ) {
+    elsif ( $ARGS{OutType} eq 'chart' ) {
         for ( @results ) {
             splice @$_, 0, 2, $_->[1] ? ( join ':', @$_[0 .. 1] ) : $_->[0];
         }



More information about the Bps-public-commit mailing list