[Rt-commit] r10658 - in rt/branches/3.999-DANGEROUS/html: Elements SelfService SelfService/Elements Ticket Tools Tools/Reports

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 1 15:30:33 EST 2008


Author: ruz
Date: Fri Feb  1 15:30:25 2008
New Revision: 10658

Modified:
   rt/branches/3.999-DANGEROUS/html/Elements/SelectQueue
   rt/branches/3.999-DANGEROUS/html/Search/Elements/PickBasics
   rt/branches/3.999-DANGEROUS/html/SelfService/Create.html
   rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html
   rt/branches/3.999-DANGEROUS/html/SelfService/Display.html
   rt/branches/3.999-DANGEROUS/html/SelfService/Elements/Tabs
   rt/branches/3.999-DANGEROUS/html/Ticket/Display.html
   rt/branches/3.999-DANGEROUS/html/Tools/Offline.html
   rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html
   rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html
   rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByOwner.html

Log:
* Queue argument in html

Modified: rt/branches/3.999-DANGEROUS/html/Elements/SelectQueue
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/SelectQueue	(original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/SelectQueue	Fri Feb  1 15:30:25 2008
@@ -56,7 +56,7 @@
   <option value="">-</option>
 %     }
 %     for my $queue (@{$session{$cache_key}}) {
-  <option value="<% ($namedValues ? $queue->{name} : $queue->{id}) %>" 
+  <option value="<% ($named_values ? $queue->{name} : $queue->{id}) %>" 
   <% ($queue->{id} eq ($Default || '') ? 'selected="selected"' : '') |n %>>
     <%$queue->{name}%>
 %             if ($Verbose and $queue->{description}) {
@@ -72,7 +72,7 @@
 $ShowAllQueues => 1
 $name => undef
 $Verbose => undef
-$namedValues => 0
+$named_values => 0
 $Default => 0
 $Lite => 0
 </%args>

Modified: rt/branches/3.999-DANGEROUS/html/Search/Elements/PickBasics
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Search/Elements/PickBasics	(original)
+++ rt/branches/3.999-DANGEROUS/html/Search/Elements/PickBasics	Fri Feb  1 15:30:25 2008
@@ -89,7 +89,7 @@
         Value => {
             type => 'component',
             Path => '/Elements/SelectQueue',
-            Arguments => { namedValues => 1, CheckQueueRight => 'ShowTicket' },
+            Arguments => { named_values => 1, CheckQueueRight => 'ShowTicket' },
         },
     },
     {

Modified: rt/branches/3.999-DANGEROUS/html/SelfService/Create.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/Create.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/Create.html	Fri Feb  1 15:30:25 2008
@@ -109,9 +109,9 @@
 
 </form>
 <%args>
-$Queue => undef
+$queue => undef
 </%args>
 <%init>
 my $queue_obj = RT::Model::Queue->new();
-$queue_obj->load($Queue);
+$queue_obj->load($queue);
 </%init>

Modified: rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/CreateTicketInQueue.html	Fri Feb  1 15:30:25 2008
@@ -53,7 +53,7 @@
 % while (my $queue = $queues->next) {    
 % next unless $queue->current_user_has_right('CreateTicket');
 
-<dt><a href="<%RT->config->get('WebPath')%>/SelfService/Create.html?Queue=<%$queue->id%>"><%$queue->name%></a></dt>
+<dt><a href="<%RT->config->get('WebPath')%>/SelfService/Create.html?queue=<%$queue->id%>"><%$queue->name%></a></dt>
 <dd><%$queue->description%></dd>
 % }
 </dl>

Modified: rt/branches/3.999-DANGEROUS/html/SelfService/Display.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/Display.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/Display.html	Fri Feb  1 15:30:25 2008
@@ -124,13 +124,13 @@
 
     # {{{ Create a new ticket
 
-    my $Queue = RT::Model::Queue->new();
-    unless ( $Queue->load( $ARGS{'queue'} ) ) {
+    my $queue = RT::Model::Queue->new();
+    unless ( $queue->load( $ARGS{'queue'} ) ) {
         $m->comp( 'Error.html', Why => _('Queue not found') );
         $m->abort;
     }
 
-    unless ( $Queue->current_user_has_right('CreateTicket') ) {
+    unless ( $queue->current_user_has_right('CreateTicket') ) {
         $m->comp( 'Error.html',
             Why =>
               _('You have no permission to create tickets in that queue.') );

Modified: rt/branches/3.999-DANGEROUS/html/SelfService/Elements/Tabs
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/SelfService/Elements/Tabs	(original)
+++ rt/branches/3.999-DANGEROUS/html/SelfService/Elements/Tabs	Fri Feb  1 15:30:25 2008
@@ -89,7 +89,7 @@
                        };
 } else {
         $tabs->{C} = { title => _('New ticket'),
-                       path => 'SelfService/Create.html?Queue=' . $queue_id
+                       path => 'SelfService/Create.html?queue=' . $queue_id
                        };
 }
 

Modified: rt/branches/3.999-DANGEROUS/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Ticket/Display.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Ticket/Display.html	Fri Feb  1 15:30:25 2008
@@ -103,13 +103,13 @@
 if ($ARGS{'id'} eq 'new') {
     # {{{ Create a new ticket
 
-    my $Queue = RT::Model::Queue->new();
-    $Queue->load($ARGS{'queue'});
-    unless ( $Queue->id ) {
+    my $queue = RT::Model::Queue->new();
+    $queue->load($ARGS{'queue'});
+    unless ( $queue->id ) {
         abort('Queue not found');
     }
 
-    unless ( $Queue->current_user_has_right('CreateTicket') ) {
+    unless ( $queue->current_user_has_right('CreateTicket') ) {
         abort('You have no permission to create tickets in that queue.');
     }
 

Modified: rt/branches/3.999-DANGEROUS/html/Tools/Offline.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Offline.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Offline.html	Fri Feb  1 15:30:25 2008
@@ -62,7 +62,7 @@
 <&|/l&>Default Queue</&>:
 </td>
 <td>
-<& /Elements/SelectQueue, name => "qname", namedValues => 1 &>
+<& /Elements/SelectQueue, name => "qname", named_values => 1 &>
 <em><&|/l&>If no queue is specified, create tickets in this queue.</&></em>
 </td>
 </tr>

Modified: rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Reports/CreatedByDates.html	Fri Feb  1 15:30:25 2008
@@ -46,7 +46,7 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%args>
-$Queue => undef
+$queue => undef
 $CreatedBefore => undef
 $CreatedAfter => undef
 </%args>
@@ -68,14 +68,14 @@
 }
 
 
-$q->load_by_cols(name => $Queue);
+$q->load_by_cols(name => $queue);
 </%init>
 <& /Elements/Header, Title => $title &>
 <& /Tools/Reports/Elements/Tabs, current_tab => 'Tools/Reports/CreatedByDates.html', Title => $title &>
 <form method="post" action="CreatedByDates.html">
-% if ($Queue|| $CreatedBefore ||$CreatedAfter) {
+% if ($queue|| $CreatedBefore ||$CreatedAfter) {
 % # if we have a queue, do the search
-% if ($Queue) { $query .= " AND queue = '$Queue'"}
+% if ($queue) { $query .= " AND queue = '$queue'"}
 % if ($CreatedBefore) { $query .= " AND Created < '".$before->iso."'"; }
 % if ($CreatedAfter) { $query .= " AND Created > '".$after->iso."'"}
 % my $groupby = 'Status';
@@ -84,7 +84,7 @@
 
 <hr>
 
-<br /><&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', namedValues => 1, Default => $q->id &>
+<br /><&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', named_values => 1, Default => $q->id &>
 <br /><&|/l&>Tickets Created after</&>: 
 <input size="20" name="CreatedAfter" value="<%$CreatedAfter || ''%>" />
 <br /><&|/l&>Tickets Created before</&>: 

Modified: rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByDates.html	Fri Feb  1 15:30:25 2008
@@ -46,7 +46,7 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%args>
-$Queue => undef
+$queue => undef
 $ResolvedBefore => undef
 $ResolvedAfter => undef
 </%args>
@@ -68,15 +68,15 @@
 }
 
 
-$q->load_by_cols(name => $Queue);
+$q->load_by_cols(name => $queue);
 </%init>
 <& /Elements/Header, Title => $title &>
 <& /Tools/Reports/Elements/Tabs, current_tab => 'Tools/Reports/ResolvedByDates.html', Title => $title &>
 <form method="post" action="ResolvedByDates.html">
-% if ($Queue|| $ResolvedBefore ||$ResolvedAfter) {
+% if ($queue|| $ResolvedBefore ||$ResolvedAfter) {
 % # if we have a queue, do the search
 % $query = "Status = 'resolved'";
-% if ($Queue) { $query .= " AND queue = '$Queue'"}
+% if ($queue) { $query .= " AND queue = '$queue'"}
 % if ($ResolvedBefore) { $query .= " AND resolved < '".$before->iso."'"; }
 % if ($ResolvedAfter) { $query .= " AND resolved > '".$after->iso."'"}
 % my $groupby = 'Owner';
@@ -85,7 +85,7 @@
 
 <hr>
 
-<br /><&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', namedValues => 1, Default => $q->id &>
+<br /><&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', named_values => 1, Default => $q->id &>
 <br /><&|/l&>Tickets resolved after</&>: 
 <input size="20" name="ResolvedAfter" value="<%$ResolvedAfter || ''%>" />
 <br /><&|/l&>Tickets resolved before</&>: 

Modified: rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByOwner.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByOwner.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Tools/Reports/ResolvedByOwner.html	Fri Feb  1 15:30:25 2008
@@ -46,25 +46,25 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%args>
-$Queue => undef
+$queue => undef
 </%args>
 <%init>
 my $title = _("Resolved tickets, grouped by owner");
 my $q = RT::Model::Queue->new();
-$q->load_by_cols(name => $Queue);
+$q->load_by_cols(name => $queue);
 </%init>
 <& /Elements/Header, Title => $title &>
 <& /Tools/Reports/Elements/Tabs, current_tab => '/Tools/Reports/ResolvedByOwner.html', Title => $title &>
 <form method="post" action="ResolvedByOwner.html">
-% if ($Queue) {
+% if ($queue) {
 % # if we have a queue, do the search
-% my $query = "Status = 'resolved' AND queue = '$Queue'";
+% my $query = "Status = 'resolved' AND queue = '$queue'";
 % my $groupby = 'Owner';
 <& /Search/Elements/Chart, Query => $query, PrimaryGroupBy => $groupby &>
 % }
 
 <hr>
 
-<&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', namedValues => 1, Default => $q->id &>
+<&|/l&>Queue</&>: <& /Elements/SelectQueue, name => 'queue', named_values => 1, Default => $q->id &>
 <& /Elements/Submit&>
 </form>


More information about the Rt-commit mailing list