-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathtmpl-tools.php
More file actions
49 lines (46 loc) · 1.63 KB
/
tmpl-tools.php
File metadata and controls
49 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script type="text/html" id="tmpl-audit-log-result-success">
<div class="gdpr-audit-log-result">
<h2><?php echo esc_html_e( 'Result', 'gdpr' ); ?></h2>
<div class="postbox">
<div class="inside">
<textarea readonly class="gdpr-audit-log-result large-text" rows="20">{{data.result}}</textarea>
</div>
</div>
</div>
</script>
<script type="text/html" id="tmpl-audit-log-result-error">
<div class="gdpr-audit-log-result">
<h2><?php echo esc_html_e( 'Error', 'gdpr' ); ?></h2>
<div class="notice notice-error">
<p><?php esc_html_e( 'We could not find a any logs for that email and token combination.', 'gdpr' ); ?></p>
</div>
</div>
</script>
<script type="text/html" id="tmpl-access-data-result-success">
<div class="gdpr-access-data-result">
<h2><?php echo esc_html_e( 'Result', 'gdpr' ); ?></h2>
<p>
<form method="post" class="frm-export-data">
<?php wp_nonce_field( 'gdpr-export-data', 'gdpr_export_data_nonce' ); ?>
<input type="hidden" name="user_email" value="{{data.userEmail}}">
<?php submit_button( 'XML', 'primary', 'download-data-xml', false ); ?>
<?php submit_button( 'JSON', 'primary', 'download-data-json', false ); ?>
</form>
</p>
<div class="postbox">
<div class="inside">
<div class="result">
{{{data.result}}} <?php // phpcs:ignore ?>
</div>
</div>
</div>
</div>
</script>
<script type="text/html" id="tmpl-access-data-result-error">
<div class="gdpr-access-data-result">
<h2><?php echo esc_html_e( 'Error', 'gdpr' ); ?></h2>
<div class="notice notice-error">
<p><?php esc_html_e( 'We could not find a user with that email.', 'gdpr' ); ?></p>
</div>
</div>
</script>