Revision 87d41ed6
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/shop_part/_list_images.html | ||
---|---|---|
1 |
<table width="100%" id="images_list"> |
|
2 | 1 |
[% USE HTML %] |
3 | 2 |
[% USE L %] |
4 | 3 |
[% USE P %] |
5 | 4 |
[% USE LxERP %] |
6 | 5 |
[% USE T8 %] |
7 | 6 |
[% USE Base64 %] |
7 |
|
|
8 |
<table class="tbl-list" id="images_list"> |
|
8 | 9 |
<thead> |
9 |
<tr class="listheading">
|
|
10 |
<th width="10px"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"></th>
|
|
11 |
<th width="70px"></th>
|
|
10 |
<tr> |
|
11 |
<th><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]" class="dragdrop"></th>
|
|
12 |
<th></th> |
|
12 | 13 |
<th>[% 'Title' | $T8 %]</th> |
13 | 14 |
<th>[% 'Description' | $T8 %]</th> |
14 | 15 |
<th>[% 'Filename' | $T8 %]</th> |
... | ... | |
17 | 18 |
</tr> |
18 | 19 |
</thead> |
19 | 20 |
<tbody> |
20 |
[%- FOREACH img = IMAGES %]
|
|
21 |
[% FOREACH img = IMAGES %] |
|
21 | 22 |
<tr class="listrow" id="image_id_[% img.id %]"> |
22 |
<td><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"></td>
|
|
23 |
<td width="70px"><img src="data:[% img.thumbnail_content_type %];base64,[% img.thumbnail_content.encode_base64 %]" alt="[% img.file.title %]"></td>
|
|
23 |
<td><img src="image/updown.png" alt="[% LxERP.t8('reorder item') %]" class="dragdrop"></td> |
|
24 |
<td><img src="data:[% img.thumbnail_content_type %];base64,[% img.thumbnail_content.encode_base64 %]" alt="[% img.file.title %]"></td> |
|
24 | 25 |
<td>[% HTML.escape(img.file.title) %]</td> |
25 | 26 |
<td>[% HTML.escape(img.file.description) %]</td> |
26 | 27 |
<td>[% HTML.escape(img.file.file_name) %]</td> |
... | ... | |
32 | 33 |
</table> |
33 | 34 |
|
34 | 35 |
[% L.sortable_element('#images_list tbody', url=SELF.url_for(action='reorder'), with='image_id') %] |
35 |
<p> |
|
36 |
[% L.button_tag("kivi.ShopPart.imageUpload(" _ FORM.id _ ",'shop_image','image', '',0);", LxERP.t8('File upload') ) %] |
|
37 |
</p> |
|
36 |
<div class="buttons">[% L.button_tag("kivi.ShopPart.imageUpload(" _ FORM.id _ ",'shop_image','image', '',0);", LxERP.t8('File upload') ) %]</div> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/shop_part/_list_images.html