Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 518e6454

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 518e6454ac06fa1702a0545af972e085d28db885
  • Vorgänger cf9865dc
  • Nachfolger ab382ff2

Verkaufsrechnungssuche: Inputs gleich lang gemacht

Naja gut… so gleich lang, wie Inputs nun mal werden, wenn man sie alle
auf eine einheitliche Breite setzt. Comboboxes werden trotzdem leicht
schmaler gerendert.

Unterschiede anzeigen:

templates/webpages/ar/search.html
1 1
[%- USE T8 %]
2 2
[%- USE L %][%- USE P -%]
3
[%- SET style="width: 250px" %]
3 4
<h1>[% title %]</h1>
4 5

  
5 6
 <form method=post name="search" action=[% script %]>
......
10 11
    <table>
11 12
     <tr>
12 13
      <th align=right>[% 'Customer' | $T8 %]</th>
13
      <td colspan=3>[% L.input_tag("customer", customer, style="width: 250px", class="initial_focus") %]</td>
14
      <td>[% L.input_tag("customer", customer, style=style, class="initial_focus") %]</td>
14 15
     </tr>
15 16
    <tr>
16 17
     <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
17
     <td colspan="3">[% L.input_tag("cp_name", '', size=20) %]</td>
18
     <td>[% L.input_tag("cp_name", '', style=style) %]</td>
18 19
    </tr>
19 20
     <tr>
20 21
      <th align=right nowrap>[% 'Department' | $T8 %]</th>
21
      <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1, style="width: 200px") %]</td>
22
      <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1, style=style) %]</td>
22 23
     </tr>
23 24
     <tr>
24 25
      <th align=right nowrap>[% 'Invoice Number' | $T8 %]</th>
25
      <td colspan=3><input name=invnumber id=invnumber size=20></td>
26
      <td>[% L.input_tag("invnumber", "", style=style) %]</td>
26 27
     </tr>
27 28
     <tr>
28 29
      <th align=right nowrap>[% 'Order Number' | $T8 %]</th>
29
      <td colspan=3><input name=ordnumber id=ordnumber size=20></td>
30
      <td>[% L.input_tag("ordnumber", "", style=style) %]</td>
30 31
     </tr>
31 32
     <tr>
32 33
      <th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
33
      <td colspan=3><input name="cusordnumber" id="cusordnumber" size="20"></td>
34
      <td>[% L.input_tag("cusordnumber", "", style=style) %]</td>
34 35
     </tr>
35 36
     <tr>
36 37
      <th align="right">[% 'Employee' | $T8 %]</th>
37
      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
38
      <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style=style) %]</td>
38 39
     </tr>
39 40
    <tr>
40 41
     <th align="right">[% 'Salesman' | $T8 %]</th>
41
     <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
42
     <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style=style) %]</td>
42 43
     </tr>
43 44
     <tr>
44 45
      <th align=right nowrap>[% 'Transaction description' | $T8 %]</th>
45
      <td><input name=transaction_description id=transaction_description size=20></td>
46
      <td>[% L.input_tag("transaction_description", "", style=style) %]</td>
46 47
      <th align="right">[% 'Part Description' | $T8 %]</th>
47
      <td><input name="parts_description" size="20"></td>
48
      <td>[% L.input_tag("parts_description", "", style=style) %]</td>
48 49
     </tr>
49 50
     <tr>
50 51
      <th align=right nowrap>[% 'Notes' | $T8 %]</th>
51
      <td><input name=notes id=notes size=20></td>
52
      <td>[% L.input_tag("notes", "", style=style) %]</td>
52 53
      <th align="right">[% 'Part Number' | $T8 %]</th>
53
      <td><input name="parts_partnumber" size="20"></td>
54
      <td>[% L.input_tag("parts_partnumber", "", style=style) %]</td>
54 55
     </tr>
55 56
     <tr>
56 57
      <th align="right">[% 'Project Number' | $T8 %]</th>
57
      <td colspan="3">[% P.project_picker("project_id", project_id, style="width: 250px") %]</td>
58
      <td>[% P.project_picker("project_id", project_id, style=style) %]</td>
58 59
     </tr>
59 60
    [% IF ALL_BUSINESS_TYPES.as_list.size > 0 %]
60 61
     <tr>
61 62
      <th align="right" nowrap>[% 'Customer type' | $T8 %]</th>
62
      <td colspan="3">[% L.select_tag("business_id", ALL_BUSINESS_TYPES, with_empty=1, title_key="description", style="width: 250px") %]</td>
63
      <td>[% L.select_tag("business_id", ALL_BUSINESS_TYPES, with_empty=1, title_key="description", style=style) %]</td>
63 64
     </tr>
64 65
    [% END %]
65 66
     <tr>
66 67
      <th align=right nowrap>[% 'Invoice Date' | $T8 %]</th>
67 68
      <td>
68
       [% 'From' | $T8 %]
69 69
       [% L.date_tag('transdatefrom') %]
70
      </td>
71
     <th align=right>[% 'Bis' | $T8 %]</th>
72
     <td>
73
      [% L.date_tag('transdateto') %]
70
       [% 'Bis' | $T8 %]
71
       [% L.date_tag('transdateto') %]
74 72
     </td>
75 73
    </tr>
76 74
     <tr>
77 75
      <th align=right nowrap>[% 'Due Date' | $T8 %]</th>
78 76
      <td>
79
       [% 'From' | $T8 %]
80 77
       [% L.date_tag('duedatefrom') %]
81
      </td>
82
     <th align=right>[% 'Bis' | $T8 %]</th>
83
     <td>
84
      [% L.date_tag('duedateto') %]
78
       [% 'Bis' | $T8 %]
79
       [% L.date_tag('duedateto') %]
85 80
     </td>
86 81
    </tr>
87 82

  

Auch abrufbar als: Unified diff