Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8abd9ce3

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID 8abd9ce32e946691e0953f9a8e2c183183d7854e
  • Vorgänger f5851080
  • Nachfolger 0c404f20

$::request->layout->focus() größtenteils durch class="initial_focus" ersetzen

Unterschiede anzeigen:

SL/Controller/CustomVariableConfig.pm
64 64
    split m/;/, ($self->config->flags || '')
65 65
  ]);
66 66

  
67
  $::request->layout->focus('#config_name');
68 67
  $self->render('custom_variable_config/form', %params);
69 68
}
70 69

  
SL/Controller/LoginScreen.pm
183 183
sub show_login_form {
184 184
  my ($self, %params) = @_;
185 185

  
186
  $::request->layout->focus('#auth_login');
187 186
  $self->render('login_screen/user_login', %params);
188 187
}
189 188

  
SL/Controller/Project.pm
149 149
  $params{CUSTOM_VARIABLES} = CVar->get_custom_variables(module => 'Projects', trans_id => $self->project->id);
150 150
  CVar->render_inputs(variables => $params{CUSTOM_VARIABLES}) if @{ $params{CUSTOM_VARIABLES} };
151 151

  
152
  $::request->{layout}->focus('#projectnumber');
153

  
154 152
  $self->render('project/form', %params);
155 153
}
156 154

  
bin/mozilla/am.pl
1558 1558

  
1559 1559
  $form->{title}      = $locale->text('Add Price Factor');
1560 1560
  $form->{callback} ||= build_std_url('action=add_price_factor');
1561
  $::request->{layout}->focus('#description');
1562 1561

  
1563 1562
  $form->header();
1564 1563
  print $form->parse_html_template('am/edit_price_factor');
......
1577 1576

  
1578 1577
  $form->{title}      = $locale->text('Edit Price Factor');
1579 1578
  $form->{callback} ||= build_std_url('action=add_price_factor');
1580
  $::request->{layout}->focus('#description');
1581 1579

  
1582 1580
  AM->get_price_factor(\%myconfig, $form);
1583 1581

  
......
1665 1663

  
1666 1664
  $form->{title}      = $locale->text('Add Warehouse');
1667 1665
  $form->{callback} ||= build_std_url('action=add_warehouse');
1668
  $::request->{layout}->focus('#description');
1669 1666

  
1670 1667
  $form->header();
1671 1668
  print $form->parse_html_template('am/edit_warehouse');
......
1688 1685

  
1689 1686
  $form->{title}      = $locale->text('Edit Warehouse');
1690 1687
  $form->{callback} ||= build_std_url('action=list_warehouses');
1691
  $::request->{layout}->focus('#description');
1692 1688

  
1693 1689
  $form->header();
1694 1690
  print $form->parse_html_template('am/edit_warehouse');
bin/mozilla/amtemplates.pl
275 275

  
276 276
    $options{"CAN_EDIT"} = $form->{"edit"};
277 277

  
278
    if ($form->{edit}) {
279
      $::request->{layout}->focus("#edit_content");
280

  
281
    } else {
278
    if (!$form->{edit}) {
282 279
      $options{"content"}                 = "\n\n" if (!$options{"content"});
283 280
      $options{"SHOW_SECOND_EDIT_BUTTON"} = $options{"lines"} > 25;
284 281
    }
bin/mozilla/ap.pl
807 807
  $form->all_vc(\%myconfig, "vendor", "AP");
808 808

  
809 809
  $form->{title}    = $locale->text('AP Transactions');
810
  $::request->{layout}->focus('#vendor');
811 810
  $form->{jsscript} = 1;
812 811

  
813 812
  $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
bin/mozilla/ar.pl
315 315
    $taxcharts{$item->{id}} = $item;
316 316
  }
317 317

  
318
  $::request->{layout}->focus("#customer");
319

  
320 318
  my $follow_up_vc         =  $form->{customer};
321 319
  $follow_up_vc            =~ s/--.*?//;
322 320
  my $follow_up_trans_info =  "$form->{invnumber} ($follow_up_vc)";
