Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 966ba2b1

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID 966ba2b155a1646d67ac8a8d1f3ec0527a268fb2
  • Vorgänger a928895c
  • Nachfolger 4a79f484

WebshopApi: templates

Unterschiede anzeigen:

templates/webpages/shop_order/_transfer_status.html
1 1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
2
[%- USE Dumper -%]
3 2
[% SET data = job.data_as_hash %]
4 3

  
5

  
6 4
<h2>[% LxERP.t8("Watch status") %]</h2>
7 5

  
8 6
[% L.hidden_tag('', job.id, id="smt_job_id") %]
templates/webpages/shop_order/list.html
1 1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2
[% USE Dumper %]
3 2

  
4 3
[% L.stylesheet_tag('webshop') %]
5 4
[%- INCLUDE 'common/flash.html' %]
6
<h1>[% title %]<span style="float:right;">[% 'Number data sets' | $T8 %]: [% SHOPORDERS.size %]</span></h1>
5
<h1>[% title %]<span style="float:right;">[% 'Number of data sets' | $T8 %]: [% SHOPORDERS.size %]</span></h1>
7 6
[%- PROCESS 'shop_order/_filter.html' filter=SELF.models.filtered.laundered %]
8 7

  
9 8
<hr>
......
147 146
 </form>
148 147
 <form method="post" action="controller.pl" name="shop_orders_list" id="shoporderslist">
149 148
  [% FOREACH shop_order = SHOPORDERS %]
150
  [% # Dumper.dump_html(shop_order) %]
151 149
    [% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'class="shop_transferable"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
152 150
  <tr class="listrow">
153 151
    <td>[% HTML.escape(shop_order.shop.description) %]</td>
templates/webpages/shop_order/show.html
176 176
  <div style="height: 250px; overflow:auto; margin:15px;">
177 177
    <table width="99%">
178 178
      <tr class="listheading">
179
        <th>[% 'Position' | $T8 %]</th>
180
        <th>[% 'Partnumber' | $T8 %]</th>
181
        <th>[% 'Part Description' | $T8 %]</th>
182
        <th>[% 'Qty' | $T8 %]</th>
183
        <th>[% 'Price' | $T8 %]</th>
184
        <th>[% 'Extended' | $T8 %]</th>
179
        <th>[% 'Position'          | $T8 %]</th>
180
        <th>[% 'Partnumber'        | $T8 %]</th>
181
        <th>[% 'Partdescriptipion' | $T8 %]</th>
182
        <th>[% 'Qty'               | $T8 %]</th>
183
        <th>[% 'Price'             | $T8 %]</th>
184
        <th>[% 'Extended'          | $T8 %]</th>
185 185
      </tr>
186
      [% FOREACH pos = IMPORT.shop_order_items %]
187 186
      <tr class="listrow">
188
        <td>[% count() %]</td>
189
        <td>[% HTML.escape(pos.partnumber) %]</td>
190
        <td>[% HTML.escape(pos.description) %]</td>
191
        <td>[% pos.quantity_as_number%]</td>
192
        <td>[% pos.price_as_number%]</td>
193
        [% SET extended = pos.price * pos.quantity %]
194
        <td>[% LxERP.format_amount(extended,2) %]</td>
187
        <td>[% loop.index                                      %]</td>
188
        <td>[% HTML.escape(pos.partnumber)                     %]</td>
189
        <td>[% HTML.escape(pos.description)                    %]</td>
190
        <td>[% pos.quantity_as_number                          %]</td>
191
        <td>[% pos.price_as_number                             %]</td>
192
        <td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
195 193
      </tr>
196 194
      [% END %]
197 195
    </table>
......
205 203
      $('#transfer').css("display", 'block');
206 204
});
207 205
</script>
208
[% # L.dump(IMPORT) %]
templates/webpages/shop_part/_filter.html
5 5
<form action='controller.pl' metdod='post' id="shop_part_filter">
6 6
  [% L.hidden_tag('filter.shop.obsolete', 0) %]
7 7
 <table id='filter_table'>
8

  
9 8
    <tr>
10 9
     <td>[% 'Shop' | $T8 %]</td>
11 10
     <td>[% L.select_tag('filter.shop_id:eq_ignore_empty', SELF.shops, value_key = 'value', title_key = 'title', default=0) %]</td>
12 11
    </tr>
13 12
    <tr>
14
     <td>[% 'Part marked as "Shop article"' %]
13
     <td>[% 'Part marked as "Shop part"' %]
15 14
     <td>[% L.yes_no_tag('filter.part.shop', FORM.filter.part.shop, default='1', with_empty=1, empty_title='---') %]</td>
16 15
    </tr>
17

  
18 16
 </table>
19 17

  
20 18
 <p>
templates/webpages/shop_part/_list_articles.html
1 1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
2
[% USE Dumper %]
3

  
4 2

  
5 3
<h1>[% title %]</h1>
6 4
[%- PROCESS 'shop_part/_filter.html' filter=SELF.models.filtered.laundered %]
templates/webpages/shop_part/_list_images.html
1 1
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%]
2 2
[%- USE T8 %][% USE Base64 %]
3
[%- USE Dumper %]
4 3
<table width="100%" id="images_list">
5 4
  <thead>
