[Rt-commit] [rtir] 03/06: CSS classes on additional elements to aid in styling

Jesse Vincent jesse at bestpractical.com
Sun Mar 15 21:47:20 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit c73e407bec23aff780c6bcfe5d175e04e079c7eb
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Mar 15 18:45:30 2015 -0700

    CSS classes on additional elements to aid in styling
---
 html/RTIR/Display.html           |  2 +-
 html/RTIR/Edit.html              | 14 +++++++-------
 html/RTIR/Elements/ShowIncidents |  6 ++++--
 3 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index 0992c42..a862403 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -65,7 +65,7 @@
     title_href  => RT::IR->HREFTo("Edit.html?id=".$Ticket->Id),
     class => 'ticket-info-basics',
 &>
-<table>
+<table class="basics">
 % if (my $constituency = $Ticket->QueueObj->FirstCustomFieldValue('RTIR Constituency') ) {
   <tr>
     <td class="label"><% loc("Constituency") %>:</td>
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index c3d33c1..8ef5982 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -67,11 +67,11 @@
 <&| /Widgets/TitleBox, title => loc("The Basics"), class => 'ticket-info-basics' &>
 
 <table>
-  <tr>
+  <tr class="subject">
     <td class="label"><&|/l&>Subject</&>:</td>
     <td class="value"><input type="text" name="Subject" value="<% $ARGS{'Subject'} || $Ticket->Subject %>" size="50" /></td>
   </tr>
-  <tr>
+  <tr class="status">
     <td class="label"><&|/l&>Status</&>:</td>
     <td class="value" colspan="2">
 % unless ( $Ticket->QueueObj->Lifecycle eq RT::IR->lifecycle_countermeasure ) {
@@ -86,14 +86,14 @@
 % }
     </td>
   </tr>
-  <tr>
+  <tr class="owner">
     <td class="label"><&|/l&>Owner</&>:</td>
     <td class="value"><& /Elements/SelectOwner,
         Name => 'Owner', Default => $ARGS{'Owner'} || $Ticket->Owner,
         TicketObj => $Ticket, QueueObj => $Ticket->QueueObj,
     &></td>
   </tr>
-  <tr>
+  <tr class="queue">
     <td class="label"><&|/l&>Queue</&>:</td>
     <td class="value"><& /RTIR/Elements/SelectRTIRQueue,
         Name => 'Queue', Default => $ARGS{'Queue'} || $Ticket->Queue,
@@ -107,12 +107,12 @@
 
 
 % if ($Ticket->QueueObj->Lifecycle ne RT::IR->lifecycle_incident ) {
-  <tr>
+  <tr class="incidents">
     <td class="label"><%loc("Incident")%>:</td>
     <td class="value"><& /RTIR/Elements/ShowIncidents, Ticket => $Ticket &></td>
   </tr>
 % }
-  <tr>
+  <tr class="time-worked">
     <td class="label"><&|/l&>Time Worked</&>:</td>
     <td class="value"><& /Elements/EditTimeValue,
         Name => 'TimeWorked',
@@ -120,7 +120,7 @@
     &></td>
   </tr>
 % if ( $Ticket->QueueObj->Lifecycle eq RT::IR->lifecycle_incident) {
-  <tr>
+  <tr class="priority">
     <td class="label"><&|/l&>Priority</&>:</td>
     <td class="value"><&/Elements/SelectPriority, Name => 'Priority', Default => $ARGS{'Priority'} || $Ticket->Priority &></td>
   </tr>
diff --git a/html/RTIR/Elements/ShowIncidents b/html/RTIR/Elements/ShowIncidents
index a50da59..658c334 100644
--- a/html/RTIR/Elements/ShowIncidents
+++ b/html/RTIR/Elements/ShowIncidents
@@ -45,6 +45,7 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
+<span class="incidents">
 <& /RTIR/Search/Elements/ShowResults,
     Query         => $query,
     Rows          => 0,
@@ -54,14 +55,15 @@
     ShowHeader    => 0,
     EmptyLabel    => loc('(no Incidents)'),
 &>
-
+<div class="actions">
 % unless ( $action ) {
 <b><a href="<% RT::IR->HREFTo('Link/ToIncident/?id='. $id ) %>">[Link]</a></b>
 <b><a href="<% RT::IR->HREFTo('Incident/Create.html?Child='. $id ) %>">[New]</a></b>
 % } elsif ( $action ne 'No' ) {
 <a href="<% RT::IR->HREFTo('Display.html?Action='. $action.'&id='. $id) %>">[<% loc( $action ) %>]</a>
 % }
-
+</div>
+</span>
 <%INIT>
 my $id = $Ticket->id;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list