[Bps-public-commit] rt-extension-mobileui branch, master, updated. 38f42d2e3b72dd07c8887a3afd1fc4623ff493b1

Jesse Vincent jesse at bestpractical.com
Thu Aug 5 14:20:24 EDT 2010


The branch, master has been updated
       via  38f42d2e3b72dd07c8887a3afd1fc4623ff493b1 (commit)
      from  67de8fa5b0f88b7b299b24c2102e7ea5bad8a872 (commit)

Summary of changes:
 html/m/_elements/raw_style |   23 +++++++++++++++++++++++
 html/m/ticket/create       |   18 ++++++------------
 html/m/ticket/history      |    2 +-
 html/m/ticket/reply        |    8 ++++----
 4 files changed, 34 insertions(+), 17 deletions(-)

- Log -----------------------------------------------------------------
commit 38f42d2e3b72dd07c8887a3afd1fc4623ff493b1
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Aug 5 11:22:23 2010 -0700

    tighten up styles

diff --git a/html/m/_elements/raw_style b/html/m/_elements/raw_style
index 399e9d8..ef0acc2 100644
--- a/html/m/_elements/raw_style
+++ b/html/m/_elements/raw_style
@@ -250,6 +250,19 @@ ul.menu form input{
     width: 100%;
 }
 
+#ticket-create .label:after {
+   content: ": "; 
+    padding-right: 0.25em;
+
+}
+
+#ticket-create .content-label {
+    width: auto;
+    display: block;
+    text-align: left;
+    
+}
+
 .history ul.history-list {
     padding: 0;
     margin: 0;
@@ -267,6 +280,13 @@ ul.menu form input{
     padding: 0.5em;
 }
 
+.history .age {
+    display: inline-block;
+    min-width: 8em;
+    text-align: right;
+
+}
+
 div#login-box div.titlebox {
     width: 100%;
     margin-left:auto;
@@ -333,6 +353,8 @@ div.txn-content {
     font-size:0.8em;
     padding-left:1em;
     padding-top:0.5em;
+    margin-top: 0.5em;
+    margin-left: 2em;
     padding-bottom: 0.5em;
     border-left: 5px solid #00c;
 
@@ -344,6 +366,7 @@ div.txn-content {
     color: #666;
     display: inline-block;
     padding-bottom: 0.2em;
+    padding-right: 0.2em;
     
 }
 
diff --git a/html/m/ticket/create b/html/m/ticket/create
index 557887e..7c23194 100644
--- a/html/m/ticket/create
+++ b/html/m/ticket/create
@@ -205,7 +205,7 @@ if ((!exists $ARGS{'AddMoreAttach'}) and (defined($ARGS{'id'}) and $ARGS{'id'} e
 </%init>
 <&| /m/_elements/wrapper, title => $title &>
 <& /Elements/ListActions, actions => \@results  &>
-<form action="<% RT->Config->Get('WebPath') %>/m/ticket/create" method="post" enctype="multipart/form-data" name="TicketCreate">
+<form action="<% RT->Config->Get('WebPath') %>/m/ticket/create" method="post" enctype="multipart/form-data" name="TicketCreate" id="ticket-create">
 <input type="hidden" class="hidden" name="id" value="new" />
 % $m->callback( CallbackName => 'FormStart', QueueObj => $QueueObj, ARGSRef => \%ARGS );
 % if ($gnupg_widget) {
@@ -218,20 +218,14 @@ if ((!exists $ARGS{'AddMoreAttach'}) and (defined($ARGS{'id'}) and $ARGS{'id'} e
 
 <%perl>
 $showrows->(
-    loc("Subject") => '<input name="Subject" size="30" maxsize="200" value="'.($ARGS{Subject} || '').'" />',
-    loc("Describe the issue below") =>
-        $m->scomp(
-        "/Elements/MessageBox", exists $ARGS{Content}  ? (Default => $ARGS{Content}, IncludeSignature => 0 ) : 
-( QuoteTransaction => $QuoteTransaction ),
-    Height => 5
-
-
-));
+    loc("Subject") => '<input name="Subject" size="30" maxsize="200" value="'.($ARGS{Subject} || '').'" />');
+</%perl>
+    <span class="content-label label"><%loc("Describe the issue below")%></span>
+        <& /Elements/MessageBox, exists $ARGS{Content}  ? (Default => $ARGS{Content}, IncludeSignature => 0 ) : ( QuoteTransaction => $QuoteTransaction ), Height => 5  &>
 
 
-$m->comp("/Elements/Submit", Label => loc("Create"));
+<&/Elements/Submit, Label => loc("Create") &>
 
-</%perl>
 
 </&>
 </div>
diff --git a/html/m/ticket/history b/html/m/ticket/history
index 2aad33c..a49945d 100644
--- a/html/m/ticket/history
+++ b/html/m/ticket/history
@@ -13,7 +13,7 @@ my $history = $t->Transactions()->ItemsArrayRef;
 <ul class="history-list">
 % for my $entry (reverse @$history) {
 <li>
-<% $entry->CreatedObj->AgeAsString() %> -
+<span class="age"><% $entry->CreatedObj->AgeAsString() %></span> -
 <& /Elements/ShowUser, User => $entry->CreatorObj &> - 
 <%$entry->BriefDescription%>
 % if ($entry->Type !~ /EmailRecord/) {
diff --git a/html/m/ticket/reply b/html/m/ticket/reply
index 55eeb83..8ba1d4c 100644
--- a/html/m/ticket/reply
+++ b/html/m/ticket/reply
@@ -23,13 +23,13 @@
     Default      => $ARGS{'Owner'}
 &>
 </div></div>
-<div class="entry"><span class="label"><&|/l&>Worked</&>:</span><div class="value">
+<div class="entry timefield"><span class="label"><&|/l&>Worked</&>:</span><span class="value">
 <& /Elements/EditTimeValue,
     Name => 'UpdateTimeWorked',
     Default => $ARGS{UpdateTimeWorked}||'',
     InUnits => $ARGS{'UpdateTimeWorked-TimeUnits'}||'minutes',
 &>
-</div></div>
+</span></div>
 <input type="hidden" class="hidden" name="id" value="<%$t->Id%>" /><br />
 <div class="entry"><span class="label"><&|/l&>Update Type</&>:</span>
 <div class="value"><select name="UpdateType">
@@ -45,9 +45,9 @@
 % $m->callback( %ARGS, CallbackName => 'AfterSubject' );
 </div></div>
 
-<div class="entry"><span class="label"><&|/l&>One-time Cc</&>:</span><div><& /Elements/EmailInput, Name => 'UpdateCc', Size => '60', Default => $ARGS{UpdateCc} &></div></div>
+<div class="entry"><span class="label"><&|/l&>One-time Cc</&>:</span><span class="value"><& /Elements/EmailInput, Name => 'UpdateCc', Size => '60', Default => $ARGS{UpdateCc} &></span></div>
 
-<div class="entry"><span class="label"><&|/l&>One-time Bcc</&>:</span><div><& /Elements/EmailInput, Name => 'UpdateBcc', Size => '60', Default => $ARGS{UpdateBcc} &></div></div>
+<div class="entry"><span class="label"><&|/l&>One-time Bcc</&>:</span><span class="value"><& /Elements/EmailInput, Name => 'UpdateBcc', Size => '60', Default => $ARGS{UpdateBcc} &></span></div>
 
 <div class="entry"><span class="label" ><&|/l&>Message</&>:</span><div class="value">
 % if (exists $ARGS{UpdateContent}) {

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list