]> wagnertech.de Git - kivitendo-erp.git/commitdiff
$::request->layout->focus() größtenteils durch class="initial_focus" ersetzen
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 28 Jun 2013 07:34:50 +0000 (09:34 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 28 Jun 2013 07:34:50 +0000 (09:34 +0200)
29 files changed:
SL/Controller/CustomVariableConfig.pm
SL/Controller/LoginScreen.pm
SL/Controller/Project.pm
bin/mozilla/am.pl
bin/mozilla/amtemplates.pl
bin/mozilla/ap.pl
bin/mozilla/ar.pl
bin/mozilla/ct.pl
bin/mozilla/dn.pl
bin/mozilla/ic.pl
bin/mozilla/io.pl
bin/mozilla/ir.pl
bin/mozilla/is.pl
templates/webpages/am/edit_price_factor.html
templates/webpages/am/edit_templates.html
templates/webpages/am/edit_warehouse.html
templates/webpages/ap/search.html
templates/webpages/ar/form_header.html
templates/webpages/ct/form_header.html
templates/webpages/ct/search.html
templates/webpages/custom_variable_config/form.html
templates/webpages/dunning/add.html
templates/webpages/dunning/search.html
templates/webpages/generic/edit_email.html
templates/webpages/ic/form_header.html
templates/webpages/ir/form_header.html
templates/webpages/is/form_header.html
templates/webpages/login_screen/user_login.html
templates/webpages/project/form.html

index d87b8ac92c53dab5ba8e218d41cdcc9f72fad456..b366ffbf26a9c6990fc49e384eda7a6e2fed99ce 100644 (file)
@@ -64,7 +64,6 @@ sub show_form {
     split m/;/, ($self->config->flags || '')
   ]);
 
     split m/;/, ($self->config->flags || '')
   ]);
 
-  $::request->layout->focus('#config_name');
   $self->render('custom_variable_config/form', %params);
 }
 
   $self->render('custom_variable_config/form', %params);
 }
 
index 8c431ca3e077adea61bc553e869e24f6f8231c2b..a06686af235d399c08b80ab29d012c0a3960a166 100644 (file)
@@ -183,7 +183,6 @@ sub init_default_client_id {
 sub show_login_form {
   my ($self, %params) = @_;
 
 sub show_login_form {
   my ($self, %params) = @_;
 
-  $::request->layout->focus('#auth_login');
   $self->render('login_screen/user_login', %params);
 }
 
   $self->render('login_screen/user_login', %params);
 }
 
index 46a8c591e41b14d24b7eb09faf914fbade2e9f4b..d152d6a01a5223a315934edb265a867ad705ec1f 100644 (file)
@@ -149,8 +149,6 @@ sub display_form {
   $params{CUSTOM_VARIABLES} = CVar->get_custom_variables(module => 'Projects', trans_id => $self->project->id);
   CVar->render_inputs(variables => $params{CUSTOM_VARIABLES}) if @{ $params{CUSTOM_VARIABLES} };
 
   $params{CUSTOM_VARIABLES} = CVar->get_custom_variables(module => 'Projects', trans_id => $self->project->id);
   CVar->render_inputs(variables => $params{CUSTOM_VARIABLES}) if @{ $params{CUSTOM_VARIABLES} };
 
-  $::request->{layout}->focus('#projectnumber');
-
   $self->render('project/form', %params);
 }
 
   $self->render('project/form', %params);
 }
 
