Code

Updated test styles
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Mar 2007 07:00:19 +0000 (07:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Mar 2007 07:00:19 +0000 (07:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5891 594d385d-05f5-0310-b6e9-bd551577e9d8

html/themes/default/style.css
include/sieve/templates/element_address.tpl
include/sieve/templates/element_envelope.tpl
include/sieve/templates/element_header.tpl

index 7c32a6a845c1b41a295999ec840e1215ba5180bf..3927db987f73d467d48d6272e7efe001c8624bc2 100644 (file)
@@ -1308,7 +1308,7 @@ td.sieve_reject_input {
 }
 textarea.sieve_reject_input {
        width:100%; 
-       height:30px;
+       height:55px;
 }
 
 
@@ -1352,7 +1352,7 @@ td.sieve_vacation_input {
 /* Editing area */
 textarea.sieve_vacation_input {
        width:100%;
-       height : 45px;
+       height : 55px;
 }
 
 
index db7558e03c56d71ee9f7512602896618a6daa497..dfabd25629f941c3eac8733470fe32256f411d32 100755 (executable)
         {/if}
 
        <tr>
-               <td colspan=2 style='text-align:right; vertical-align:top;'>
+               <td style='width:50%;'>
+                       <b>{t}Address{/t}</b>
+               </td>
+        <td style='text-align:right; vertical-align:top;'>
                        <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
                </td>
        </tr>
        <tr>
-               <td>
+               <td style='width:50%;'>
                        {t}Match type{/t}
                </td>
                <td>
     <tr>
         <td >
             {t}Address fields to include{/t}<br>
-            <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
+            <textarea style='width:100%;height:70px;' name='keys_{$ID}'>{$keys}</textarea>
         </td>
         <td >
             {t}Values to match for{/t}<br>
-            <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
+            <textarea style='width:100%;height:70px;' name='values_{$ID}'>{$values}</textarea>
         </td>
     </tr>
        {else}
 
         {/if}
        <tr>
-               <td style='vertical-align:top;'>
+               {if $match_type == ":count" || $match_type == ":value"}
+               <td style='vertical-align:top; width:350px;'>
+               {else}
+               <td style='vertical-align:top; width:200px;'>
+               {/if}
                        <b>{t}Address{/t}</b>
                
                        {if $Inverse}
                        {/if}
                </td>
                <td>
-                       <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
-                       <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
+                       <textarea style='width:100%;height:40px;' name='keys_{$ID}'>{$keys}</textarea>
+               </td>
+               <td>
+                       <textarea style='width:100%;height:40px;' name='values_{$ID}'>{$values}</textarea>
                </td>
-               <td style='text-align:right; vertical-align:top;'>
+               <td style='text-align:right; vertical-align:top; width:120px;'>
                        <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
                </td>
        </tr>
index 6e86b55c472f67554106acef5f42a05bd99f8830..7061b8a47b87e7b6b20685b8c1ae20e8f132f26a 100755 (executable)
@@ -1,79 +1,85 @@
+
 <table class='sieve_test_case'>
-       {if $Expert}
-       {if $LastError != ""}
-               <tr>
-                               <td colspan=4>
-                           <font color='red'><b>{$LastError}</b></font>
-                               </td>
-                       </tr>
+    {if $Expert}
+        {if $LastError != ""}
+            <tr>
+                <td colspan=2>
+                    <font color='red'><b>{$LastError}</b></font>
+                </td>
+            </tr>
 
         {/if}
 
-       <tr>
-               <td>
-                       {t}Match type{/t}
+    <tr>
+               <td style='width:50%;'>
+                       <b>{t}Envelope{/t}</b>
                </td>
-               <td>
-                       <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'> 
-                               {html_options options=$match_types selected=$match_type}
-                       </select>
+        <td style='text-align:right; vertical-align:top;'>
+            <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
+        </td>
+    </tr>
+    <tr>
+        <td style='width:50%;'>
+            {t}Match type{/t}
+        </td>
+        <td>
+            <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
+                {html_options options=$match_types selected=$match_type}
+            </select>
+
+        </td>
+    </tr>
+
+
+           <tr>
+        <td>
+            {t}Invert test{/t}?
+        </td>
+        <td>
+            {if $Inverse}
+                <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
+            {else}
+                <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
+            {/if}
+        </td>
+    </tr>
+    <tr>
+        <td>
+            {t}Comparator{/t}
+        </td>
+        <td>
+            <select name='comparator_{$ID}' title='{t}Boolean value{/t}'>
+                {html_options options=$comparators selected=$comparator}
+            </select>
+        </td>
+    </tr>
+        {if $match_type == ":count" || $match_type == ":value"}
+    <tr>
+        <td>
+            {t}operator{/t}
+        </td>
+        <td>
+            <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
+                {html_options options=$operators selected=$operator}
+            </select>
+        </td>
+    </tr>
+        {/if}
+  <tr>
+        <td colspan=2>&nbsp;</td>
+    </tr>
+    <tr>
+        <td >
+            {t}Address fields to include{/t}<br>
+            <textarea style='width:100%;height:70px;' name='keys_{$ID}'>{$keys}</textarea>
+        </td>
+        <td >
+            {t}Values to match for{/t}<br>
+            <textarea style='width:100%;height:70px;' name='values_{$ID}'>{$values}</textarea>
+        </td>
+    </tr>
+
 
-               </td>
-               <td>
-                       {t}Invert test{/t}?
-               </td>
-               <td>
-                       {if $Inverse}
-                               <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
-                       {else}
-                               <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
-                       {/if}
-               </td>
-               <td style='text-align:right; vertical-align:top;'>
-                       <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
-               </td>
-       </tr>
-       <tr>
-               <td>
-                       {t}Comparator{/t}
-               </td>
-               <td>
-                       <select name='comparator_{$ID}' title='{t}Boolean value{/t}'> 
-                               {html_options options=$comparators selected=$comparator}
-                       </select>
-               </td>
-               {if $match_type == ":count" || $match_type == ":value"}
-               <td>
-                       {t}operator{/t}
-               </td>
-               <td>
-                       <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
-                               {html_options options=$operators selected=$operator}
-                       </select>
-               </td>
-               {else}
-               <td style='text-align:right;'>
-                       &nbsp;
-               </td>
-               {/if}
-               <td style='text-align:right;'>
-                       &nbsp;
-               </td>
-       </tr>
-       <tr>
-               <td>
-                       {t}Address fields to include{/t}
-               </td>
-               <td>
-                       <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
-               </td>
-               <td>
-                       {t}Values to match for{/t}
-               </td>
-               <td>
-                       <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
-               </td>
-       </tr>
        {else}
        {if $LastError != ""}
                <tr>
 
         {/if}
        <tr>
-               <td style='vertical-align:top;'>
+               {if $match_type == ":count" || $match_type == ":value"}
+               <td style='vertical-align:top; width:350px;'>
+               {else}
+               <td style='vertical-align:top; width:200px;'>
+               {/if}
+
+                       
                        <b>{t}Envelope{/t}</b>
                
                        {if $Inverse}
                        {/if}
                </td>
                <td>
-                       <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
-                       <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
+                       <textarea style='width:100%;height:40px;' name='keys_{$ID}'>{$keys}</textarea>
+               </td>
+               <td>
+                       <textarea style='width:100%;height:40px;' name='values_{$ID}'>{$values}</textarea>
                </td>
-               <td style='text-align:right; vertical-align:top;'>
+               <td style='text-align:right; vertical-align:top; width:120px;'>
                        <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
                </td>
        </tr>
index b944c4b62b63dfc3eb4dccda6e236eae20eb5b13..3ee9ac687b29a6e474fe778c89bed5958c8cbbde 100755 (executable)
         {/if}
 
 
-        <tr>
-        <td>
+       <tr>
+               <td style='width:50%;'>
+                       <b>{t}Header{/t}</b>
+               </td>
+        <td style='text-align:right; vertical-align:top;'>
+            <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
+        </td>
+    </tr>
+    <tr>
+               <td>
             {t}Match type{/t}
         </td>
         <td>
@@ -20,6 +28,8 @@
             </select>
 
         </td>
+    </tr>
+    <tr>
         <td>
             {t}Invert test{/t}?
         </td>
@@ -30,9 +40,6 @@
                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
             {/if}
         </td>
-        <td style='text-align:right; vertical-align:top;'>
-            <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
-        </td>
     </tr>
     <tr>
         <td>
@@ -43,7 +50,9 @@
                 {html_options options=$comparators selected=$comparator}
             </select>
         </td>
+    </tr>
         {if $match_type == ":count" || $match_type == ":value"}
+    <tr>
         <td>
             {t}operator{/t}
         </td>
                 {html_options options=$operators selected=$operator}
             </select>
         </td>
-        {else}
-        <td style='text-align:right;'>
-            &nbsp;
-        </td>
+    </tr>
         {/if}
-        <td style='text-align:right;'>
-            &nbsp;
-        </td>
+
+        <tr>
+        <td colspan=2>&nbsp;</td>
     </tr>
     <tr>
-        <td colspan=2>
+        <td >
             {t}Address fields to include{/t}<br>
-            <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
+            <textarea style='width:100%;height:70px;' name='keys_{$ID}'>{$keys}</textarea>
         </td>
-        <td colspan=3>
+        <td >
             {t}Values to match for{/t}<br>
-            <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
+            <textarea style='width:100%;height:70px;' name='values_{$ID}'>{$values}</textarea>
         </td>
     </tr>
 
+
        {else}
        {if $LastError != ""}
                <tr>
 
         {/if}
                 <tr>
-        <td style='vertical-align:top;'>
+               {if $match_type == ":count" || $match_type == ":value"}
+               <td style='vertical-align:top; width:350px;'>
+               {else}
+               <td style='vertical-align:top; width:200px;'>
+               {/if}
             <b>{t}Header{/t}</b>
 
             {if $Inverse}
             {/if}
         </td>
         <td>
-            <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
-            <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
+            <textarea style='width:100%;height:40px;' name='keys_{$ID}'>{$keys}</textarea>
         </td>
-        <td style='text-align:right; vertical-align:top;'>
+        <td>
+            <textarea style='width:100%;height:40px;' name='values_{$ID}'>{$values}</textarea>
+        </td>
+        <td style='text-align:right; vertical-align:top; width:120px;'>
             <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
         </td>
     </tr>