[Rt-commit] r17078 - in rtir/2.4/trunk/html/RTIR: . Incident Incident/Elements Investigation/Elements NoAuth
ruz at bestpractical.com
ruz at bestpractical.com
Wed Dec 3 01:33:50 EST 2008
Author: ruz
Date: Wed Dec 3 01:33:50 2008
New Revision: 17078
Modified:
rtir/2.4/trunk/html/RTIR/Create.html
rtir/2.4/trunk/html/RTIR/Display.html
rtir/2.4/trunk/html/RTIR/Edit.html
rtir/2.4/trunk/html/RTIR/Incident/Create.html
rtir/2.4/trunk/html/RTIR/Incident/Display.html
rtir/2.4/trunk/html/RTIR/Incident/Edit.html
rtir/2.4/trunk/html/RTIR/Incident/Elements/ShowChildren
rtir/2.4/trunk/html/RTIR/Investigation/Elements/Create
rtir/2.4/trunk/html/RTIR/NoAuth/webrtir.css
rtir/2.4/trunk/html/RTIR/Tools/Lookup.html
Log:
* apply classes on some boxes to be on the same wave as RT
Modified: rtir/2.4/trunk/html/RTIR/Create.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Create.html (original)
+++ rtir/2.4/trunk/html/RTIR/Create.html Wed Dec 3 01:33:50 2008
@@ -71,7 +71,7 @@
<& /Elements/GnuPG/SignEncryptWidget:ShowIssues, self => $gnupg_widget &>
-<&| /Widgets/TitleBox, contentbg => "#cccccc", title => $Title &>
+<&| /Widgets/TitleBox, title => $Title &>
<table border="0" cellpadding="0" cellspacing="2">
% if ( $Incident ) {
<tr>
@@ -319,10 +319,7 @@
</tr>
<tr>
<td valign="top" colspan="3">
- <&| /Widgets/TitleBox, title => loc("Dates"),
- title_class=> 'inverse',
- color => "#663366",
- &>
+ <&| /Widgets/TitleBox, title => loc("Dates"), class => 'ticket-info-dates' &>
<table border="0">
<tr>
<td align="right"><&|/l&>Starts</&>:</td>
Modified: rtir/2.4/trunk/html/RTIR/Display.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Display.html (original)
+++ rtir/2.4/trunk/html/RTIR/Display.html Wed Dec 3 01:33:50 2008
@@ -32,12 +32,14 @@
% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $Ticket);
<& /Elements/ListActions, actions => \@results &>
-<table border="0" cellpadding="0" cellspacing="2" width="100%">
+<table class="ticket-summary" width="100%">
<tr>
-<td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc("The Basics"),
- title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$Ticket->Id,
- title_class => 'inverse' &>
+<td class="boxcontainer" valign="top">
+<&| /Widgets/TitleBox,
+ title => loc("The Basics"),
+ title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$Ticket->Id,
+ class => 'ticket-info-basics',
+&>
<table>
<tr>
@@ -146,10 +148,11 @@
</&>
% if ($RT::FM::VERSION) {
-<&| /Widgets/TitleBox, title => loc("Articles"),
+<&| /Widgets/TitleBox,
+ title => loc("Articles"),
title_href => RT->Config->Get('WebPath') ."/RTIR/Advanced.html?id=".$id,
- title_class=> 'inverse',
- color => "#663366" &>
+ class=> 'ticket-info-articles',
+&>
% if ($Ticket->CurrentUserHasRight('ModifyTicket')) {
% my $qs = $m->comp("/Elements/QueryString", "RefersTo-new" => "t:$id", next => "/RTIR/Display.html?id=$id");
@@ -168,31 +171,30 @@
</&>
% }
-</td> <td valign="top" width="50%">
-%# </td> </tr> <tr> <td valign="top" width="50%">
- <&| /Widgets/TitleBox, title => loc('People'),
+</td> <td class="boxcontainer" valign="top">
+ <&| /Widgets/TitleBox,
+ title => loc('People'),
title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=". $Ticket->Id,
- title_class => 'inverse' &>
+ class => 'ticket-info-people',
+ &>
<& /RTIR/Elements/ShowPeople, Ticket => $Ticket &>
</&>
- <br />
-%# </td> <td>
- <br />
- <&| /Widgets/TitleBox, title => loc("Dates"),
- title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=". $Ticket->Id,
- title_class => 'inverse',
- color => "#663366" &>
- <& /RTIR/Elements/ShowDates, Ticket => $Ticket &>
- </&>
- <br />
+ <br /><br />
+ <&| /Widgets/TitleBox, title => loc("Dates"),
+ title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=". $Ticket->Id,
+ class => 'ticket-info-dates',
+ &>
+ <& /RTIR/Elements/ShowDates, Ticket => $Ticket &>
+ </&>
+ <br />
</td>
</tr>
<tr>
- <td valign="top" width="50%">
+ <td class="boxcontainer" valign="top">
<& /Ticket/Elements/ShowAttachments, Ticket => $Ticket,
Attachments => $attachments &>
</td>
- <td valign="top" width="50%">
+ <td class="boxcontainer" valign="top">
<& /Ticket/Elements/ShowRequestor, Ticket => $Ticket, DisplayPath => '/RTIR/Display.html' &>
</td>
</tr>
Modified: rtir/2.4/trunk/html/RTIR/Edit.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Edit.html (original)
+++ rtir/2.4/trunk/html/RTIR/Edit.html Wed Dec 3 01:33:50 2008
@@ -44,9 +44,10 @@
<tr>
<td valign="top" width="50%">
<&| /Widgets/TitleBox,
- title => loc("The Basics"),
- color=> "#993333",
- width => "100%" &>
+ title => loc("The Basics"),
+ class => 'ticket-info-basics',
+ width => "100%",
+&>
<table>
<tr>
@@ -205,7 +206,7 @@
<tr>
<td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Dates'), width => "100%", color => "#663366" &>
+<&| /Widgets/TitleBox, title => loc('Dates'), width => "100%", class => 'ticket-info-dates' &>
<& /RTIR/Elements/EditDates, TicketObj => $Ticket &>
</&>
@@ -215,7 +216,7 @@
<br />
-<&| /Widgets/TitleBox, title => loc('People'),width => "100%", color=> "#333399" &>
+<&| /Widgets/TitleBox, title => loc('People'),width => "100%", class => 'ticket-info-people' &>
<& /RTIR/Elements/EditPeople, Ticket => $Ticket, UserField => $UserField, UserString => $UserString, UserOp => $UserOp &>
</&>
Modified: rtir/2.4/trunk/html/RTIR/Incident/Create.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Incident/Create.html (original)
+++ rtir/2.4/trunk/html/RTIR/Incident/Create.html Wed Dec 3 01:33:50 2008
@@ -64,7 +64,7 @@
<& /Elements/GnuPG/SignEncryptWidget:ShowIssues, self => $gnupg_widget &>
-<&| /Widgets/TitleBox, title => $Title &>
+<&| /Widgets/TitleBox, title => $Title, class => 'ticket-info-basics' &>
<table border="0" cellpadding="0" cellspacing="2">
% if ( $TicketObj ) {
@@ -131,8 +131,7 @@
<&| /Widgets/TitleBox,
title => loc('The Basics'),
- title_class => 'inverse',
- color => "#993333",
+ class => 'ticket-info-basics',
&>
<table border="0">
<tr><td align="right"><&|/l&>Priority</&>:</td>
@@ -151,8 +150,7 @@
<&| /Widgets/TitleBox,
title => loc("Dates"),
- title_class=> 'inverse',
- color => "#663366",
+ class=> 'ticket-info-dates',
&>
<table border="0">
Modified: rtir/2.4/trunk/html/RTIR/Incident/Display.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Incident/Display.html (original)
+++ rtir/2.4/trunk/html/RTIR/Incident/Display.html Wed Dec 3 01:33:50 2008
@@ -33,11 +33,13 @@
% $m->callback(CallbackName => 'BeforeActionList', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
<& /Elements/ListActions, actions => \@results &>
-<table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td valign="top" width="50%">
+<table class="ticket-summary" width="100%"><tr><td class="boxcontainer" valign="top">
-<&| /Widgets/TitleBox, title => loc('Incident #[_1]', $id),
- title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$id,
- title_class=> 'inverse' &>
+<&| /Widgets/TitleBox,
+ title => loc('Incident #[_1]', $id),
+ title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$id,
+ class=> 'ticket-info-basics',
+&>
<table>
<tr>
@@ -121,33 +123,34 @@
</&>
-</td><td valign="top">
+</td><td class="boxcontainer" valign="top">
<& /RTIR/Incident/Elements/ShowChildren,
IncidentObj => $TicketObj,
Queue => 'Incident Reports',
&>
-</td></tr><tr><td valign="top" width="50%">
+</td></tr><tr><td class="boxcontainer" valign="top">
<& /RTIR/Incident/Elements/ShowChildren,
IncidentObj => $TicketObj,
Queue => 'Investigations',
&>
-</td><td valign="top" width="50%">
+</td><td class="boxcontainer" valign="top">
<& /RTIR/Incident/Elements/ShowChildren,
IncidentObj => $TicketObj,
Queue => 'Blocks',
&>
-</td></tr><tr><td valign="top" width="50%">
+</td></tr><tr><td class="boxcontainer" valign="top">
-<&| /Widgets/TitleBox, title => loc("Dates"),
+<&| /Widgets/TitleBox,
+ title => loc("Dates"),
title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$id,
- title_class=> 'inverse',
- color => "#663366" &>
+ class => 'ticket-info-dates',
+&>
<& /RTIR/Elements/ShowDates, Ticket => $TicketObj &>
</&>
@@ -156,13 +159,14 @@
<& /Ticket/Elements/ShowAttachments, Ticket => $TicketObj, Attachments => $attachments &>
<& /Ticket/Elements/ShowRequestor, Ticket => $TicketObj, DisplayPath => "/RTIR/Display.html" &>
-</td><td valign="top" width="50%">
+</td><td class="boxcontainer" valign="top">
% if ($RT::FM::VERSION) {
-<&| /Widgets/TitleBox, title => loc("Articles"),
+<&| /Widgets/TitleBox,
+ title => loc("Articles"),
title_href => RT->Config->Get('WebPath') ."/RTIR/Advanced.html?id=".$id,
- title_class=> 'inverse',
- color => "#663366" &>
+ class=> 'ticket-info-articles',
+&>
% if ($TicketObj->CurrentUserHasRight('ModifyTicket')) {
% my $qs = $m->comp("/Elements/QueryString", "RefersTo-new" => "t:$id", next => "/RTIR/Display.html?id=$id");
Modified: rtir/2.4/trunk/html/RTIR/Incident/Edit.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Incident/Edit.html (original)
+++ rtir/2.4/trunk/html/RTIR/Incident/Edit.html Wed Dec 3 01:33:50 2008
@@ -44,7 +44,7 @@
<table border="0" cellspacing="2" cellpadding="0" width="100%">
<tr>
<td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Modify incident # [_1]', $Ticket->Id), color=> "#993333", width => "100%" &>
+<&| /Widgets/TitleBox, title => loc('Modify incident # [_1]', $Ticket->Id), class => 'ticket-info-basics' &>
<table>
<tr>
@@ -148,7 +148,7 @@
<tr>
<td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Dates'), width => "100%", color => "#663366" &>
+<&| /Widgets/TitleBox, title => loc('Dates'), class => 'ticket-info-dates' &>
<& /RTIR/Elements/EditDates, TicketObj => $Ticket &>
</&>
Modified: rtir/2.4/trunk/html/RTIR/Incident/Elements/ShowChildren
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Incident/Elements/ShowChildren (original)
+++ rtir/2.4/trunk/html/RTIR/Incident/Elements/ShowChildren Wed Dec 3 01:33:50 2008
@@ -6,7 +6,7 @@
titleright_href => RT->Config->Get('WebPath') ."/RTIR/Incident/ShowChildren.html?Queue=". $EscapedQueue ."&id=".$id )
: (),
),
- title_class => 'inverse',
+ class => 'tickets-list-'. lc(RT::IR::TicketType( Queue => $Queue )),
&>
% if ( $IncidentObj->CurrentUserHasRight('ModifyTicket') ) {
Modified: rtir/2.4/trunk/html/RTIR/Investigation/Elements/Create
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Investigation/Elements/Create (original)
+++ rtir/2.4/trunk/html/RTIR/Investigation/Elements/Create Wed Dec 3 01:33:50 2008
@@ -99,7 +99,7 @@
% unless ( $SkipField{'DateFields'} ) {
<tr><td> </td><td valign="top"><&| /Widgets/TitleBox,
title => loc("Dates"),
- title_class=> 'inverse',
+ class=> 'ticket-info-dates',
&><table>
<tr><td class="label"><&|/l&>Starts</&>:</td>
Modified: rtir/2.4/trunk/html/RTIR/NoAuth/webrtir.css
==============================================================================
--- rtir/2.4/trunk/html/RTIR/NoAuth/webrtir.css (original)
+++ rtir/2.4/trunk/html/RTIR/NoAuth/webrtir.css Wed Dec 3 01:33:50 2008
@@ -42,6 +42,13 @@
#topactions { min-width: 44em; }
+%# TODO: the following should be filled with some values
+%# .ticket-info-articles .titlebox-title .left { background-color: #XXX; color: #XXX; }
+%# .tickets-list-report .titlebox-title .left { background-color: #XXX; color: #XXX; }
+%# .tickets-list-incident .titlebox-title .left { background-color: #XXX; color: #XXX; }
+%# .tickets-list-investigation .titlebox-title .left { background-color: #XXX; color: #XXX; }
+%# .tickets-list-block .titlebox-title .left { background-color: #XXX; color: #XXX; }
+
% $m->abort;
<%INIT>
$r->content_type('text/css');
Modified: rtir/2.4/trunk/html/RTIR/Tools/Lookup.html
==============================================================================
--- rtir/2.4/trunk/html/RTIR/Tools/Lookup.html (original)
+++ rtir/2.4/trunk/html/RTIR/Tools/Lookup.html Wed Dec 3 01:33:50 2008
@@ -31,7 +31,7 @@
&>
% if ( $ticket ) {
-<&| /Widgets/TitleBox, title => loc("Current [_1]: #[_2]", $TicketType, $ticket), color=> "#993333" &>
+<&| /Widgets/TitleBox, title => loc("Current [_1]: #[_2]", $TicketType, $ticket), class => 'ticket-info-basics' &>
<& /Elements/TicketList, Query => "id = $ticket", Format => $Format, ShowNavigation => 0 &>
</&>
% }
@@ -40,7 +40,7 @@
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr><td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Incidents: [_1]', $q) &>
+<&| /Widgets/TitleBox, title => loc('Incidents: [_1]', $q), class => 'tickets-list-incident' &>
<& /RTIR/Elements/IncidentSummary,
Type => $TicketType,
ticket => $ticket,
@@ -51,7 +51,7 @@
</td><td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Investigations: [_1]', $q) &>
+<&| /Widgets/TitleBox, title => loc('Investigations: [_1]', $q), class => 'tickets-list-investigation' &>
<& /RTIR/Elements/ChildSummary,
Queue => 'Investigations',
Type => $TicketType,
@@ -63,7 +63,7 @@
</td></tr><tr><td valign="top" width="50%">
-<&| /Widgets/TitleBox, title => loc('Incident Reports: [_1]', $q) &>
+<&| /Widgets/TitleBox, title => loc('Incident Reports: [_1]', $q), class => 'tickets-list-report' &>
<& /RTIR/Elements/ChildSummary,
Queue => 'Incident Reports',
Type => $TicketType,
@@ -76,7 +76,7 @@
</td><td width="50%" valign="top">
% unless ( RT->Config->Get('RTIR_DisableBlocksQueue') ) {
-<&| /Widgets/TitleBox, title => loc('Blocks: [_1]', $q) &>
+<&| /Widgets/TitleBox, title => loc('Blocks: [_1]', $q), class => 'tickets-list-block' &>
<& /RTIR/Elements/ChildSummary,
Queue => 'Blocks',
Type => $TicketType,
More information about the Rt-commit
mailing list