Skip to content

Commit

Permalink
OXDEV-8733 Added link to download user data
Browse files Browse the repository at this point in the history
  • Loading branch information
RahatHameed committed Sep 27, 2024
1 parent 7fb16e3 commit a3328e7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/admin_twig/de/oegdproptin_admin_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@
'SHOP_MODULE_OeGdprOptinContactFormMethod' => '', // right side of the inputs, if some notes will be needed
'SHOP_MODULE_OeGdprOptinContactFormMethod_deletion' => 'Hinweis auf Löschen der Daten nach Verarbeitung anzeigen',
'SHOP_MODULE_OeGdprOptinContactFormMethod_statistical' => 'Opt-in für Verarbeitung und statistische Verwendung der Daten anzeigen',

'SHOP_MODULE_oegdproptin_export_label' => 'Benutzerdaten exportieren',
];
2 changes: 2 additions & 0 deletions views/admin_twig/en/oegdproptin_admin_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@
'SHOP_MODULE_OeGdprOptinContactFormMethod' => '', // right side of the inputs, if some notes will be needed
'SHOP_MODULE_OeGdprOptinContactFormMethod_deletion' => 'Show a note for deletion of the data after processing',
'SHOP_MODULE_OeGdprOptinContactFormMethod_statistical' => 'Show an opt-in for processing and statistical usage of the data',

'SHOP_MODULE_oegdproptin_export_label' => 'Export User Data',
];
12 changes: 12 additions & 0 deletions views/twig/extensions/themes/twig_admin/user_main.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends 'user_main.html.twig' %}

{% block admin_user_main_form %}
{{ parent() }}
<tr>
<td class="edittext">
</td>
<td class="edittext">
<a target="_blank" href="{{ oViewConf.getSelfLink()|raw }}&cl=oegdproptin_user_data_export&fnc=exportUserData&userId={{ oxid }}">{{ translate({ ident: "SHOP_MODULE_oegdproptin_export_label" }) }}</a>
</td>
</tr>
{% endblock %}

0 comments on commit a3328e7

Please sign in to comment.