Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3d00705b

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 3d00705b5a6228863eb48e9fabf79ce5a42e53a1
  • Vorgänger 1da86bc7
  • Nachfolger 9d0fc9cc

Neues kivitendo Design Aenderungen in templates/webpages/price_rule/..

Unterschiede anzeigen:

templates/webpages/price_rule/_filter.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE P %]
4
[%- USE LxERP %]
5
[%- USE HTML %]
6
<form action='controller.pl' method='post' id='search_form'>
7
<div class='filter_toggle'>
8
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
9
  [% SELF.filter_summary | html %]
1
[% USE T8 %]
2
[% USE L %]
3
[% USE P %]
4
[% USE LxERP %]
5
[% USE HTML %]
6

  
7
<form action="controller.pl" method="post" id="search_form">
8

  
9
<div class="wrapper">
10

  
11
[% BLOCK filter_toggle_panel %]
12
[%
13
  # This code contains the form elements within the .filter-toggle-panel
14
  # This block must bear the name filter_toggle_panel
15
  # For more info have a look in common/toggle_panel.html
16
%]
17
<table id="filter_table" class="tbl-horizontal">
18
  <caption>[% 'Part' | $T8 %]</caption>
19
  <tbody>
20
    <tr>
21
      <th>[% 'Description' | $T8 %]</th>
22
      <td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, class="wi-normal") %]</td>
23
    </tr>
24
    <tr>
25
      <th>[% 'Type' | $T8 %]</th>
26
      <td>[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', class="wi-normal") %]</td>
27
    </tr>
28
    <tr>
29
      <th>[% 'Part' | $T8 %]</th>
30
      <td>[% P.part.picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, class="wi-normal") %]</td>
31
    </tr>
32
    <tr>
33
      <th>[% 'Partsgroup' | $T8 %]</th>
34
      <td>[% L.select_tag('filter.item_type_matches[].partsgroup', SELF.partsgroups, title_key='partsgroup', default=FORM.filter.item_type_matches.0.partsgroup, with_empty=1, class="wi-normal") %]</td>
35
    </tr>
36
    <tr>
37
      <th>[% 'Qty' | $T8 %]</th>
38
      <td>[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, class="wi-normal") %]</td>
39
    </tr>
40
    <tr id="price_rule_filter_customer_tr"[% ' style="display:none" ' UNLESS SELF.vc== 'customer' %]>
41
      <th>[% 'Customer' | $T8 %]</th>
42
      <td>[% P.customer_vendor.picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', class="wi-normal") %]</td>
43
    </tr>
44
    <tr id="price_rule_filter_vendor_tr"[% ' style="display:none" ' UNLESS SELF.vc== 'customer' %]><!-- PENDENT: Korrekt mit customer? -->
45
      <th>[% 'Vendor' | $T8 %]</th>
46
      <td>[% P.customer_vendor.picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', class="wi-normal") %]</td>
47
    </tr>
48
    <tr>
49
      <th>[% 'Business' | $T8 %]</th>
50
      <td>[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, class="wi-normal") %]</td>
51
    </tr>
52
  </tbody>
53
</table>
54

  
55
<table id="filter_table" class="tbl-horizontal">
56
  <caption>[% 'Dates' | $T8 %]</caption>
57
  <tbody>
58
    <tr>
59
      <th>[% 'Reqdate' | $T8 %]</th>
60
      <td>[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, class="wi-date") %]</td>
61
    </tr>
62
    <tr>
63
      <th>[% 'Transdate Record' | $T8 %]</th>
64
      <td>[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, class="wi-date") %]</td>
65
    </tr>
66
    <tr>
67
      <th class="caption" colspan="2">[% 'Prices & Discounts' | $T8 %]</th>
68
    </tr>
69
    <tr>
70
    <th>[% 'Pricegroup' | $T8 %]</th>
71
    <td>[% L.select_tag('filter.item_type_matches[].pricegroup', SELF.pricegroups, default=FORM.filter.item_type_matches.0.pricegroup, title_key='pricegroup', with_empty=1, class="wi-normal") %]<br>
72
    </td>
73
    </tr>
74
    <tr>
75
      <th>[% 'Price' | $T8 %]</th>
76
      <td>[% L.input_tag('filter.price:number', filter.price_number, size=20, class="wi-normal") %]</td>
77
    </tr>
78
    <tr>
79
      <th>[% 'Reduced Master Data' | $T8 %]</th>
80
      <td>[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, class="wi-normal") %]</td>
81
    </tr>
82
    <tr>
83
      <th>[% 'Discount' | $T8 %]</th>
84
      <td>[% L.input_tag('filter.discount:number', filter.discount_number, size=20, class="wi-normal") %]</td>
85
    </tr>
86
    <tr>
87
      <th class="caption" colspan="2">[% 'Status' | $T8 %]</th>
88
    </tr>
