From c747d507283f3532b9f3bc1992f0e5c37a8f36f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Gigandet?= Date: Tue, 15 Mar 2022 12:02:09 +0100 Subject: [PATCH] fix: fix image upload buttons - #173 (#6485) --- html/js/product-multilingual.js | 4 ++-- lib/ProductOpener/Images.pm | 11 +++-------- .../import_file_upload/import_file_upload.tt.html | 11 +++-------- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/html/js/product-multilingual.js b/html/js/product-multilingual.js index 2136455bb700a..110b797886e90 100644 --- a/html/js/product-multilingual.js +++ b/html/js/product-multilingual.js @@ -708,12 +708,12 @@ function get_recents(tagfield) { if (! stringStartsWith(id, 'manage')) { html += '
'; - html += ' ' + html += ' ' + '' + lang().product_js_upload_image + '' ++ 'style="position: absolute;right:0;bottom:0;top:0;cursor:pointer;opacity:0;width:100%;height:100%;"/>' + '' + '
' + '

' + lang().product_js_upload_image_note + '

' diff --git a/lib/ProductOpener/Images.pm b/lib/ProductOpener/Images.pm index 71e4960d8c6d6..3e4d3f7875a9f 100644 --- a/lib/ProductOpener/Images.pm +++ b/lib/ProductOpener/Images.pm @@ -363,14 +363,9 @@ sub display_search_image_form($) { $html .= < -@{[ display_icon('photo_camera') ]} $product_image_with_barcode - +@{[ display_icon('photo_camera') ]} $product_image_with_barcode + diff --git a/templates/web/pages/import_file_upload/import_file_upload.tt.html b/templates/web/pages/import_file_upload/import_file_upload.tt.html index ac0b28a77a71b..882331314f882 100644 --- a/templates/web/pages/import_file_upload/import_file_upload.tt.html +++ b/templates/web/pages/import_file_upload/import_file_upload.tt.html @@ -6,16 +6,11 @@

[% lang("download_sample_import_file") %]

- +
[% display_icon('arrow_upward') %] [% lang("upload_product_data_file") %] - +