You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

278 lines
17 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherit portal.portal_layout to add new button -->
<template id="portal_my_home_gdpr" name="Productions"
inherit_id="portal.side_content">
<xpath expr="//div[hasclass('o_portal_my_details')]" position="after">
<div>
<br/>
<a href="/my/data_management"><i class="fa fa-pencil"/> Manage
your personal data
</a>
</div>
</xpath>
</template>
<!-- Window for GDPR view -->
<template t-name="GDPRManager" id="gdpr_manager" name="Manage Your Personal Data">
<t t-call="website.layout">
<div id="wrap" class="oe_structure oe_empty">
<section class="s_website_form gdpr_portal_template"
data-vcss="001" data-snippet="s_website_form">
<div class="container">
<form method="post" enctype="multipart/form-data"
class="o_mark_required" data-mark="*"
data-model_name="" data-success-page="/">
<input type="hidden" name="csrf_token"
t-att-value="request.csrf_token()"/>
<div class="s_website_form_rows row s_col_no_bgcolor">
<div>
<h1>Manage Your Personal Data</h1>
<p>
What is Lorem Ipsum?
Lorem Ipsum is simply dummy text of the
printing and typesetting industry.
Lorem Ipsum has been the industry's
standard dummy text ever since the
1500s,
when an unknown printer took a galley of
type and scrambled it to make a type
specimen book. It has survived not only
five centuries, but also the leap into
electronic typesetting, remaining
essentially unchanged. It was
popularised in
the 1960s with the release of Letraset
sheets containing Lorem Ipsum passages,
and more recently with desktop
publishing software like Aldus PageMaker
including
versions of Lorem Ipsum.
</p>
</div>
<div>
<ul class="nav nav-tabs" id="myTab"
role="tablist">
<li class="nav-item"
role="presentation">
<button class="nav-link active"
id="home-tab"
data-bs-toggle="tab"
data-bs-target="#information"
type="button" role="tab"
aria-controls="home"
aria-selected="true">
Information About You
<i class="fas fa-hand-sparkles"/>
</button>
</li>
<li class="nav-item"
role="presentation">
<button class="nav-link"
id="profile-tab"
data-bs-toggle="tab"
data-bs-target="#requests"
type="button" role="tab"
aria-controls="profile"
aria-selected="false">Your
Requests
<i class="fa fa-question-circle"/>
</button>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active"
id="information" role="tabpanel"
aria-labelledby="home-tab">
<br/>
<div class="gdpr-modal">
<div class="gdpr-modal-content">
<span class="gdpr-close-button"><i class="fa fa-times"/></span>
<p>By clicking the confirm button, a request to delete data is submitted.</p>
<a href="/gdpr_management/submit">
<button type="button" class="gdpr-modal-confirm" style="background-color: #ba1422;color: white;">Confirm </button>
</a>
</div>
</div>
<t t-foreach="values" t-as="data">
<div class="card card-gdpr" style="position: initial;">
<div class="card-body">
<h5 style="color: #46b3a8;">
<span t-esc="data['name']"/>
</h5>
<p class="card-text">
<span t-esc="data['description']"/>
</p>
<a href="/gdpr_management/submit">
<button class="_actionDownload"
type="button"
t-att-id="data['id']"
style="background-color: #46b3a8;color: white;">
Download
<i class="fa fa-download"/>
</button>
</a>
<button class="_actionDelete"
type="button"
t-att-id="data['id']"
style="background-color: #ba1422;color: white;">
Delete
<i class="fa fa-trash"/>
</button>
</div>
</div>
<br/>
</t>
</div>
<div class="tab-pane fade" id="requests"
role="tabpanel"
aria-labelledby="profile-tab">
<br/>
<table class="table-gdpr">
<tr class="tr-gdpr">
<th class="th-gdpr">Name
</th>
<th class="th-gdpr">
Partner
</th>
<th class="th-gdpr">Request
Type
</th>
<th class="th-gdpr">Date
</th>
<th class="th-gdpr">State
</th>
<th class="th-gdpr">
<i class="fa fa-download"/>
/
<i class="fa fa-trash"/>
</th>
</tr>
<t t-foreach="request_values"
t-as="data">
<tr class="tr-gdpr">
<td class="td-gdpr">
<span t-esc="data['name']"/>
</td>
<td class="td-gdpr">
<span t-esc="data['partner']"/>
</td>
<td class="td-gdpr">
<span t-esc="data['template']"/>
<span>-</span>
<span t-esc="data['type']"/>
</td>
<td class="td-gdpr">
<span t-esc="data['date']"/>
</td>
<td style="text-align: center;"
class="td-gdpr">
<t t-if="data['state'] == 'pending'">
<span class="c-pill c-pill--warning">
PENDING
</span>
</t>
<t t-elif="data['state'] == 'cancel'">
<span class="c-pill c-pill--danger">
CANCEL
</span>
</t>
<t t-else="">
<span class="c-pill c-pill--success">
DONE
</span>
</t>
</td>
<td style="text-align: center;"
class="td-gdpr">
<span class="download-icon">
<t t-if="data['state'] == 'done' and data['type'] == 'download'">
<div class="_actionReqDownload"
t-att-id="data['id']"
style="cursor:pointer;">
<i class="fa fa-download"/>
</div>
</t>
<t t-elif="data['state'] == 'done' and data['type'] == 'delete'">
<a href="/gdpr_management/success/delete">
<i class="fa fa-trash"/>
</a>
</t>
<t t-elif="data['state'] == 'cancel'">
<a href="/gdpr_management/canceled">
<i class="fa fa-ban"/>
</a>
</t>
</span>
</td>
</tr>
</t>
</table>
</div>
</div>
</div>
</div>
</form>
</div>
</section>
</div>
</t>
</template>
<!-- Window will display after request submitting -->
<template id="gdpr_submit">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<div class="col-md-12">
<div class="alert alert-success">
Your request successfully submitted
</div>
</div>
<center>
<a href="/my/data_management">Back
<i class="fa fa-repeat"/>
</a>
</center>
</div>
</div>
</t>
</template>
<!-- Window will display after record deleted -->
<template id="gdpr_delete_success">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<div class="col-md-12">
<div class="alert alert-success">
Your record is successfully deleted
</div>
</div>
<center>
<a href="/my/data_management">Back
<i class="fa fa-repeat"/>
</a>
</center>
</div>
</div>
</t>
</template>
<!-- Window will display after the request is canceled -->
<template id="gdpr_cancel_success">
<t t-call="website.layout">
<div id="wrap">
<div class="container">
<div class="col-md-12">
<div class="alert alert-warning">
Your request is cancelled please contact admin wing
</div>
</div>
<center>
<a href="/my/data_management">Back
<i class="fa fa-repeat"/>
</a>
</center>
</div>
</div>
</t>
</template>
</odoo>