Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9f03a417

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 9f03a41723e3e25a67a83b593a81ac0c35304f3a
  • Vorgänger 630381a0
  • Nachfolger 3810e6cd

Neues Design 2019 Standard-Code templates/webpages/price_rule/empty_item.html

Unterschiede anzeigen:

templates/webpages/price_rule/_filter.html
1
<form action='controller.pl' method='post' id='search_form'>
2
<div class='filter_toggle'>
3
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
4
  [% SELF.filter_summary | html %]
5 1
[% USE T8 %]
6 2
[% USE L %]
7 3
[% USE P %]
8 4
[% USE LxERP %]
9 5
[% USE HTML %]
10 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>
11 107
</div>
12
<div class='filter_toggle' style='display:none'>
13
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
14
 <table id='filter_table'>
15
  <tr>
16
   <th align="right">[% 'Description' | $T8 %]</th>
17
   <td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, style='width: 300px') %]</td>
18
  </tr>
19
  <tr>
20
   <th align="right">[% 'Type' | $T8 %]</th>
21
   <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>
22
  </tr>
23
  <tr>
24
   <th align="right">[% 'Part' | $T8 %]</th>
25
   <td>[% P.part.picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, style='width: 300px') %]</td>
26
  </tr>
27
  <tr id='price_rule_filter_customer_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]>
28
   <th align="right">[% 'Customer' | $T8 %]</th>
29
   <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>
30
  </tr>
31
  <tr id='price_rule_filter_vendor_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]>
32
   <th align="right">[% 'Vendor' | $T8 %]</th>
33
   <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>
34
  </tr>
35
  <tr>
36
   <th align="right">[% 'Business' | $T8 %]</th>
37
   <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>
38
  </tr>
39
  <tr>
40
   <th align="right">[% 'Partsgroup' | $T8 %]</th>
41
   <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>
42
  </tr>
43
  <tr>
44
   <th align="right">[% 'Qty' | $T8 %]</th>
45
   <td>[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, style='width: 300px') %]</td>
46
  </tr>
47
  <tr>
48
   <th align="right">[% 'Reqdate' | $T8 %]</th>
49
   <td>[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, style='width: 300px') %]</td>
50
  </tr>
51
  <tr>
52
   <th align="right">[% 'Transdate Record' | $T8 %]</th>
53
   <td>[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, style='width: 300px') %]</td>
54
  </tr>
55
  <tr>
56
   <th align="right">[% 'Pricegroup' | $T8 %]</th>
57
   <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>
58
   </td>
59
  </tr>
60
  <tr>
61
   <th align="right">[% 'Price' | $T8 %]</th>
62
   <td>[% L.input_tag('filter.price:number', filter.price_number, size=20, style='width: 300px') %]</td>
63
  </tr>
64
  <tr>
65
   <th align="right">[% 'Reduced Master Data' | $T8 %]</th>
66
   <td>[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, style='width: 300px') %]</td>
67
  </tr>
68
  <tr>
69
   <th align="right">[% 'Discount' | $T8 %]</th>
70
   <td>[% L.input_tag('filter.discount:number', filter.discount_number, size=20, style='width: 300px') %]</td>
71
  </tr>
72
  <tr>
73
   <th align="right">[% 'Priority' | $T8 %]</th>
74
   <td>[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, style='width: 300px') %]</td>
75
  </tr>
76
  <tr>
77
   <th align="right">[% 'Obsolete' | $T8 %]</th>
78
   <td>[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, style='width: 300px') %]</td>
79
  </tr>
80
  <tr>
81
   <th align="right">[% 'Has item type' | $T8 %]</th>
82
   <td>
83
     [%- FOREACH type = SELF.all_price_rule_item_types %]
84
       [%- L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0})  %]
85
     [%- END %]
86
   </td>
87
  </tr>
88
 </table>
89 108

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

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

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

  
118
</div>
97 119
</form>
templates/webpages/price_rule/empty_item.html
1
[% L.select_tag('', SELF.all_price_rule_item_types, id='price_rules_empty_item_select') %]
2
<a id='price_rule_item_add' class='cursor-pointer'>[% 'Add new price rule item' | $T8 %]</a>
3 1
[% USE L %]
4 2
[% USE T8 %]
3
<tr>
4
  <td>&nbsp;</td>
5
  <td>[% L.select_tag('', SELF.all_price_rule_item_types, id='price_rules_empty_item_select') %]</td>
6
  <td colspan="2">
7
    <a id="price_rule_item_add" class="button cursor-pointer">[% 'Add new price rule item' | $T8 %]</a>
8
</td>
9
</tr>
10

  

Auch abrufbar als: Unified diff