[Rt-devel] Ticket Creation Titile

Kevin Falcone falcone at bestpractical.com
Tue Sep 13 15:02:37 EDT 2011


On Mon, Sep 12, 2011 at 10:53:43AM -0400, Christopher Lasater wrote:
>                This is not exactly an exciting request, but can there be more of a title on a ticket creation page to make it more clear to users.  Currently if a Privileged user wants to create a ticket they select the queue in the drop down menu and it takes them to a page for creating it.  At that point the drop down returns to default and the only sign of what queue they are in is the smallest writing on the page.  Can a title be added to the top?  Or can the Create a new ticket  be changed to Create a new ticket in <queue name>?  By moving the my $title line below the $QueueObj and adding the name it seems to work well. 
> 

If you want the dropdown to stick to the last queue you selected,
there's a user and global preference for that (RememberDefaultQueue).

If you wanted to send a patch to rt-bugs, I'd want to see how it
changes the UI.  Please note that adding queue names into a loc()ed
string will break translations of RT.  You need to do the [_1] tricks
you see elsewhere in the source.

-kevin

> 
> #Original
> 
> # Around line 358 in rt4/share/html/Ticket/Create.html
> 
>  
> 
> my @results;
> 
>  
> 
> my $title = loc("Create a new ticket");
> 
>  
> 
> my $QueueObj = RT::Queue->new($session{'CurrentUser'});
> 
> $QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
> 
>  
> 
> $m->callback( QueueObj => $QueueObj, title => \$title, results => \@results, ARGSRef => \%ARGS );
> 
>  
> 
> __________________________________________________________________________
> #Modified
> 
>  
> 
> my @results;
> 
>  
> 
> my $QueueObj = RT::Queue->new($session{'CurrentUser'});
> 
> $QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));
> 
>  
> 
> my $title = loc("Create a new ticket in " . $QueueObj->Name);
> 
>  
> 
> $m->callback( QueueObj => $QueueObj, title => \$title, results => \@results, ARGSRef => \%ARGS );
> 
>  
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20110913/5b732a0d/attachment.pgp>


More information about the rt-devel mailing list