6 5
    <tr class="listheading">
7 6
      <th width="10px"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"></th>
8 7
      <th width="70px"></th>
9
      <th>[% 'Title' | $T8 %]</th>
10
      <th>[% 'Description' | $T8 %]</th>
11
      <th>[% 'Filename' | $T8 %]</th>
8
      <th>[% 'Title'          | $T8 %]</th>
9
      <th>[% 'Description'    | $T8 %]</th>
10
      <th>[% 'Filename'       | $T8 %]</th>
12 11
      <th>[% 'Orig. Size w/h' | $T8 %]</th>
13
      <th>[% 'Action' | $T8 %]</th>
12
      <th>[% 'Action'         | $T8 %]</th>
14 13
    </tr>
15 14
  </thead>
16 15
  <tbody>
17 16
   [%-  FOREACH img = IMAGES %]
18
   [% # Dumper.dump_html(img) %]
19 17
    <tr class="listrow" id="image_id_[%  img.id %]">
20 18
      <td><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"></td>
21 19
      <td width="70px"><img src="data:[%  img.thumbnail_content_type %];base64,[%  img.thumbnail_content.encode_base64 %]" alt="[%  img.file.title %]"></td>
22
      <td>[% HTML.escape(img.file.title) %]</td>
20
      <td>[% HTML.escape(img.file.title)       %]</td>
23 21
      <td>[% HTML.escape(img.file.description) %]</td>
24
      <td>[% HTML.escape(img.file.file_name) %]</td>
22
      <td>[% HTML.escape(img.file.file_name)   %]</td>
25 23
      <td>[% HTML.escape(img.org_file_width) _  ' x ' _ HTML.escape(img.org_file_height) %]</td>
26 24
      <td>[% L.button_tag("kivi.File.delete_file(" _ img.file_id _ ", 'ShopPart/ajax_delete_file')", LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %]</td>
27 25
    </tr>
templates/webpages/shop_part/_transfer_status.html
1 1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
2
[%- USE Dumper -%]
2

  
3 3
[% SET data = job.data_as_hash %]
4 4

  
5 5
<h2>[% LxERP.t8("Watch status") %]</h2>
......
24 24
   </td>
25 25
  </tr>
26 26
  <tr>
27
   <th valign="top" align="left">[% LxERP.t8("Number of data uploaded:") %]</th>
27
   <th valign="top" align="left">[% LxERP.t8("Number of data sets uploaded:") %]</th>
28 28
   <td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_uploaded) %] / [% HTML.escape(data.record_ids.size) %][% ELSE %]–[% END %]</td>
29 29
  </tr>
30 30

  
......
35 35
36 36
    <table>
37 37
     <tr class="listheader">
38
      <th>[% LxERP.t8("Part") %]</th>
39
      <th>[% LxERP.t8("Partnumber") %]</th>
40
      <th>[% LxERP.t8("Message") %]</th>
38
      <th>[% LxERP.t8("Part")       %] </th>
39
      <th>[% LxERP.t8("Partnumber") %] </th>
40
      <th>[% LxERP.t8("Message")    %] </th>
41 41
     </tr>
42 42

  
43 43
 [% FOREACH message = data.conversion %]
templates/webpages/shop_part/_upload_status.html
34 34
35 35
    <table>
36 36
     <tr class="listheader">
37
      <th>[% LxERP.t8("Part") %]</th>
37
      <th>[% LxERP.t8("Part")       %]</th>
38 38
      <th>[% LxERP.t8("Partnumber") %]</th>
