Skip to content

Commit

Permalink
more gdpr work
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Mar 25, 2019
1 parent 6a99c24 commit e83a936
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
12 changes: 9 additions & 3 deletions upload/admin/controller/mail/gdpr.php
Expand Up @@ -3,7 +3,7 @@ class ControllerMailGdpr extends Controller {
// admin/model/customer/gdpr/editStatus
//public function index(&$route, &$args, &$output) {
public function index() {
$args[0] = 8664;
$args[0] = 8666;

$this->load->model('customer/gdpr');

Expand Down Expand Up @@ -58,7 +58,7 @@ public function export($gdpr_info) {
$data['logo'] = '';
}

$data['text_gdpr'] = $language->get('text_gdpr');
$data['text_request'] = $language->get('text_request');

$this->load->model('customer/customer');

Expand All @@ -76,9 +76,15 @@ public function export($gdpr_info) {
$data['text_telephone'] = $language->get('text_telephone');
$data['text_addresses'] = $language->get('text_addresses');
$data['text_address'] = $language->get('text_address');
$data['text_firstname'] = $language->get('text_firstname');
$data['text_lastname'] = $language->get('text_lastname');
$data['text_address_1'] = $language->get('text_address_1');
$data['text_address_2'] = $language->get('text_address_2');
$data['text_city'] = $language->get('text_city');
$data['text_zone'] = $language->get('text_zone');
$data['text_ips'] = $language->get('text_ips');
$data['text_ip'] = $language->get('text_ip');
$data['text_date_added'] = $language->get('text_date_added');

$data['text_thanks'] = $language->get('text_thanks');

$data['button_contact'] = $language->get('button_contact');
Expand Down
10 changes: 3 additions & 7 deletions upload/admin/language/en-gb/mail/gdpr_export.php
Expand Up @@ -4,14 +4,11 @@
$_['text_request'] = 'Export Personal Data';
$_['text_hello'] = 'Hello <strong>%s</strong>,';
$_['text_user'] = 'User';

$_['text_gdpr'] = 'Export Personal Data';

$_['text_account'] = 'Account';
$_['text_customer'] = 'Personal Information';
$_['text_address'] = 'Address';
$_['text_addresses'] = 'Addresses';

$_['text_name'] = 'Name';
$_['text_email'] = 'E-Mail';
$_['text_telephone'] = 'Telephone';
Expand All @@ -22,9 +19,8 @@
$_['text_city'] = 'City';
$_['text_country'] = 'Country';
$_['text_zone'] = 'Region / State';

$_['text_history'] = 'Login History';
$_['text_ip'] = 'IP\'s';
$_['text_ips'] = 'IP\'s';
$_['text_ip'] = 'IP';
$_['text_date_added'] = 'Date Added';

$_['text_contact'] = 'You will receive a email informing you when your account has been deleted.';
$_['text_thanks'] = 'Thanks,';
18 changes: 5 additions & 13 deletions upload/admin/view/template/mail/gdpr_export.twig
Expand Up @@ -17,20 +17,21 @@
</tr>
<tr>
<td style="line-height: 1.8;">

<p>{{ text_hello }}</p>

{% if customer_id %}
<h4>{{ text_account }}</h4>
<table class="table table-bordered">
<table style="width: 100%;" class="table table-bordered">
<thead>
<tr class="table-light">
<tr>
<th colspan="2">{{ text_customer }}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="w-25">{{ text_name }}</td>
<td>{{ customer }}</td>
<td>{{ firstname }} {{ lastname }}</td>
</tr>
<tr>
<td>{{ text_email }}</td>
Expand All @@ -48,12 +49,8 @@
<h4>{{ text_addresses }}</h4>
{% set address_row = 1 %}
{% for address in addresses %}
<p>{{ text_address }} {{ address_row }}</p>
<table class="table table-bordered">
<thead>
<tr>
<th colspan="2">{{ text_address }} {{ address_row }}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="w-25">{{ text_firstname }}</td>
Expand Down Expand Up @@ -108,11 +105,6 @@
{% if ips %}
<h4>{{ text_ip }}</h4>
<table class="table table-bordered">
<thead>
<tr class="table-light">
<th colspan="3">{{ text_history }}</th>
</tr>
</thead>
<thead>
<tr>
<th class="w-25">{{ text_ip }}</th>
Expand Down

0 comments on commit e83a936

Please sign in to comment.