bin/mozilla/ct.pl
103 103

  
104 104
  $form->{jsscript} = 1;
105 105
  $form->{title}    = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors');
106
  $::request->{layout}->focus('#name');
107 106

  
108 107
  $form->header();
109 108
  print $form->parse_html_template('ct/search');
......
174 173
  my @columns = (
175 174
    'id',        'name',      "$form->{db}number",   'contact',   'phone',
176 175
    'fax',       'email',     'taxnumber',           'street',    'zipcode' , 'city',
177
    'business',  'invnumber', 'ordnumber',           'quonumber', 'salesman', 'country' 
176
    'business',  'invnumber', 'ordnumber',           'quonumber', 'salesman', 'country'
178 177
  );
179 178

  
180 179
  my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs };
......
477 476
  $form->{taxzone_id}     = 0                                                               if !$form->{id};
478 477
  $form->{jsscript}       = 1;
479 478
  $form->{SHIPTO_ALL}     = [ +{ shipto_id => '0', shiptoname => $::locale->text('All') }, @{ $form->{SHIPTO} } ];
480
  $::request->{layout}->focus("#greeting");
481 479

  
482 480
  $form->{title} = $form->{title_save}
483 481
                || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');
bin/mozilla/dn.pl
106 106

  
107 107
  $form->{title}    = $locale->text('Start Dunning Process');
108 108
  $form->{jsscript} = 1;
109
  $::request->{layout}->focus('#customer');
110 109
  $form->header();
111 110

  
112 111
  print $form->parse_html_template("dunning/add");
......
310 309

  
311 310
  $form->{jsscript} = 1;
312 311
  $form->{title}    = $locale->text('Dunnings');
313
  $::request->{layout}->focus('#customer');
314 312

  
315 313
  $form->header();
316 314

  
bin/mozilla/ic.pl
1618 1618

  
1619 1619
  $form->{defaults} = AM->get_defaults();
1620 1620

  
1621
  $::request->{layout}->focus("#partnumber");
1622

  
1623 1621
  $form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'IC', 'trans_id' => $form->{id});
1624 1622

  
1625 1623
  CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}, show_disabled_message => 1)
bin/mozilla/io.pl
996 996
  my $attachment_filename = $form->generate_attachment_filename();
997 997
  my $subject             = $form->{subject} || $form->generate_email_subject();
998 998

  
999
  $::request->{layout}->focus($form->{"email"} ? "#subject" : "#email");
1000 999
  $form->header;
1001 1000

  
1002 1001
  my (@dont_hide_key_list, %dont_hide_key, @hidden_keys);
bin/mozilla/ir.pl
329 329
  $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
330 330
  $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
331 331

  
332
  $::request->{layout}->focus('#vendor');
333

  
334 332
  my $follow_up_vc         =  $form->{vendor};
335 333
  $follow_up_vc            =~ s/--\d*\s*$//;
336 334
  $TMPL_VAR{vendor_name} = $follow_up_vc;
bin/mozilla/is.pl
353 353
  $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
354 354
  $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
355 355

  
356
  $::request->{layout}->focus('#customer');
357

  
358 356
  my $follow_up_vc         =  $form->{customer};
359 357
  $follow_up_vc            =~ s/--\d*\s*$//;
360 358
  $TMPL_VAR{customer_name} = $follow_up_vc;
templates/webpages/am/edit_price_factor.html
11 11
   <table border="0">
12 12
    <tr>
13 13
     <td align="right">[% 'Description' | $T8 %]</td>
14
     <td><input id="description" name="description" value="[% HTML.escape(description) %]"></td>
14
     <td><input id="description" name="description" value="[% HTML.escape(description) %]" class="initial_focus"></td>
15 15
    </tr>
16 16

  
17 17
    <tr>
......
31 31
   [% IF id %][% IF orphaned %]<input type="submit" name="action" value="[% 'Delete' | $T8 %]">[% END %][% END %]
32 32
  </p>
33 33
 </form>
34

  
templates/webpages/am/edit_templates.html
53 53
   </p>
54 54

  
55 55
   [% IF CAN_EDIT %]
