Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 39142143

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 39142143bbd0bb05c6f6df02b77a95645dc96dbc
  • Vorgänger 9adf4656
  • Nachfolger 5382e2b6

Neues Design 2019 Standard-Code templates/webpages/delivery_plan/_filter.html

Unterschiede anzeigen:

templates/webpages/delivery_plan/_filter.html
4 4
[% USE HTML %]
5 5

  
6 6
<form action='controller.pl' method='post' id='filter_form'>
7
<div class='filter_toggle'>
8
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
9
  [% SELF.filter_summary | html %]
10
</div>
11
<div class='filter_toggle' style='display:none'>
12
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
13
 <table id='filter_table'>
14
  <tr>
15
   <th align="right">[% 'Number' | $T8 %]</th>
16
   <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td>
17
  </tr>
18
  <tr>
19
   <th align="right">[% 'Document Project Number' | $T8 %]</th>
20
   <td>[% L.input_tag('filter.order.globalproject.projectnumber:substr::ilike', filter.order.globalproject.projectnumber_substr__ilike, size = 20) %]</td>
21
  </tr>
22
  <tr>
23
   <th align="right">[% 'Part Number' | $T8 %]</th>
24
   <td>[% L.input_tag('filter.part.partnumber:substr::ilike', filter.part.partnumber_substr__ilike, size = 20) %]</td>
25
  </tr>
26
  <tr>
27
   <th align="right">[% 'Part Description' | $T8 %]</th>
28
   <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td>
29
  </tr>
30
  <tr>
31
   <th align="right">[% 'Delivery Date' | $T8 %] [% 'From Date' | $T8 %]</th>
32
   <td>[% L.date_tag('filter.reqdate:date::ge', filter.reqdate_date__ge) %]</td>
33
  </tr>
34
  <tr>
35
   <th align="right">[% 'Delivery Date' | $T8 %] [% 'To Date' | $T8 %]</th>
36
   <td>[% L.date_tag('filter.reqdate:date::le', filter.reqdate_date__le) %]</td>
37
  </tr>
38
  <tr>
39
   <th align="right">[% 'Quantity' | $T8 %]</th>
40
   <td>[% L.input_tag('filter.qty:number', filter.qty_number, size = 20) %]</td>
41
  </tr>
42
[% IF SELF.vc == 'customer' %]
7

  
8
<div class="wrapper">
9

  
10
[% BLOCK filter_toggle_panel %]
11
<div class="wrapper">
12
<table id='filter_table' class="tbl-horizontal">
13
  <caption>[% 'Order & Articles' | $T8 %]</caption>
14
	<colgroup> <col class="wi-small"><col class="wi-normal"> </colgroup>
15
  <tbody>
43 16
    <tr>
44
     <th align="right">[% 'Customer' | $T8 %]</th>
45
     <td>[% L.input_tag('filter.order.customer.name:substr::ilike', filter.order.customer.name_substr__ilike, size = 20) %]</td>
46
   </tr>
47
   <tr>
48
    <th align="right">[% 'Customer Number' | $T8 %]</th>
49
    <td>[% L.input_tag('filter.order.customer.customernumber:substr::ilike', filter.order.customer.customernumber_substr__ilike, size = 20) %]</td>
50
   </tr>
51
[% ELSE %]  <tr>
52
    <th align="right">[% 'Vendor' | $T8 %]</th>
53
    <td>[% L.input_tag('filter.order.vendor.name:substr::ilike', filter.order.vendor.name_substr__ilike, size = 20) %]</td>
54
   </tr>
55
   <tr>
56
    <th align="right">[% 'Vendor Number' | $T8 %]</th>
57
    <td>[% L.input_tag('filter.order.vendor.vendornumber:substr::ilike', filter.order.vendor.vendornumber_substr__ilike, size = 20) %]</td>
58
   </tr>
59
[% END %]
60
  <tr>
61
   <th align="right">[% 'Customer type' | $T8 %]</th>
62
   <td>
63
     [% L.select_tag('filter.order.customer.business_id', SELF.all_businesses,
64
                     default    => filter.order.customer.business_id,
65
                     title_key  => 'description',
66
                     value_key  => 'id',
67
                     with_empty => 1,
68
                     style      => 'width: 200px') %]