index ad6248f3d1d1b5fa19288beb1e48add95316915d..c918770b0c79ab5402b15e71f4007e8c7b13ab3a 100644 (file)
@@ -1558,7 +1558,6 @@ sub add_price_factor {
 
   $form->{title}      = $locale->text('Add Price Factor');
   $form->{callback} ||= build_std_url('action=add_price_factor');
 
   $form->{title}      = $locale->text('Add Price Factor');
   $form->{callback} ||= build_std_url('action=add_price_factor');
-  $::request->{layout}->focus('#description');
 
   $form->header();
   print $form->parse_html_template('am/edit_price_factor');
 
   $form->header();
   print $form->parse_html_template('am/edit_price_factor');
@@ -1577,7 +1576,6 @@ sub edit_price_factor {
 
   $form->{title}      = $locale->text('Edit Price Factor');
   $form->{callback} ||= build_std_url('action=add_price_factor');
 
   $form->{title}      = $locale->text('Edit Price Factor');
   $form->{callback} ||= build_std_url('action=add_price_factor');
-  $::request->{layout}->focus('#description');
 
   AM->get_price_factor(\%myconfig, $form);
 
 
   AM->get_price_factor(\%myconfig, $form);
 
@@ -1665,7 +1663,6 @@ sub add_warehouse {
 
   $form->{title}      = $locale->text('Add Warehouse');
   $form->{callback} ||= build_std_url('action=add_warehouse');
 
   $form->{title}      = $locale->text('Add Warehouse');
   $form->{callback} ||= build_std_url('action=add_warehouse');
-  $::request->{layout}->focus('#description');
 
   $form->header();
   print $form->parse_html_template('am/edit_warehouse');
 
   $form->header();
   print $form->parse_html_template('am/edit_warehouse');
@@ -1688,7 +1685,6 @@ sub edit_warehouse {
 
   $form->{title}      = $locale->text('Edit Warehouse');
   $form->{callback} ||= build_std_url('action=list_warehouses');
 
   $form->{title}      = $locale->text('Edit Warehouse');
   $form->{callback} ||= build_std_url('action=list_warehouses');
-  $::request->{layout}->focus('#description');
 
   $form->header();
   print $form->parse_html_template('am/edit_warehouse');
 
   $form->header();
   print $form->parse_html_template('am/edit_warehouse');
index 6d7e399c9e53f184d9e386b12edc811ca3d383bd..f8c6972e66bdcc30371214fa7c598b04a718c6e6 100644 (file)
@@ -275,10 +275,7 @@ sub display_template_form {
 
     $options{"CAN_EDIT"} = $form->{"edit"};
 
 
     $options{"CAN_EDIT"} = $form->{"edit"};
 
-    if ($form->{edit}) {
-      $::request->{layout}->focus("#edit_content");
-
-    } else {
+    if (!$form->{edit}) {
       $options{"content"}                 = "\n\n" if (!$options{"content"});
       $options{"SHOW_SECOND_EDIT_BUTTON"} = $options{"lines"} > 25;
     }
       $options{"content"}                 = "\n\n" if (!$options{"content"});
       $options{"SHOW_SECOND_EDIT_BUTTON"} = $options{"lines"} > 25;
     }
index e566ea6f702ff2eb4c92e6f65ca0cf031f088c55..ffd94d2b90fc4b3ab1ff372c57a12d67dd46a970 100644 (file)
@@ -807,7 +807,6 @@ sub search {
   $form->all_vc(\%myconfig, "vendor", "AP");
 
   $form->{title}    = $locale->text('AP Transactions');
   $form->all_vc(\%myconfig, "vendor", "AP");
 
   $form->{title}    = $locale->text('AP Transactions');
-  $::request->{layout}->focus('#vendor');
   $form->{jsscript} = 1;
 
   $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
   $form->{jsscript} = 1;
 
   $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
index e1b10f63c0b5270e1a3b6444f8121f5446758f5a..c079b4e75a9ad9734c64ff9a10eb145701146c52 100644 (file)
@@ -315,8 +315,6 @@ sub form_header {
     $taxcharts{$item->{id}} = $item;
   }
 
     $taxcharts{$item->{id}} = $item;
   }
 
-  $::request->{layout}->focus("#customer");
-
   my $follow_up_vc         =  $form->{customer};
   $follow_up_vc            =~ s/--.*?//;
   my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
   my $follow_up_vc         =  $form->{customer};
   $follow_up_vc            =~ s/--.*?//;
   my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
index 797ee393e3a8f38a13c54ee3470898f1969eb58e..2cc187ee08601d6f002061dc6f3bf9a1049aa631 100644 (file)
@@ -103,7 +103,6 @@ sub search {
 
   $form->{jsscript} = 1;
   $form->{title}    = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors');
 
   $form->{jsscript} = 1;
   $form->{title}    = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors');
-  $::request->{layout}->focus('#name');
 
   $form->header();
   print $form->parse_html_template('ct/search');
 
   $form->header();
   print $form->parse_html_template('ct/search');
@@ -174,7 +173,7 @@ sub list_names {
   my @columns = (
     'id',        'name',      "$form->{db}number",   'contact',   'phone',
     'fax',       'email',     'taxnumber',           'street',    'zipcode' , 'city',
   my @columns = (
     'id',        'name',      "$form->{db}number",   'contact',   'phone',
     'fax',       'email',     'taxnumber',           'street',    'zipcode' , 'city',
-    'business',  'invnumber', 'ordnumber',           'quonumber', 'salesman', 'country' 
+    'business',  'invnumber', 'ordnumber',           'quonumber', 'salesman', 'country'
   );
 
   my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
   );
 
   my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
@@ -477,7 +476,6 @@ sub form_header {
   $form->{taxzone_id}     = 0                                                               if !$form->{id};
   $form->{jsscript}       = 1;
   $form->{SHIPTO_ALL}     = [ +{ shipto_id => '0', shiptoname => $::locale->text('All') }, @{ $form->{SHIPTO} } ];
   $form->{taxzone_id}     = 0                                                               if !$form->{id};
   $form->{jsscript}       = 1;
   $form->{SHIPTO_ALL}     = [ +{ shipto_id => '0', shiptoname => $::locale->text('All') }, @{ $form->{SHIPTO} } ];
-  $::request->{layout}->focus("#greeting");
 
   $form->{title} = $form->{title_save}
                 || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');
 
   $form->{title} = $form->{title_save}
                 || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');
index e9df309444a5e377cbfdc52fb3920f87f0d6c7be..79c5c57e2ee497eda10127210495b08fc7e5be13 100644 (file)
@@ -106,7 +106,6 @@ sub add {
 
   $form->{title}    = $locale->text('Start Dunning Process');
   $form->{jsscript} = 1;
 
   $form->{title}    = $locale->text('Start Dunning Process');
   $form->{jsscript} = 1;
-  $::request->{layout}->focus('#customer');
   $form->header();
 
   print $form->parse_html_template("dunning/add");
   $form->header();
 
   print $form->parse_html_template("dunning/add");
@@ -310,7 +309,6 @@ sub search {
 
   $form->{jsscript} = 1;
   $form->{title}    = $locale->text('Dunnings');
 
   $form->{jsscript} = 1;
   $form->{title}    = $locale->text('Dunnings');
-  $::request->{layout}->focus('#customer');
 
   $form->header();
 
 
   $form->header();
 
index 837b842b4585690d089586e2aeaeb48561074941..feb5ba02d8bfb2d6301861403a23692ab5f1a124 100644 (file)
@@ -1618,8 +1618,6 @@ sub form_header {
 
   $form->{defaults} = AM->get_defaults();
 
 
   $form->{defaults} = AM->get_defaults();
 
-  $::request->{layout}->focus("#partnumber");
-
   $form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'IC', 'trans_id' => $form->{id});
 
   CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}, show_disabled_message => 1)
   $form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'IC', 'trans_id' => $form->{id});
 
   CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}, show_disabled_message => 1)
index e67bbbb2be32df63d953c580173674d5d74736f1..e7ba050a1d515efb8195726ae5406f0a9642d26f 100644 (file)
@@ -996,7 +996,6 @@ sub edit_e_mail {
   my $attachment_filename = $form->generate_attachment_filename();
   my $subject             = $form->{subject} || $form->generate_email_subject();
 
   my $attachment_filename = $form->generate_attachment_filename();
   my $subject             = $form->{subject} || $form->generate_email_subject();
 
-  $::request->{layout}->focus($form->{"email"} ? "#subject" : "#email");
   $form->header;
 
   my (@dont_hide_key_list, %dont_hide_key, @hidden_keys);
   $form->header;
 
   my (@dont_hide_key_list, %dont_hide_key, @hidden_keys);
index b226bb011b45d58460f15207b4df665926af8347..b14ee0df0573f1f2c505f3d0c45e726daa91c35a 100644 (file)
@@ -329,8 +329,6 @@ sub form_header {
   $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
   $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
 
   $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
   $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
 
-  $::request->{layout}->focus('#vendor');
-
   my $follow_up_vc         =  $form->{vendor};
   $follow_up_vc            =~ s/--\d*\s*$//;
   $TMPL_VAR{vendor_name} = $follow_up_vc;
   my $follow_up_vc         =  $form->{vendor};
   $follow_up_vc            =~ s/--\d*\s*$//;
   $TMPL_VAR{vendor_name} = $follow_up_vc;
index 220c993aaf069c9a3272dc7e409dbb5c45c4f99f..e9ea9f003906620a2c67a97947330ae3aa53916f 100644 (file)
@@ -353,8 +353,6 @@ sub form_header {
   $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
   $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
 
   $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
   $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
 
-  $::request->{layout}->focus('#customer');
-
   my $follow_up_vc         =  $form->{customer};
   $follow_up_vc            =~ s/--\d*\s*$//;
   $TMPL_VAR{customer_name} = $follow_up_vc;
   my $follow_up_vc         =  $form->{customer};
   $follow_up_vc            =~ s/--\d*\s*$//;
   $TMPL_VAR{customer_name} = $follow_up_vc;
index dc00c7c6c02460800e3a1a82fe81acb8597ad67c..a2191300bf5e293f6dafe73cd43a7b4bf3ad4b2c 100644 (file)
@@ -11,7 +11,7 @@
    <table border="0">
     <tr>
      <td align="right">[% 'Description' | $T8 %]</td>
    <table border="0">
     <tr>
      <td align="right">[% 'Description' | $T8 %]</td>
-     <td><input id="description" name="description" value="[% HTML.escape(description) %]"></td>
+     <td><input id="description" name="description" value="[% HTML.escape(description) %]" class="initial_focus"></td>
     </tr>
 
     <tr>
     </tr>
 
     <tr>
@@ -31,4 +31,3 @@
    [% IF id %][% IF orphaned %]<input type="submit" name="action" value="[% 'Delete' | $T8 %]">[% END %][% END %]
   </p>
  </form>
    [% IF id %][% IF orphaned %]<input type="submit" name="action" value="[% 'Delete' | $T8 %]">[% END %][% END %]
   </p>
  </form>
-
index 220b9ecb6adb03ff395b6b32c6d1f312b9d09357..9d7420c13a3238fda6ed35f295d0ff944d97fc80 100644 (file)
@@ -53,7 +53,7 @@
    </p>
 
    [% IF CAN_EDIT %]
    </p>
 
    [% IF CAN_EDIT %]
-    <p><textarea name="content" id="edit_content" cols="100" rows="25">[% HTML.escape(content) %]</textarea></p>
+    <p><textarea name="content" id="edit_content" cols="100" rows="25"[% IF edit %] class="initial_focus"[% END %]>[% HTML.escape(content) %]</textarea></p>
 
     <p>
      <input type="hidden" name="save_nextsub" value="save_template">
 
     <p>
      <input type="hidden" name="save_nextsub" value="save_template">
@@ -78,4 +78,3 @@
   [% END %] <!-- SHOW_CONTENT -->
 
  </form>
   [% END %] <!-- SHOW_CONTENT -->
 
  </form>
-
index 2208de527cf1fb1d0cefb5cddbccada3ba63f7a9..9da65b81c5964857bf0f49474df925ae1de9206a 100644 (file)
@@ -17,7 +17,7 @@
    <tr>
     <td align="right">[% 'Description' | $T8 %]</td>
     <td>
    <tr>
     <td align="right">[% 'Description' | $T8 %]</td>
     <td>
-     <input id='description' name="description" size="60" value="[% HTML.escape(description) %]">
+     <input id='description' name="description" size="60" value="[% HTML.escape(description) %]" class="initial_focus">
      <input type="hidden" name="orig_description" value="[% HTML.escape(description) %]">
     </td>
    </tr>
      <input type="hidden" name="orig_description" value="[% HTML.escape(description) %]">
     </td>
    </tr>
  [% END %]
 
  [% END %]
  [% END %]
 
  [% END %]
-
index 99898a6ea6b03b8de6298aaba8f9dfe55f49e1f6..9932cdd1f262c144495e19255cd860bb4deefbff 100644 (file)
@@ -17,6 +17,7 @@
                  name          = 'vendor',
                  default       = oldvendor,
                  style         = 'width: 250px',
                  name          = 'vendor',
                  default       = oldvendor,
                  style         = 'width: 250px',
+                 class         = 'initial_focus',
                  DATA          = ALL_VC,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
                  DATA          = ALL_VC,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
index 8d470faf4df9f40cf15d4407dbb44fc5d7bba3e5..af9262ddb655eb00d45836029f7d53fc8f2f7a62 100644 (file)
@@ -39,9 +39,9 @@
                 <th align="right" nowrap>[% 'Customer' | $T8 %]</th>
                 <td colspan=3>
 [%- IF selectcustomer %]
                 <th align="right" nowrap>[% 'Customer' | $T8 %]</th>
                 <td colspan=3>
 [%- IF selectcustomer %]
-    <select id='customer' name="customer" onchange="document.getElementById('update_button').click();">[% selectcustomer %]</select>
+    <select id='customer' name="customer" onchange="document.getElementById('update_button').click();" class="initial_focus">[% selectcustomer %]</select>
 [%- ELSE %]
 [%- ELSE %]
-    <input id='customer' name=customer value="[% customer | html %]" size=35>
+    <input id='customer' name=customer value="[% customer | html %]" size=35 class="initial_focus">
 [%- END %]
                 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')"></td>
                 [% L.hidden_tag('selectcustomer', selectcustomer) %]
 [%- END %]
                 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')"></td>
                 [% L.hidden_tag('selectcustomer', selectcustomer) %]
index ff2d36b90ba672fcfd7b0554078796f8cc5b1305..294cf4769d59c10e7f0d51fa249ddba456c8901d 100644 (file)
@@ -80,7 +80,7 @@
      <tr>
       <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
       <td>
      <tr>
       <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
       <td>
-       <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">&nbsp;
+       <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]" class="initial_focus">&nbsp;
        [%- INCLUDE generic/multibox.html
              name       = 'selected_company_greeting',
              DATA       = MB_COMPANY_GREETINGS,
        [%- INCLUDE generic/multibox.html
              name       = 'selected_company_greeting',
              DATA       = MB_COMPANY_GREETINGS,
index 9d3f696aac29a446134aef08d79c3ac5d926067f..617925e9d91987ba57c663594ab60abca1ebb62d 100644 (file)
@@ -15,7 +15,7 @@
 
    <tr>
     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
 
    <tr>
     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
-    <td><input id="name" name="name" size="35"></td>
+    <td><input id="name" name="name" size="35" class="initial_focus"></td>
    </tr>
 
    <tr>
    </tr>
 
    <tr>
 
   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
  </form>
 
   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
  </form>
-
index f29a3d8508f61836a6a212df33a0a9c0a10f68fa..2703cdc1d13999d06dcd501cdcdab85f50833557 100644 (file)
@@ -12,7 +12,7 @@
 
    <tr>
     <td align="right">[% 'Variable Name' | $T8 %]<sup><span class="small-text">(1)</span></sup></td>
 
    <tr>
     <td align="right">[% 'Variable Name' | $T8 %]<sup><span class="small-text">(1)</span></sup></td>
-    <td>[%- L.input_tag("config.name", SELF.config.name) %]</td>
+    <td>[%- L.input_tag("config.name", SELF.config.name, class='initial_focus') %]</td>
    </tr>
 
    <tr>
    </tr>
 
    <tr>
index c58651e429935bd36b1dc8575c8ddb66228ce452..7648bf205ca758b942999df8fb515faf65fec98e 100644 (file)
@@ -9,12 +9,12 @@
     <th align="right">[% 'Customer' | $T8 %]</th>
     <td colspan="3">
      [% IF SHOW_CUSTOMER_SELECTION %]
     <th align="right">[% 'Customer' | $T8 %]</th>
     <td colspan="3">
      [% IF SHOW_CUSTOMER_SELECTION %]
-      <select name="customer">
+      <select name="customer" class="initial_focus">
        <option></option>
        [% FOREACH row = all_customer %]<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>[% END %]
       </select>
       [% ELSE %]
        <option></option>
        [% FOREACH row = all_customer %]<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>[% END %]
       </select>
       [% ELSE %]
-      <input name="customer" size="35">
+      <input name="customer" size="35" class="initial_focus">
      [% END %]
     </td>
    </tr>
      [% END %]
     </td>
    </tr>
@@ -81,5 +81,3 @@
   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
 
  </form>
   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
 
  </form>
-
-
index 18737886c54bc359850bf54fc516ce48c92ee3f0..f27c2fe1e899964375b93354c59e36c891378eda 100644 (file)
        <th align="right">[% 'Customer' | $T8 %]</th>
        <td colspan="3">
         [% IF SHOW_CUSTOMER_DDBOX %]
        <th align="right">[% 'Customer' | $T8 %]</th>
        <td colspan="3">
         [% IF SHOW_CUSTOMER_DDBOX %]
-         <select id='customer' name="customer_id">
+         <select id='customer' name="customer_id" class="initial_focus">
           <option value=""></option>
           [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
           [% END %]
          </select>
          [% ELSE %]
           <option value=""></option>
           [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
           [% END %]
          </select>
          [% ELSE %]
-         <input id='customer' name="customer" size="35">
+         <input id='customer' name="customer" size="35" class="initial_focus">
         [% END %]
        </td>
       </tr>
         [% END %]
        </td>
       </tr>
   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
 
  </form>
   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
 
  </form>
-
index b8303a0cccb959420254b1b09f787d66dab44d9d..b31fde030d6774d4104a00ae5da0e5838dd4e3c4 100644 (file)
@@ -1,5 +1,5 @@
 [%- USE T8 %]
 [%- USE T8 %]
-[%- USE HTML %]
+[%- USE HTML %][%- USE L -%]
 <form name="Form" method="post" action="[% script %]">
 
 <table width="100%">
 <form name="Form" method="post" action="[% script %]">
 
 <table width="100%">
@@ -14,7 +14,7 @@
         <tr>
           <th align="right" nowrap>[% 'To' | $T8 %]</th>
 
         <tr>
           <th align="right" nowrap>[% 'To' | $T8 %]</th>
 
-          <td><input id="email" name="email" size="30" value="[% HTML.escape(email) %]"></td>
+          <td>[% L.input_tag('email', email, size=30, class=(email ? '' : 'initial_focus')) %]</td>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
@@ -28,7 +28,7 @@
         <tr>
           <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
 
         <tr>
           <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
 
-          <td><input id="subject" name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
+          <td>[% L.input_tag('subject', subject, size=30, class=(email ? 'initial_focus' : '')) %]</td>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
@@ -70,4 +70,3 @@
 <br>
 <input name="action" class="submit" type="submit" value="[% 'Continue' | $T8 %]">
 </form>
 <br>
 <input name="action" class="submit" type="submit" value="[% 'Continue' | $T8 %]">
 </form>
-
index 658979a8195995dd305c29f3a0ec479270b6bac0..23a79331636482d252d768939de11b3d12a72582 100644 (file)
@@ -51,7 +51,7 @@
             <table>
              <tr>
               <th align="right">[% 'Part Number' | $T8 %]</th>
             <table>
              <tr>
               <th align="right">[% 'Part Number' | $T8 %]</th>
-              <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
+              <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40" class="initial_focus"></td>
              </tr>
              <tr>
               <th align="right">[% 'Part Description' | $T8 %]</th>
              </tr>
              <tr>
               <th align="right">[% 'Part Description' | $T8 %]</th>
index 8c849fdd7210406acebf4b53a4dfd77d6472e1e7..10739b6ea4c65bfff75494fe1cf1d81e244b15d1 100644 (file)
@@ -48,6 +48,7 @@
                  id            = 'vendor',
                  name          = 'vendor',
                  style         = 'width: 250px',
                  id            = 'vendor',
                  name          = 'vendor',
                  style         = 'width: 250px',
+                 class         = 'initial_focus',
                  DATA          = ALL_VENDORS,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
                  DATA          = ALL_VENDORS,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
index 7aa2732bde0ba52dbb0060b575790302a7bc7d15..89aa3fc4fccf47cd1b5df538bdacbf9b5717ea06 100644 (file)
@@ -49,6 +49,7 @@
                  id            = 'customer',
                  name          = 'customer',
                  style         = 'width: 250px',
                  id            = 'customer',
                  name          = 'customer',
                  style         = 'width: 250px',
+                 class         = 'initial_focus',
                  DATA          = ALL_CUSTOMERS,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
                  DATA          = ALL_CUSTOMERS,
                  id_sub        = 'vc_keys',
                  label_key     = 'name',
index 75eb399ecc771e798fdde625909f78f5bbdc132e..671724b3d8d32502d9a174ea43ef2be7b86c0cac 100644 (file)
@@ -29,7 +29,7 @@
           <table>
            <tr>
             <th align="right">[% 'Login Name' | $T8 %]</th>
           <table>
            <tr>
             <th align="right">[% 'Login Name' | $T8 %]</th>
-            <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style) %]</td>
+            <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style, class='initial_focus') %]</td>
            </tr>
            <tr>
             <th align="right">[% 'Password' | $T8 %]</th>
            </tr>
            <tr>
             <th align="right">[% 'Password' | $T8 %]</th>
index 5b2594cdbaf30498311916a8ddc58f14e36860eb..f046132f5c4d240eefc40df841b4bbdba54a73c0 100644 (file)
@@ -26,7 +26,7 @@
     <table>
      <tr>
       <th align="right">[% 'Number' | $T8 %]</th>
     <table>
      <tr>
       <th align="right">[% 'Number' | $T8 %]</th>
-      <td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60) %]</td>
+      <td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60, class='initial_focus') %]</td>
      </tr>
 
      <tr>
      </tr>
 
      <tr>