56
    <p><textarea name="content" id="edit_content" cols="100" rows="25">[% HTML.escape(content) %]</textarea></p>
56
    <p><textarea name="content" id="edit_content" cols="100" rows="25"[% IF edit %] class="initial_focus"[% END %]>[% HTML.escape(content) %]</textarea></p>
57 57

  
58 58
    <p>
59 59
     <input type="hidden" name="save_nextsub" value="save_template">
......
78 78
  [% END %] <!-- SHOW_CONTENT -->
79 79

  
80 80
 </form>
81

  
templates/webpages/am/edit_warehouse.html
17 17
   <tr>
18 18
    <td align="right">[% 'Description' | $T8 %]</td>
19 19
    <td>
20
     <input id='description' name="description" size="60" value="[% HTML.escape(description) %]">
20
     <input id='description' name="description" size="60" value="[% HTML.escape(description) %]" class="initial_focus">
21 21
     <input type="hidden" name="orig_description" value="[% HTML.escape(description) %]">
22 22
    </td>
23 23
   </tr>
......
106 106
 [% END %]
107 107

  
108 108
 [% END %]
109

  
templates/webpages/ap/search.html
17 17
                 name          = 'vendor',
18 18
                 default       = oldvendor,
19 19
                 style         = 'width: 250px',
20
                 class         = 'initial_focus',
20 21
                 DATA          = ALL_VC,
21 22
                 id_sub        = 'vc_keys',
22 23
                 label_key     = 'name',
templates/webpages/ar/form_header.html
39 39
                <th align="right" nowrap>[% 'Customer' | $T8 %]</th>
40 40
                <td colspan=3>
41 41
[%- IF selectcustomer %]
42
    <select id='customer' name="customer" onchange="document.getElementById('update_button').click();">[% selectcustomer %]</select>
42
    <select id='customer' name="customer" onchange="document.getElementById('update_button').click();" class="initial_focus">[% selectcustomer %]</select>
43 43
[%- ELSE %]
44
    <input id='customer' name=customer value="[% customer | html %]" size=35>
44
    <input id='customer' name=customer value="[% customer | html %]" size=35 class="initial_focus">
45 45
[%- END %]
46 46
                <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')"></td>
47 47
                [% L.hidden_tag('selectcustomer', selectcustomer) %]
templates/webpages/ct/form_header.html
80 80
     <tr>
81 81
      <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
82 82
      <td>
83
       <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">&nbsp;
83
       <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]" class="initial_focus">&nbsp;