69
   </td>
70
  </tr>
71
  <tr>
72
   <th align="right">[% 'Employee' | $T8 %]</th>
73
   <td>
74
     [% L.select_tag('filter.order.employee_id', SELF.all_employees,
75
                     default    => filter.order.employee_id,
76
                     title_key  => 'name',
77
                     value_key  => 'id',
78
                     with_empty => 1,
79
                     style      => 'width: 200px') %]
80
   </td>
81
  </tr>
82
  [%- IF SELF.all_departments.size %]
17
      <th>[% 'Number' | $T8 %]</th>
18
      <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, class='wi-normal') %]</td>
19
    </tr>
83 20
    <tr>
84
      <th align="right">[% 'Department' | $T8 %]</th>
21
      <th>[% 'Document Project Number' | $T8 %]</th>
22
      <td>[% L.input_tag('filter.order.globalproject.projectnumber:substr::ilike', filter.order.globalproject.projectnumber_substr__ilike, class='wi-normal') %]</td>
23
    </tr>
24
    <tr>
25
      <th>[% 'Part Number' | $T8 %]</th>
26
      <td>[% L.input_tag('filter.part.partnumber:substr::ilike', filter.part.partnumber_substr__ilike, class='wi-normal') %]</td>
27
    </tr>
28
    <tr>
29
      <th>[% 'Part Description' | $T8 %]</th>
30
      <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-normal') %]</td>
31
    </tr>
32
    <tr>
33
      <th>[% 'Quantity' | $T8 %]</th>
34
      <td>[% L.input_tag('filter.qty:number', filter.qty_number, class='wi-normal') %]</td>
35
    </tr>
36
    <tr>
37
      <th>[% 'Type' | $T8 %]</th>
85 38
      <td>
86
        [% L.select_tag('filter.order.department_id', SELF.all_departments, default=filter.order.department_id, title_key='description', with_empty=1, style='width:200px') %]
39
        [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.part,     value='part',     label=LxERP.t8('Part')) %]
40
        [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.service,  value='service',  label=LxERP.t8('Service')) %]
41
        [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assembly, value='assembly', label=LxERP.t8('Assembly')) %]
42
        [% IF INSTANCE_CONF.get_feature_experimental_assortment %]
43
          [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assortment, value='assortment', label=LxERP.t8('Assortment')) %]
44
        [% END %]
45
      </td>
46
    </tr>
47
  </tbody>
