Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 698fa8bc

Von Werner Hahn vor etwa 7 Jahren hinzugefügt

  • ID 698fa8bca9ebea4d85f3a0d34531bb1c452e7e65
  • Vorgänger e91fa8b2
  • Nachfolger b3483d9c

Shopmodul: fehlende template datei

Unterschiede anzeigen:

templates/webpages/part/_shop.html
1
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%]
2
[%- USE Dumper %]
3
[%- USE JavaScript -%]
4
<div id="shop_variables">
5
 <h2>[% LxERP.t8("Active shops:") %]</h2>
6
 <table width="100%">
7
  <thead>
8
  <tr class="listheading">
9
   <th>[% LxERP.t8("Shop") %]</th>
10
   <th>[% LxERP.t8("Active") %]</th>
11
   <th>[% LxERP.t8("Shop part") %]</th>
12
   <th>[% LxERP.t8("Price source") %]</th>
13
   <th>[% LxERP.t8("Price") %]</th>
14
   <th>[% LxERP.t8("Stock Local/Shop") %]</th>
15
   <th>[% LxERP.t8("Last update") %]</th>
16
   <th>[% LxERP.t8("Action") %]</th>
17
   <th>[% LxERP.t8("Action") %]</th>
18
   <th>[% LxERP.t8("Action") %]</th>
19
  </tr>
20
  </thead>
21

  
22
  [%- FOREACH shop_part = SHOP_PARTS %]
23
  <tr class="listrow">
24
   <td>[% HTML.escape( shop_part.shop.description ) %]</td>
25
   <td>[% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %]</td>
26
   <td>[% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]</td>
27
   <td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] </td>
28
   <td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
29
   <td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
30
   <td>[% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %]</td>
31
   <td>[% L.button_tag("kivi.shop_part.edit_shop_part(" _ shop_part.id _ ")", LxERP.t8("Edit"))  %]</td>
32
   <td>[% L.button_tag("kivi.shop_part.update_shop_part(" _ shop_part.id _ ")", LxERP.t8("Upload"))  %]</td>
33
   <td>[% L.button_tag("kivi.shop_part.get_all_categories(" _ shop_part.id _ ")", LxERP.t8("Shopcategories"))  %]<br>[% HTML.escape(shop_part.part.partsgroup.partsgroup) %]</td>
34
  </tr>
35
  <script type="text/javascript">
36
    $(function() {
37
      kivi.shop_part.update_price_n_price_source([% shop_part.id %],'[% shop_part.active_price_source %]');
38
      kivi.shop_part.update_stock([% shop_part.id %]);
39
    });
40
  </script>
41
  [%- END %]
42
  [%- FOREACH shop = SHOPS_NOT_ASSIGNED %]
43
  <tr>
44
   <td>[% HTML.escape( shop.description ) %]</td>
45
   <td></td>
46
   <td></td>
47
   <td></td>
48
   <td></td>
49
   <td></td>
50
   <td></td>
51
  </tr>
52
  </thead>
53
  [%- END %]
54
</table>
55

  
56

  
57
[% # L.dump(shop_part) %]
58
<h2>[% LxERP.t8("Shopvariables and Images - valid for all shops") %]</h2>
59
  [%- IF CUSTOM_VARIABLES.size %]
60
[%  # L.dump(CUSTOM_VARIABLES) %]
61
  <div id="shop_custom_variables">
62
   <p>
63
    <table>
64
     [%- FOREACH var = CUSTOM_VARIABLES %]
65
      [%- IF var.name.match('^shop_') %]
66
       <tr>
67
        [% # IF !var.partsgroup_filtered %]
68
          <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
69
        [% # END %]
70
      <td align="right" valign="top">[% var.VALID_BOX %]</td>
71
        <td valign="top">[% var.HTML_CODE %]</td>
72
       </tr>
73
      [%- END %]
74
     [%- END %]
75
    </table>
76
   </p>
77
  </div>
78
  [%- END %]
79
  [%- IF shop_part.part_id %]
80
    <script type="text/javascript">
81
      $(function() {
82
        kivi.shop_part.show_images([% shop_part.part_id %]);
83
      });
84
    </script>
85
    <div id="shop_images" border=1 ></div>
86
  [%- ELSE %]
87
    <div id="shop_images" border=1 >[% LxERP.t8('To upload images: Please create shoppart first') %]</div>
88
  [%- END %]
89
</div>
90

  

Auch abrufbar als: Unified diff