89
    <tr>
90
      <th>[% 'Priority' | $T8 %]</th>
91
      <td>[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, class="wi-normal") %]</td>
92
    </tr>
93
    <tr>
94
      <th>[% 'Obsolete' | $T8 %]</th>
95
      <td>[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, class="wi-normal") %]</td>
96
    </tr>
97
  </tbody>
98
</table>
99

  
100
<div class="col list">
101
<h3 class="caption">[% 'Has item type' | $T8 %]</h3>
102
<div>
103
  [% FOREACH type = SELF.all_price_rule_item_types %]
104
    [% L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0})  %]<br>
105
  [% END %]
106
</div>
10 107
</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">[% 'Description' | $T8 %]</th>
16
   <td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, style='width: 300px') %]</td>
17
  </tr>
18
  <tr>
19
   <th align="right">[% 'Type' | $T8 %]</th>
20
   <td>[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', style='width: 300px') %]</td>
21
  </tr>
22
  <tr>
23
   <th align="right">[% 'Part' | $T8 %]</th>
24
   <td>[% P.part.picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, style='width: 300px') %]</td>
25
  </tr>
26
  <tr id='price_rule_filter_customer_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]>
27
   <th align="right">[% 'Customer' | $T8 %]</th>
28
   <td>[% P.customer_vendor.picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', style='width: 300px') %]</td>
29
  </tr>
30
  <tr id='price_rule_filter_vendor_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]>
31
   <th align="right">[% 'Vendor' | $T8 %]</th>
32
   <td>[% P.customer_vendor.picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', style='width: 300px') %]</td>
33
  </tr>
34
  <tr>
35
   <th align="right">[% 'Business' | $T8 %]</th>
36
   <td>[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, style='width: 300px') %]</td>
37
  </tr>
38
  <tr>
39
   <th align="right">[% 'Partsgroup' | $T8 %]</th>
40
   <td>[% L.select_tag('filter.item_type_matches[].partsgroup', SELF.partsgroups, title_key='partsgroup', default=FORM.filter.item_type_matches.0.partsgroup, with_empty=1, style='width: 300px') %]</td>
41
  </tr>
42
  <tr>
43
   <th align="right">[% 'Qty' | $T8 %]</th>
44
   <td>[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, style='width: 300px') %]</td>
45
  </tr>
46
  <tr>
47
   <th align="right">[% 'Reqdate' | $T8 %]</th>
48
   <td>[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, style='width: 300px') %]</td>
49
  </tr>
50
  <tr>
51
   <th align="right">[% 'Transdate Record' | $T8 %]</th>
52
   <td>[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, style='width: 300px') %]</td>
53
  </tr>
54
  <tr>
55
   <th align="right">[% 'Pricegroup' | $T8 %]</th>
56
   <td>[% L.select_tag('filter.item_type_matches[].pricegroup', SELF.pricegroups, default=FORM.filter.item_type_matches.0.pricegroup, title_key='pricegroup', with_empty=1, style='width: 300px') %]<br>
57
   </td>
58
  </tr>
59
  <tr>
60
   <th align="right">[% 'Price' | $T8 %]</th>
61
   <td>[% L.input_tag('filter.price:number', filter.price_number, size=20, style='width: 300px') %]</td>
62
  </tr>
63
  <tr>
64
   <th align="right">[% 'Reduced Master Data' | $T8 %]</th>
65
   <td>[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, style='width: 300px') %]</td>
66
  </tr>
67
  <tr>
68
   <th align="right">[% 'Discount' | $T8 %]</th>
69
   <td>[% L.input_tag('filter.discount:number', filter.discount_number, size=20, style='width: 300px') %]</td>
70
  </tr>
71
  <tr>
72
   <th align="right">[% 'Priority' | $T8 %]</th>
73
   <td>[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, style='width: 300px') %]</td>
74
  </tr>
75
  <tr>
76
   <th align="right">[% 'Obsolete' | $T8 %]</th>
77
   <td>[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, style='width: 300px') %]</td>
78
  </tr>
79
  <tr>
80
   <th align="right">[% 'Has item type' | $T8 %]</th>
81
   <td>
82
     [%- FOREACH type = SELF.all_price_rule_item_types %]
83
       [%- L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0})  %]
84
     [%- END %]
85
   </td>
86
  </tr>
87
 </table>
88 108

  
89 109
[% L.hidden_tag('sort_by', FORM.sort_by) %]
90 110
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
91 111
[% L.hidden_tag('page', FORM.page) %]
92 112

  
93
 [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
94
</div>
113
<div class="buttons"> [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset Filter"), class='neutral', type='reset') %]</div>
95 114

  
115
[% END #BLOCK filter_toggle_panel %]
116
[% INCLUDE 'common/toggle_panel.html' %]
117

  
118
</div>
96 119
</form>

Auch abrufbar als: Unified diff