48
</table>
49

  
50
<table class="tbl-horizontal">
51
	<caption>[% IF SELF.vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</caption>
52
	<colgroup> <col class="wi-small"><col class="wi-mediumsmall"> </colgroup>
53
	<tbody>
54
    [% IF SELF.vc == 'customer' %]
55
      <tr>
56
        <th>[% 'Customer' | $T8 %]</th>
57
        <td>[% L.input_tag('filter.order.customer.name:substr::ilike', filter.order.customer.name_substr__ilike, class='wi-mediumsmall') %]</td>
58
      </tr>
59
      <tr>
60
        <th>[% 'Customer Number' | $T8 %]</th>
61
        <td>[% L.input_tag('filter.order.customer.customernumber:substr::ilike', filter.order.customer.customernumber_substr__ilike, class='wi-mediumsmall') %]</td>
62
      </tr>
63
      <tr>
64
        <th>[% 'Customer type' | $T8 %]</th>
65
        <td>[% L.select_tag('filter.order.customer.business_id', SELF.all_businesses,
66
             default    => filter.order.customer.business_id,
67
             title_key  => 'description',
68
             value_key  => 'id',
69
             with_empty => 1,
70
             class      => 'wi-mediumsmall') %]
71
        </td>
72
      </tr>
73
    [% ELSE %]
74
      <tr>
75
        <th>[% 'Vendor' | $T8 %]</th>
76
        <td>[% L.input_tag('filter.order.vendor.name:substr::ilike', filter.order.vendor.name_substr__ilike, class='wi-mediumsmall') %]</td>
77
      </tr>
78
      <tr>
79
        <th>[% 'Vendor Number' | $T8 %]</th>
80
        <td>[% L.input_tag('filter.order.vendor.vendornumber:substr::ilike', filter.order.vendor.vendornumber_substr__ilike, class='wi-mediumsmall') %]</td>
81
      </tr>
82
    [% END %]
83
	</tbody>
84
</table>
85

  
86
<table class="tbl-horizontal">
87
	<caption>[% 'Handling' | $T8 %]</caption>
88
	<colgroup> <col class="wi-small"><col class="wi-normal"> </colgroup>
89
	<tbody>
90
    <tr>
91
      <th>[% 'Delivery Date' | $T8 %] [% 'From Date' | $T8 %]</th>
92
      <td class="wi-date">[% L.date_tag('filter.reqdate:date::ge', filter.reqdate_date__ge) %]</td>
93
    </tr>
94
    <tr>
95
      <th>[% 'Delivery Date' | $T8 %] [% 'To Date' | $T8 %]</th>
96
      <td class="wi-date">[% L.date_tag('filter.reqdate:date::le', filter.reqdate_date__le) %]</td>
97
    </tr>
98
    [% IF SELF.all_departments.size %]
99
      <tr>
100
        <th>[% 'Department' | $T8 %]</th>
101
        <td>[% L.select_tag('filter.order.department_id', SELF.all_departments, default=filter.order.department_id, title_key='description', with_empty=1, class='wi-lightwide') %]</td>
102
      </tr>
103
    [% END %]
104
    <tr>
105
      <th>[% 'Employee' | $T8 %]</th>
106
      <td>[% L.select_tag('filter.order.employee_id', SELF.all_employees,
107
           default    => filter.order.employee_id,
108
           title_key  => 'name',
109
           value_key  => 'id',
110
           with_empty => 1,
111
           class      => 'wi-lightwide') %]
87 112
      </td>
88 113
    </tr>
89
  [%- END %]
90
  <tr>
91
   <th align="right">[% 'Type' | $T8 %]</th>
92
   <td>
93
     [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.part,     value='part',     label=LxERP.t8('Part')) %]
94
     [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.service,  value='service',  label=LxERP.t8('Service')) %]
95
     [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assembly, value='assembly', label=LxERP.t8('Assembly')) %]
96
     [%- IF INSTANCE_CONF.get_feature_experimental_assortment %]
97
       [% L.checkbox_tag('filter.part.part_type[]', checked=filter.part.part_type_.assortment, value='assortment', label=LxERP.t8('Assortment')) %]
98
     [% END %]
99
   </td>
100
  </tr>
101
  <tr>
102
   <th align="right">[% 'Query Type' | $T8 %]</th>
103
   <td>
104
     [% L.checkbox_tag('use_linked_items', checked=use_linked_items, value='1', label=LxERP.t8('Use linked items')) %]
105
   </td>
106
  </tr>
107
 </table>
114
	</tbody>
115
</table>
116

  
117
</div><!-- /.wrapper -->
118

  
119
<div class="wrapper">
120
  <table class="tbl-horizontal">
121
    <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
122
    <tbody>
123
      <tr>
124
        <th>[% 'Query Type' | $T8 %]</th>
125
        <td>[% L.checkbox_tag('use_linked_items', checked=use_linked_items, value='1', label=LxERP.t8('Use linked items')) %]</td>
126
      </tr>
127
    </tbody>
128
  </table>
129
</div><!-- /.wrapper -->
108 130

  
109 131
[% L.hidden_tag('sort_by', FORM.sort_by) %]
110 132
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
111 133
[% L.hidden_tag('page', FORM.page) %]
112 134
[% L.hidden_tag('vc', SELF.vc) %]
113 135
[% L.hidden_tag('mode', SELF.mode) %]
114
[% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
136
<div class="buttons">
137
  [% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset'), class='neutral') %]
115 138
</div>
116 139

  
140
[% END # /BLOCK filter_toggle_panel %]
141

  
142
[% INCLUDE 'common/toggle_panel.html' %]
143

  
144
</div><!-- /.wrapper -->
145

  
117 146
</form>

Auch abrufbar als: Unified diff