39
      <th>[% LxERP.t8("Message") %]</th>
39
      <th>[% LxERP.t8("Message")    %]</th>
40 40
     </tr>
41 41

  
42 42
 [% FOREACH message = data.conversion %]
43 43
     <tr>
44
      <td valign="top">[% HTML.escape(message.id) %]</td>
45
      <td valign="top">[% HTML.escape(message.number) %]</td>
44
      <td valign="top">[% HTML.escape(message.id)      %]</td>
45
      <td valign="top">[% HTML.escape(message.number)  %]</td>
46 46
      <td valign="top">[% HTML.escape(message.message) %]</td>
47 47
     </tr>
48 48
 [% END %]
templates/webpages/shop_part/categories.html
3 3
[%- USE L -%]
4 4
[%- USE P -%]
5 5
[%- USE LxERP -%]
6
[%- USE Dumper -%]
7 6

  
8 7
[%  LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
9
[%  LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
10
<br>
11
[% # Dumper.dump_html(SELF.shop_part.shop_category) %]
12
<br>
13
[% # Dumper.dump_html(CATEGORIES) %]
8
[%  LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]<br>
14 9

  
15 10
<form action="controller.pl" method="post">
16 11
  [% BLOCK recurse %]
......
21 16
        [% checked = '' %]
22 17
        [% # path = path _ obj.name %]
23 18
        [% # test = path.split('\|') %]
24
        [% # Dumper.dump_html(SELF.shop_part.shop_category) %]
25 19
        [% IF SELF.shop_part.shop_category.1.grep(obj.name).size %]
26 20
          [% checked = 'checked' %]
27 21
        [% ELSE %]
......
52 46
  </div>
53 47
    [% L.button_tag("kivi.ShopPart.save_categories(" _ SELF.shop_part.id _", " _ SELF.shop_part.shop.id _")", LxERP.t8("Save"))  %]</td>
54 48
</form>
55

  
templates/webpages/shop_part/edit.html
3 3
[%- USE L -%]
4 4
[%- USE P -%]
5 5
[%- USE LxERP -%]
6
[%- USE Dumper -%]
7 6

  
8 7
<p>
9 8
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br>
10 9
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %]
11 10
<p>
12
[% # Dumper.dump_html(SELF) %]
13 11
<form action="controller.pl" method="post">
14 12
  <div>
15 13
    [% IF SELF.shop_part.id %]
......
55 53
     <td>[% L.textarea_tag("shop_part.metatag_description", SELF.shop_part.metatag_description, rows=4) %]</td>
56 54
    </tr>
57 55
    </table>
58
    [% # L.dump(SELF.shop_part) %]
59 56

  
60 57
    [% IF SELF.shop_part.id %]
61 58
    [% L.button_tag("kivi.ShopPart.save_shop_part(" _ SELF.shop_part.id _ ")", LxERP.t8("Save"))  %]</td>
......
71 68
  </div>
72 69
</form>
73 70

  
74

  
75

  
76 71
[%- IF SELF.shop_part.part.image && INSTANCE_CONF.get_parts_show_image %]
77 72
         <a href="[% SELF.shop_part.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.shop_part.part.image | html %]"/></a>
78 73
[%- END %]
79

  
80
[% # SELF.shop_part.shop_description %]
81
[% # L.dump(SELF.shop_part) %]
templates/webpages/shops/form.html
1 1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE T8 -%]
2
[%- USE Dumper -%]
3 2

  
4 3
[% SET style="width: 400px" %]
5 4
[% SET size=34 %]
6 5

  
7 6
<h1>[% HTML.escape(title) %]</h1>
8
[% #Dumper.dump_html(SELF.shop) %]
9 7
<form id="form" action="controller.pl" method="post">
10 8

  
11 9
[%- INCLUDE 'common/flash.html' %]
templates/webpages/shops/test_shop_connection.html
1 1
[%- USE HTML %][%- USE LxERP -%][%- USE L -%]
2 2
[%- IF ok %]
3 3

  
4
 <p class="message_ok">[% LxERP.t8('The connection was to the shop established successfully.') %]</p>
4
 <p class="message_ok">[% LxERP.t8('The connection to the shop was established successfully.') %]</p>
5 5
 <p>[% LxERP.t8('Version: ')%][% HTML.escape(version) %]</p>
6 6

  
7 7
[%- ELSE %]

Auch abrufbar als: Unified diff