[Rt-commit] r11187 - in rt/branches/3.8-TESTING: . html html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Tue Mar 25 19:29:39 EDT 2008


Author: jesse
Date: Tue Mar 25 19:29:38 2008
New Revision: 11187

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/html/Elements/QuickCreate
   rt/branches/3.8-TESTING/html/NoAuth/css/web2/layout.css
   rt/branches/3.8-TESTING/html/NoAuth/css/web2/main.css
   rt/branches/3.8-TESTING/html/NoAuth/css/web2/ticket-lists.css
   rt/branches/3.8-TESTING/html/index.html

Log:
 r28592 at 238:  jesse | 2008-03-25 19:29:25 -0400
 The "CreateTicket" widget now supports ticket bodies


Modified: rt/branches/3.8-TESTING/html/Elements/QuickCreate
==============================================================================
--- rt/branches/3.8-TESTING/html/Elements/QuickCreate	(original)
+++ rt/branches/3.8-TESTING/html/Elements/QuickCreate	Tue Mar 25 19:29:38 2008
@@ -50,21 +50,24 @@
 <form method="post" action="<%RT->Config->Get('WebPath')%>/index.html">
 <input type="hidden" class="hidden" name="QuickCreate" value="1" />
 <table>
-<tr><td>
-<&|/l&>Subject</&>:<br /><input size="15" name="Subject" />
+<tr class="input-row"><td class="label">
+    <&|/l&>Subject</&>
+    </td>
+    <td class="value"><input size="15" name="Subject" /></td>
+<td class="label"><&|/l&>Queue</&></td><td class="value"><& /Elements/SelectNewTicketQueue, Name => 'Queue', ShowNullOption => 0 &>
 </td><td>
-<&|/l&>Queue</&>:<br /><& /Elements/SelectNewTicketQueue, Name => 'Queue', ShowNullOption => 0 &>
-</td><td>
-<&|/l&>Owner</&>:<br />
+<td class="label"><&|/l&>Owner</&></td><td class="value">
 <select type="select" name="Owner">  
 <option value="<%$session{'CurrentUser'}->id%>" selected><%$session{'CurrentUser'}->Name %></option>
 <option value="<%$RT::Nobody->id%>"><%loc('Nobody')%></option>
 </select>
 </td>
 </tr>
-%#<tr><td colspan="3"><textarea cols="50" rows="3"></textarea></td></tr>
+<tr class="input-row">
+<td class="label"><&|/l&>Content</&></td>
+<td colspan="6" class="value"><textarea name="Content"cols="50" rows="3"></textarea></td></tr>
 </table>
-<div align="right"><input type="submit" class="button" value="<%loc('Create')%>" /></div>
+<& /Elements/Submit, Label => loc('Create') &>
 </form>
 </&>
 </div>

Modified: rt/branches/3.8-TESTING/html/NoAuth/css/web2/layout.css
==============================================================================
--- rt/branches/3.8-TESTING/html/NoAuth/css/web2/layout.css	(original)
+++ rt/branches/3.8-TESTING/html/NoAuth/css/web2/layout.css	Tue Mar 25 19:29:38 2008
@@ -12,9 +12,8 @@
 }
 
 div#body {
-    padding-right: 1em;
+    padding: 1em;
     padding-top: 1.5em;
-    padding-bottom: 1em;
     -moz-border-radius: 0.5em;
     -webkit-border-radius: 0.5em;
     margin-left: 9.8em;

Modified: rt/branches/3.8-TESTING/html/NoAuth/css/web2/main.css
==============================================================================
--- rt/branches/3.8-TESTING/html/NoAuth/css/web2/main.css	(original)
+++ rt/branches/3.8-TESTING/html/NoAuth/css/web2/main.css	Tue Mar 25 19:29:38 2008
@@ -11,4 +11,6 @@
 @import "ticket-lists.css";
 @import "ticket-search.css";
 @import "portlets.css";
- at import "ticket.css";
\ No newline at end of file
+ at import "ticket.css";
+ at import "misc.css";
+

Modified: rt/branches/3.8-TESTING/html/NoAuth/css/web2/ticket-lists.css
==============================================================================
--- rt/branches/3.8-TESTING/html/NoAuth/css/web2/ticket-lists.css	(original)
+++ rt/branches/3.8-TESTING/html/NoAuth/css/web2/ticket-lists.css	Tue Mar 25 19:29:38 2008
@@ -10,7 +10,6 @@
 
 
 th.collection-as-table {
- background: #eee;
  font-size: 0.9em;
   margin-bottom: 0.5em;
   text-align: left;
@@ -18,7 +17,7 @@
 }
 
 tr.collection-as-table+tr.collection-as-table th {
- border-bottom: 1px solid grey;
+ border-bottom: 2px solid grey;
 
 }
 
@@ -44,8 +43,12 @@
 
 
 
-tr.oddline td {
+tr.evenline td {
   background: #eee;
+}
+
+tr.oddline td {
+  background: #fff;
 
 }
 

Modified: rt/branches/3.8-TESTING/html/index.html
==============================================================================
--- rt/branches/3.8-TESTING/html/index.html	(original)
+++ rt/branches/3.8-TESTING/html/index.html	Tue Mar 25 19:29:38 2008
@@ -84,14 +84,17 @@
 my @results;
 
 if ( $ARGS{'QuickCreate'} ) {
-    my $ticket = RT::Ticket->new($session{'CurrentUser'});
-    my ($tid, $trans, $tmsg) = $ticket->Create(Queue => $ARGS{'Queue'},
+    my ($t, $msg) = CreateTicket( 
+                    Queue => $ARGS{'Queue'},
                     Owner => $ARGS{'Owner'},
+                    Status => 'new',
                     Requestor => $session{'CurrentUser'}->id,
+                    From => $session{'CurrentUser'}->id,
+                    Content => $ARGS{'Content'},
                     Subject => $ARGS{'Subject'});
 
 
-    push (@results, $tmsg);
+    push (@results, $msg);
 }
 
 


More information about the Rt-commit mailing list