Revision d9e5bd29
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
templates/webpages/shop_part/_list_images.html | ||
---|---|---|
15 | 15 |
</thead> |
16 | 16 |
<tbody> |
17 | 17 |
[%- FOREACH img = IMAGES %] |
18 |
[% # Dumper.dump_html(img) %] |
|
18 | 19 |
<tr class="listrow" id="image_id_[% img.id %]"> |
19 | 20 |
<td><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]" class="dragdrop"></td> |
20 |
<td width="70px"><img src="data:[% img.thumbnail_img_content_type %];base64,[% img.thumbnail_img_content.encode_base64 %]" alt="[% img.title %]"></td>
|
|
21 |
<td>[% HTML.escape(img.title) %]</td> |
|
22 |
<td>[% HTML.escape(img.description) %]</td> |
|
23 |
<td>[% HTML.escape(img.filename) %]</td> |
|
24 |
<td>[% HTML.escape(img.files_img_width) _ ' x ' _ HTML.escape(img.files_img_height) %]</td>
|
|
21 |
<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>
|
|
23 |
<td>[% HTML.escape(img.file.description) %]</td>
|
|
24 |
<td>[% HTML.escape(img.file.file_name) %]</td>
|
|
25 |
<td>[% HTML.escape(img.org_file_width) _ ' x ' _ HTML.escape(img.org_file_height) %]</td>
|
|
25 | 26 |
<td>[% L.button_tag("kivi.FileUploader.delete_file(" _ img.id _ ", 'ShopPart/ajax_delete_file')", LxERP.t8('Delete'), confirm=LxERP.t8("Are you sure?")) %] [% L.button_tag("kivi.FileUploader.add_file(" _ img.id _ "," _ FORM.id _ ",'shop_part','ShopPart/ajax_update_file','jpg|png|tif|gif')", LxERP.t8('Edit')) %] </td> |
26 | 27 |
</tr> |
27 | 28 |
[% END %] |
... | ... | |
30 | 31 |
|
31 | 32 |
[% L.sortable_element('#images_list tbody', url=SELF.url_for(action='reorder'), with='image_id') %] |
32 | 33 |
<p> |
33 |
[% L.button_tag("kivi.FileUploader.add_file(''," _ FORM.id _ ",'shop_part','ShopPart/ajax_upload_file','jpg|png|tif|gif')", LxERP.t8('Fileupload')) %]
|
|
34 |
[% L.button_tag("kivi.shop_part.imageUpload(" _ FORM.id _ ",'shop_image','image','Upload shopimage',0);", LxERP.t8('Upload shopimage') ) %]
|
|
34 | 35 |
</p> |
Auch abrufbar als: Unified diff
Shopmodul: Bilder hochladen