Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e45fc88e

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

  • ID e45fc88ed0b2fb12635bb13f17b39b07ff10495e
  • Vorgänger 6b7dea91
  • Nachfolger 1da86bc7

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

Unterschiede anzeigen:

templates/webpages/order/tabs/_price_sources_dialog.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE L %]
4
[%- USE LxERP %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
5 5
[% SET best_price = price_source.best_price %]
6 6
[% SET best_discount = price_source.best_discount %]
7 7
[% SET price_editable = AUTH.assert('edit_prices', 1) %]
8
  <h2>[% 'Prices' | $T8 %]</h2>
9 8

  
10
  <table>
11
   <tr class='listheading'>
12
    <th></th>
13
    <th>[% 'Price Source' | $T8 %]</th>
14
    <th>[% 'Price' | $T8 %]</th>
15
    <th>[% 'Best Price' | $T8 %]</th>
16
    <th>[% 'Details' | $T8 %]</th>
17
   </tr>
18
   <tr class='listrow'>
19
[%- IF price_source.record_item.active_price_source %]
20
    <td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
21
[%- ELSE %]
22
    <td><b>[% 'Selected' | $T8 %]</b></td>
23
[%- END %]
24
    <td>[% 'None (PriceSource)' | $T8 %]</td>
25
    <td>-</td>
26
    <td></td>
27
    <td></td>
28
   </tr>
29
   [%- FOREACH price IN price_source.available_prices %]
30
    <tr class='listrow'>
31
[%- IF price_source.record_item.active_price_source != price.source %]
32
     <td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
33
[%- ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %]
34
     <td>[% L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', LxERP.t8('Update Price')) %]</td>
35
[%- ELSE %]
36
    <td><b>[% 'Selected' | $T8 %]</b></td>
37
[% END %]
38
     <td>[% price.source_description | html %]</td>
39
     <td>[% price.price_as_number %]</td>
40
[% IF price.source == best_price.source %]
41
     <td align='center'>&#x2022;</td>
42
[% ELSE %]
43
     <td></td>
44
[% END %]
45
     <td>[% price.description | html %]</td>
9
<h2>[% 'Prices' | $T8 %]</h2>
10

  
11

  
12
<table class="tbl-list">
13
  <thead>
14
    <tr>
15
      <th></th>
16
      <th>[% 'Price Source' | $T8 %]</th>
17
      <th>[% 'Price' | $T8 %]</th>
18
      <th>[% 'Best Price' | $T8 %]</th>
19
      <th>[% 'Details' | $T8 %]</th>
20
    </tr>
21
  </thead>
22
  <tbody>
23
    <tr>
24
      [% IF price_source.record_item.active_price_source %]
25
        <td><!-- PENDENT: a.buttons komplett ueberpruefen und L.button_tag() deaktivieren oder loeschen (3 Stueck hier, siehe weiter unten) -->
26
        <a class="button neutral" onclick="kivi.Order.update_price_source('[% FORM.item_id %]', '', '[% LxERP.t8('None (PriceSource)') %]' , '', [% price_editable %])">[% LxERP.t8('Select') %] </a>
27
        [% #L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]
28
        </td>
29
      [% ELSE %]
30
        <td><b>[% 'Selected' | $T8 %]</b></td>
31
      [% END %]
32
      <td>[% 'None (PriceSource)' | $T8 %]</td>
33
      <td>-</td>
34
      <td></td>
35
      <td></td>
46 36
    </tr>
47
   [%- END %]
48
  </table>
37
    [% FOREACH price IN price_source.available_prices %]
38
    <tr>
39
      [% IF price_source.record_item.active_price_source != price.source %]
40
        <td>
41
          <a class="button neutral" onclick="kivi.Order.update_price_source('[% FORM.item_id %]', '[% price.source %]', '[% price.source_description %]', '[% LxERP.format_amount(price.price, -2) %]', [% price_editable %])">[% LxERP.t8('Select') %] </a>
42
          [% #L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', ) %]
43
        </td>
44
      [% ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %]
45
        <td>
46
          <a class="button neutral" onclick="kivi.Order.update_price_source('[% FORM.item_id %]', '[% price.source %]', '[% price.source_description %]', '[% LxERP.format_amount(price.price, -2) %]', [% price_editable %])">[% LxERP.t8('Update Price') %] </a>
47
          [% #L.button_tag('kivi.Order.update_price_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\', ' _ price_editable _ ')', LxERP.t8('Update Price')) %]
48
        </td>
49
      [% ELSE %]
50
        <td><b>[% 'Selected' | $T8 %]</b></td>
51
      [% END %]
52
      <td>[% price.source_description | html %]</td>
53
      <td>[% price.price_as_number %]</td>
54
      [% IF price.source == best_price.source %]
55
        <td>&#x2022;</td>
56
      [% ELSE %]
57
        <td></td>
58
      [% END %]
59
      <td>[% price.description | html %]</td>
60
    </tr>
61
    [% END %]
62
  </tbody>
63
</table>
64

  
49 65

  
50
  <h2>[% 'Discounts' | $T8 %]</h2>
66
<h2>[% 'Discounts' | $T8 %]</h2>
51 67

  
52
  <table>
53
   <tr class='listheading'>
54
    <th></th>
55
    <th>[% 'Price Source' | $T8 %]</th>
56
    <th>[% 'Discount' | $T8 %]</th>
57
    <th>[% 'Best Discount' | $T8 %]</th>
58
    <th>[% 'Details' | $T8 %]</th>
59
   </tr>
60
   <tr class='listrow'>
61
[%- IF price_source.record_item.active_discount_source %]
62
    <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource Discount)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
63
[%- ELSE %]
64
    <td><b>[% 'Selected' | $T8 %]</b></td>
65
[%- END %]
66
    <td>[% 'None (PriceSource Discount)' | $T8 %]</td>
67
    <td>-</td>
68
    <td></td>
69
    <td></td>
70
   </tr>
71
   [%- FOREACH price IN price_source.available_discounts %]
72
    <tr class='listrow'>
73
[%- IF price_source.record_item.active_discount_source != price.source %]
74
     <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
75
[%- ELSIF price_source.record_item.discount * 1 != price.discount * 1 %]
76
     <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent  _ '\', ' _ price_editable _ ')', LxERP.t8('Update Discount')) %]</td>
77
[%- ELSE %]
78
    <td><b>[% 'Selected' | $T8 %]</b></td>
79
[% END %]
80
     <td>[% price.source_description | html %]</td>
81
     <td>[% price.discount_as_percent %] %</td>
82
[% IF price.source == best_discount.source %]
83
     <td align='center'>&#x2022;</td>
84
[% ELSE %]
85
     <td></td>
86
[% END %]
87
     <td>[% price.description | html %]</td>
68

  
69
<table class="tbl-list">
70
  <thead>
71
    <tr>
72
      <th></th>
73
      <th>[% 'Price Source' | $T8 %]</th>
74
      <th>[% 'Discount' | $T8 %]</th>
75
      <th>[% 'Best Discount' | $T8 %]</th>
76
      <th>[% 'Details' | $T8 %]</th>
77
    </tr>
78
  </thead>
79
  <tbody>
80
    <tr>
81
      [% IF price_source.record_item.active_discount_source %]
82
        <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'\', \'' _ LxERP.t8('None (PriceSource Discount)') _ '\', \'\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
83
      [% ELSE %]
84
        <td><b>[% 'Selected' | $T8 %]</b></td>
85
      [% END %]
86
      <td>[% 'None (PriceSource Discount)' | $T8 %]</td>
87
      <td>-</td>
88
      <td></td>
89
      <td></td>
88 90
    </tr>
89
   [%- END %]
90
  </table>
91
    [% FOREACH price IN price_source.available_discounts %]
92
    <tr >
93
      [% IF price_source.record_item.active_discount_source != price.source %]
94
        <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\', ' _ price_editable _ ')', LxERP.t8('Select')) %]</td>
95
      [% ELSIF price_source.record_item.discount * 1 != price.discount * 1 %]
96
        <td>[% L.button_tag('kivi.Order.update_discount_source(\'' _ FORM.item_id _ '\', \'' _ price.source _ '\', \'' _ price.source_description _ '\', \'' _ price.discount_as_percent _ '\', ' _ price_editable _ ')', LxERP.t8('Update Discount')) %]</td>
97
      [% ELSE %]
98
        <td><b>[% 'Selected' | $T8 %]</b></td>
99
      [% END %]
100
      <td>[% price.source_description | html %]</td>
101
      <td>[% price.discount_as_percent %] %</td>
102
      [% IF price.source == best_discount.source %]
103
        <td>&#x2022;</td>
104
      [% ELSE %]
105
        <td></td>
106
      [% END %]
107
      <td>[% price.description | html %]</td>
108
    </tr>
109
    [% END %]
110
  </tbody>
111
</table>
112

  

Auch abrufbar als: Unified diff