84 84
       [%- INCLUDE generic/multibox.html
85 85
             name       = 'selected_company_greeting',
86 86
             DATA       = MB_COMPANY_GREETINGS,
templates/webpages/ct/search.html
15 15

  
16 16
   <tr>
17 17
    <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
18
    <td><input id="name" name="name" size="35"></td>
18
    <td><input id="name" name="name" size="35" class="initial_focus"></td>
19 19
   </tr>
20 20

  
21 21
   <tr>
......
174 174

  
175 175
  <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
176 176
 </form>
177

  
templates/webpages/custom_variable_config/form.html
12 12

  
13 13
   <tr>
14 14
    <td align="right">[% 'Variable Name' | $T8 %]<sup><span class="small-text">(1)</span></sup></td>
15
    <td>[%- L.input_tag("config.name", SELF.config.name) %]</td>
15
    <td>[%- L.input_tag("config.name", SELF.config.name, class='initial_focus') %]</td>
16 16
   </tr>
17 17

  
18 18
   <tr>
templates/webpages/dunning/add.html
9 9
    <th align="right">[% 'Customer' | $T8 %]</th>
10 10
    <td colspan="3">
11 11
     [% IF SHOW_CUSTOMER_SELECTION %]
12
      <select name="customer">
12
      <select name="customer" class="initial_focus">
13 13
       <option></option>
14 14
       [% FOREACH row = all_customer %]<option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>[% END %]
15 15
      </select>
16 16
      [% ELSE %]
17
      <input name="customer" size="35">
17
      <input name="customer" size="35" class="initial_focus">
18 18
     [% END %]
19 19
    </td>
20 20
   </tr>
......
81 81
  <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
82 82

  
83 83
 </form>
84

  
85

  
templates/webpages/dunning/search.html
16 16
       <th align="right">[% 'Customer' | $T8 %]</th>
17 17
       <td colspan="3">
18 18
        [% IF SHOW_CUSTOMER_DDBOX %]
19
         <select id='customer' name="customer_id">
19
         <select id='customer' name="customer_id" class="initial_focus">
20 20
          <option value=""></option>
21 21
          [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
22 22
          [% END %]
23 23
         </select>
24 24
         [% ELSE %]
25
         <input id='customer' name="customer" size="35">
25
         <input id='customer' name="customer" size="35" class="initial_focus">
26 26
        [% END %]
27 27
       </td>
28 28
      </tr>
......
120 120
  <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
121 121

  
122 122
 </form>
123

  
templates/webpages/generic/edit_email.html
1 1
[%- USE T8 %]
2
[%- USE HTML %]
2
[%- USE HTML %][%- USE L -%]
3 3
<form name="Form" method="post" action="[% script %]">
4 4

  
5 5
<table width="100%">
......
14 14
        <tr>
15 15
          <th align="right" nowrap>[% 'To' | $T8 %]</th>
16 16

  
17
          <td><input id="email" name="email" size="30" value="[% HTML.escape(email) %]"></td>
17
          <td>[% L.input_tag('email', email, size=30, class=(email ? '' : 'initial_focus')) %]</td>
18 18
        </tr>
19 19
        <tr>
20 20
          <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
......
28 28
        <tr>
29 29
          <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
30 30

  
31
          <td><input id="subject" name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
31
          <td>[% L.input_tag('subject', subject, size=30, class=(email ? 'initial_focus' : '')) %]</td>
32 32
        </tr>
33 33
        <tr>
34 34
          <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>
......
70 70
<br>
71 71
<input name="action" class="submit" type="submit" value="[% 'Continue' | $T8 %]">
72 72
</form>
73

  
templates/webpages/ic/form_header.html
51 51
            <table>
52 52
             <tr>
53 53
              <th align="right">[% 'Part Number' | $T8 %]</th>
54
              <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
54
              <td><input id='partnumber' name="partnumber" value="[% HTML.escape(partnumber) %]" size="40" class="initial_focus"></td>
55 55
             </tr>
56 56
             <tr>
57 57
              <th align="right">[% 'Part Description' | $T8 %]</th>
templates/webpages/ir/form_header.html
48 48
                 id            = 'vendor',
49 49
                 name          = 'vendor',
50 50
                 style         = 'width: 250px',
51
                 class         = 'initial_focus',
51 52
                 DATA          = ALL_VENDORS,
52 53
                 id_sub        = 'vc_keys',
53 54
                 label_key     = 'name',
templates/webpages/is/form_header.html
49 49
                 id            = 'customer',
50 50
                 name          = 'customer',
51 51
                 style         = 'width: 250px',
52
                 class         = 'initial_focus',
52 53
                 DATA          = ALL_CUSTOMERS,
53 54
                 id_sub        = 'vc_keys',
54 55
                 label_key     = 'name',
templates/webpages/login_screen/user_login.html
29 29
          <table>
30 30
           <tr>
31 31
            <th align="right">[% 'Login Name' | $T8 %]</th>
32
            <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style) %]</td>
32
            <td>[% L.input_tag('{AUTH}login', '', id='auth_login', style=style, class='initial_focus') %]</td>
33 33
           </tr>
34 34
           <tr>
35 35
            <th align="right">[% 'Password' | $T8 %]</th>
templates/webpages/project/form.html
26 26
    <table>
27 27
     <tr>
28 28
      <th align="right">[% 'Number' | $T8 %]</th>
29
      <td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60) %]</td>
29
      <td>[% L.input_tag("project.projectnumber", SELF.project.projectnumber, size=60, class='initial_focus') %]</td>
30 30
     </tr>
31 31

  
32 32
     <tr>

Auch abrufbar als: Unified diff