Initialer Focus in vielen Berichtsmasken
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 24 Jun 2013 12:58:11 +0000 (14:58 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 24 Jun 2013 12:58:58 +0000 (14:58 +0200)
bin/mozilla/rp.pl
templates/webpages/ar/search.html
templates/webpages/ct/search_contact.html
templates/webpages/gl/search.html
templates/webpages/ic/search.html
templates/webpages/oe/search.html
templates/webpages/project/search.html
templates/webpages/rp/report.html
templates/webpages/sepa/bank_transfer_search.html
templates/webpages/vk/search_invoice.html

index 8062dad..847916d 100644 (file)
@@ -170,8 +170,8 @@ sub report {
     $::form->all_vc(\%::myconfig, $::form->{vc}, $is_sales ? "AR" : "AP");
     $vc .= "<option>$_->{name}--$_->{id}\n" for @{ $::form->{"all_$::form->{vc}"} };
     $vc = ($vc)
-        ? qq|<select name=$::form->{vc}><option>\n$vc</select>|
-        : qq|<input name=$::form->{vc} size=35>|;
+        ? qq|<select name=$::form->{vc} class="initial_focus"><option>\n$vc</select>|
+        : qq|<input name=$::form->{vc} size=35 class="initial_focus">|;
   }
 
   my ($selection, $paymentaccounts);
index 07f2fc1..a1f9034 100644 (file)
@@ -23,6 +23,7 @@
                  limit         = vclimit,
                  show_empty    = 1,
                  allow_textbox = 1,
+                 class         = 'initial_focus',
                  -%]
       </td>
      </tr>
index f5277bf..7d3295d 100644 (file)
@@ -9,7 +9,7 @@
   <table>
    <tr>
     <th align="right" nowrap>[% 'Name' | $T8 %]</th>
-    <td><input name="filter.cp_name" size="35"></td>
+    <td><input name="filter.cp_name" size="35" class="initial_focus"></td>
    </tr>
    <tr>
     <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
index e7f1cd1..78a16e7 100644 (file)
@@ -16,7 +16,7 @@
       <table>
         <tr>
           <th align=right>[% 'Reference / Invoice Number' | $T8 %]</th>
-          <td><input name=reference size=20></td>
+          <td><input name="reference" size="20" class="initial_focus"></td>
           <th align=right>[% 'Source' | $T8 %]</th>
           <td><input name=source size=20></td>
         </tr>
 <br>
 <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
 </form>
-
index b8276e6..a9799a5 100644 (file)
@@ -32,7 +32,7 @@
 
       <tr>
        <th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
-       <td colspan="3"><input name="description" size="40"></td>
+       <td colspan="3"><input name="description" size="40" class="initial_focus"></td>
       </tr>
 
       <tr>
index 82db67c..b8823de 100644 (file)
@@ -27,6 +27,7 @@
                  limit         = vclimit,
                  show_empty    = 1,
                  allow_textbox = 1,
+                 class         = 'initial_focus',
                  -%]
      </td>
     </tr>
 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
 </form>
-
index e5d4ff4..44bf0d8 100644 (file)
@@ -18,7 +18,7 @@
 
     <tr>
      <th align="right">[% 'Description' | $T8 %]</th>
-     <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60) %]</td>
+     <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td>
     </tr>
 
     <tr>
index daeaf46..08eacfd 100644 (file)
@@ -9,7 +9,7 @@
   </tr>
   <tr>
     <th colspan=1>[% 'Year' | $T8 %]</th>
-    <td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]"></td>
+    <td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus"></td>
   </tr>
   <tr>
     <td align=right> <b>[% 'Yearly' | $T8 %]</b> </td>
@@ -93,7 +93,7 @@
   <input type=hidden name=nextsub value=generate_projects>
   <tr>
     <th align=right>[% 'as at' | $T8 %]</th>
-    <td> [% L.date_tag('fromdate', fromdate) %]</td>
+    <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
     <td>[% L.date_tag('todate') %]</td>
   </tr>
   <input type=hidden name=nextsub value=generate_balance_sheet>
   <tr>
     <th align=right>[% 'as at' | $T8 %]</th>
-    <td> [% L.date_tag('asofdate', asofdate) %]</td>
+    <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]</td>
     <td><input name=l_ob class=checkbox type=checkbox value=Y>&nbsp;[% 'only OB Transactions' | $T8 %]</td>
   </tr>
   </tr>
   <tr>
     <th align=right>[% 'Reference' | $T8 %]</th>
-    <td colspan=3><input name=reference></td>
+    <td colspan=3><input name=reference class="initial_focus"></td>
   </tr>
   <tr>
     <th align=right nowrap>[% 'Source' | $T8 %]</th>
index 613f12d..567506c 100644 (file)
@@ -10,7 +10,7 @@
    <table>
     <tr>
      <td align="right">[%- IF vc == 'vendor' %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</td>
-     <td><input name="f_vc"></td>
+     <td><input name="f_vc" class="initial_focus"></td>
     </tr>
 
     <tr>
index 280e390..8a773ce 100644 (file)
@@ -77,6 +77,7 @@
           limit         = vclimit,
           show_empty    = 1,
           allow_textbox = 1,
+          class         = 'initial_focus',
         -%]
       </td>