From 0ca54f928e16d8938a1bfe5b17d2e535bf5cc7a1 Mon Sep 17 00:00:00 2001 From: Tomasz Kowalewski Date: Wed, 4 Dec 2024 14:14:03 +0100 Subject: [PATCH] OXDEV-8831 Add missing styling for 'Export User Data' button --- CHANGELOG.md | 1 + views/twig/extensions/themes/admin_twig/user_main.html.twig | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59eac66..6068381 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - Make checkbox `oegdproptin_userregistration` required in user registration page [#0006863](https://bugs.oxid-esales.com/view.php?id=6863) +- Add missing styling for 'Export User Data' button ## [v4.1.0] - 2024-10-14 diff --git a/views/twig/extensions/themes/admin_twig/user_main.html.twig b/views/twig/extensions/themes/admin_twig/user_main.html.twig index f4b1f76..7ae22e4 100644 --- a/views/twig/extensions/themes/admin_twig/user_main.html.twig +++ b/views/twig/extensions/themes/admin_twig/user_main.html.twig @@ -37,9 +37,10 @@ form.insertAdjacentHTML('beforeend', '{{ oViewConf.getHiddenSid()|replace({'\n': '', '\r': ''})|raw }}'); // Create a submit button - var button = document.createElement('button'); + var button = document.createElement('input'); button.setAttribute('type', 'button'); - button.innerText = '{{ translate({ ident: "SHOP_MODULE_oegdproptin_export_label" }) }}'; + button.setAttribute('value', '{{ translate({ ident: "SHOP_MODULE_oegdproptin_export_label" }) }}'); + button.setAttribute('style', 'margin-top: 25px;'); button.onclick = function() { form.submit(); };