Code

Udpated JS focus,
[gosa.git] / plugins / gofax / blocklists / generic.tpl
index f479b38e58a95b246910d89598e6ab4f3f6cd018..629cf3852cae149add5b886b6577ff100062c2da 100644 (file)
@@ -1,21 +1,27 @@
-<h2><img alt="" align="middle" src="images/rightarrow.png"> {t}Generic{/t}</h2>
-<table style="width:100%; vertical-align:top; text-align:left;" cellpadding=4>
+<h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Generic{/t}</h2>
+<table summary="" style="width:100%; vertical-align:top; text-align:left;">
 
  <tr>
    <td style="width:50%; vertical-align:top;">
-    <table>
+    <table summary="">
      <tr>
-      <td>{t}List name{/t}{$must}</td>
+      <td><LABEL for="cn">{t}List name{/t}</LABEL>{$must}</td>
       <td>
-       <input name="cn" size=25 maxlength=60 {$mode} {$cnACL} value="{$cn}" title="{t}Name of blocklist{/t}">
+       <input name="cn" id="cn" size=25 maxlength=60 {$mode} {$cnACL} value="{$cn}" title="{t}Name of blocklist{/t}">
       </td>
      </tr>
      <tr>
-      <td>{t}Base{/t}{$must}</td>
+      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
       <td>
-       <select size="1" name="base" {$selectmode} title="{t}Select subtree to place blocklist in{/t}">
+       <select size="1" id="base" name="base" {$selectmode} title="{t}Select subtree to place blocklist in{/t}">
         {html_options options=$bases selected=$base_select}
+               <option disabled>&nbsp;</option>
        </select>
+        {if $selectmode == ""}
+            <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+        {else}
+            <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+        {/if}
       </td>
      </tr>
     </table>
   </td>
 
    <td style="vertical-align:top;">
-    <table>
+    <table summary="">
      <tr>
-       <td>{t}Type{/t}</td>
+       <td><LABEL for="type">{t}Type{/t}</LABEL></td>
        <td>
-        <select size="1" name="type" {$typeACL} title="{t}Select wether to filter incoming or outgoing calls{/t}">
-         {html_options options=$types selected=$type}
+        <select size="1" id="type" name="type" {$goFaxBlocklistACL} title="{t}Select wether to filter incoming or outgoing calls{/t}">
+        {html_options options=$types selected=$type}
+               <option disabled>&nbsp;</option>
         </select>
         </td>
       </tr>
       <tr>
-       <td>{t}Description{/t}</td>
+       <td><LABEL for="description">{t}Description{/t}</LABEL></td>
        <td>
-         <input name="description" size=25 maxlength=60 {$descriptionACL} value="{$description}" title="{t}Descriptive text for this blocklist{/t}">
+         <input name="description" id="description" size=25 maxlength=80 {$descriptionACL} value="{$description}" title="{t}Descriptive text for this blocklist{/t}">
        </td>
       </tr>
     </table>
 
 <p class="plugbottom" style="margin-bottom:0px; padding:0px;">&nbsp;</p>
 
-<table>
+<table summary="" style="width:100%">
  <tr>
-   <td>
-     <h2><img alt="" align="middle" src="images/false.png"> {t}Blocked numbers{/t}</h2>
-     <select style="width:400px; height:200px;" name="numbers[]" size=15 multiple>
+   <td style="width:50%;">
+     <h2><img class="center" alt="" align="middle" src="images/false.png"> {t}Blocked numbers{/t}</h2>
+     <select style="width:100%; height:200px;" name="numbers[]" size=15 multiple>
       {html_options values=$goFaxBlocklist output=$goFaxBlocklist}
+         <option disabled>&nbsp;</option>
      </select>
      <br>
-     <input name="number" size=25 maxlength=60 {$goFaxBlocklistACL}>&nbsp;
+     <input id="number" name="number" size=25 maxlength=60 {$goFaxBlocklistACL}>&nbsp;
      <input type=submit value="{t}Add{/t}" {$goFaxBlocklistACL} name="add_number">&nbsp;
      <input type=submit value="{t}Delete{/t}" {$goFaxBlocklistACL} name="delete_number">
    </td>
-   <td style="vertical-align:top;">
-     <h2><img alt="" align="middle" src="images/info_small.png"> {t}Information{/t}</h2>
+  <td style="border-left:1px solid #A0A0A0">
+   &nbsp;
+  </td>
+   <td style="vertical-align:top;" >
+     <h2><img class="center" alt="" align="middle" src="images/info_small.png"> {t}Information{/t}</h2>
      <p>
       {t}Numbers can also contain wild cards.{/t}
      </p>
@@ -71,7 +82,7 @@
 
 
 <p class="plugbottom">
-  <input type=submit name="edit_finish" value="{t}Finish{/t}">
+  <input type=submit name="edit_finish" value="{t}Save{/t}">
   &nbsp;
   <input type=submit name="edit_cancel" value="{t}Cancel{/t}">
 </p>
@@ -79,6 +90,6 @@
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  document.mainform.cn.focus();
+       focus_field('n');
   -->
 </script>