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.
165 lines
8.2 KiB
165 lines
8.2 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--View of the webpage Refer and Earn, also provide an interface to share their Referral code -->
|
|
<odoo>
|
|
<template id="refer_earn_template" name="Refer and Earn">
|
|
<t t-call="website.layout">
|
|
<div class="main1">
|
|
<div class='main-left'>
|
|
<b>
|
|
<i>
|
|
<h1 style="color: #6e4975;font-family: revert;margin-left: 33px">
|
|
Refer Your Friend and Earn
|
|
</h1>
|
|
</i>
|
|
</b>
|
|
<p class="content">
|
|
<span>
|
|
<b>Now</b>
|
|
</span>
|
|
,you can introduce us to your friends and earn points.
|
|
You have a unique referral code, and can send it to
|
|
your
|
|
friends and request
|
|
them to log in to the site by using the referral code
|
|
and,
|
|
they are also able to
|
|
refer another friends and can earn.For single sign up
|
|
of
|
|
your fiends, by using the referral code
|
|
can have points, and now you can buy the products at
|
|
exciting discount price.
|
|
<br/>
|
|
<br/>
|
|
<b>
|
|
<h3>
|
|
<i style="color: #6e4975;font-family: initial; margin-left: 45px;">
|
|
Wish you a happy
|
|
Shopping.........!!!!!!!!!!!!
|
|
</i>
|
|
</h3>
|
|
</b>
|
|
</p>
|
|
</div>
|
|
<div class='main-right'>
|
|
<div class="image">
|
|
</div>
|
|
<div id="wrap">
|
|
<div class=""
|
|
style="display: flex;align-items: center;">
|
|
<div class="code">
|
|
Referral Code
|
|
<input type="text" t-att-value="codes"
|
|
name="refer_code" id="refer_code"
|
|
readonly="1"/>
|
|
</div>
|
|
<div class="sign-btn">
|
|
<a role="button"
|
|
class="btn btn-primary share"
|
|
data-bs-toggle="modal"
|
|
data-bs-target="#modalaccept"
|
|
href="#">Share
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tile1"
|
|
style="background: rgb(206, 216, 145); width: 112px;border-radius: 11px;margin: 20px 0px 0px 0px;">
|
|
<h4 style="color: #6e4975;">Sign up:</h4>
|
|
<b>
|
|
<center style="color: rgb(227, 133, 105);">
|
|
<t t-esc="sign_up"/>
|
|
</center>
|
|
</b>
|
|
</div>
|
|
<div class="tile2"
|
|
style="background: #bed5db; width: 112px;border-radius: 11px; margin: 20px 0px 50px 200px;">
|
|
<h4 style="color: #6e4975;">Points:</h4>
|
|
<b>
|
|
<center style="color: rgb(227, 133, 105);">
|
|
<t t-esc="points"/>
|
|
</center>
|
|
</b>
|
|
</div>
|
|
<div role="dialog" class="modal fade" id="modalaccept">
|
|
<div class="modal-dialog">
|
|
<form id="accept" method="POST"
|
|
class="js_accept_json modal-content js_website_submit_form"
|
|
action="/refer_and_earn/form/submit">
|
|
<input class='link-style' type="hidden"
|
|
name="csrf_token"
|
|
t-att-value="request.csrf_token()"/>
|
|
<header class="modal-header">
|
|
<h4 class="modal-title"
|
|
style="margin-left:193px;">Mail to your
|
|
friend
|
|
</h4>
|
|
<button type="button" class="btn-close"
|
|
data-bs-dismiss="modal"
|
|
aria-label="Close"/>
|
|
</header>
|
|
<main class="modal-body" id="sign-dialog"
|
|
align="center">
|
|
<center>
|
|
<table>
|
|
<tr>
|
|
<td>Email</td>
|
|
<td/>
|
|
<td/>
|
|
<td>
|
|
<input type="email"
|
|
id="email"
|
|
name="email"
|
|
placeholder="email"
|
|
required="True"/>
|
|
<br/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Referral Code</td>
|
|
<td/>
|
|
<td/>
|
|
<td>
|
|
<input type="text"
|
|
id="referral_code"
|
|
t-att-value="codes"
|
|
name="referral_code"
|
|
placeholder="Enter your code"
|
|
readonly="1"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
<br/>
|
|
<button string="send" type="submit"
|
|
value="send"
|
|
id="send" name="Send"
|
|
class="btn-primary"
|
|
style="width: 58px;height: 32px;margin-left: 260px;border-radius: 3px;">
|
|
Send
|
|
</button>
|
|
</main>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
<!-- After sending the mail, redirected to this template-->
|
|
<template id="website_success_page" name="Message Sent">
|
|
<t t-call="website.layout">
|
|
<div id="wrap">
|
|
<div class="container">
|
|
<div class="col-md-12">
|
|
<div class="alert alert-success">
|
|
Thank you!!!!!!!!!!!!!
|
|
<br/>
|
|
Your Referral code has been successfully sent
|
|
</div>
|
|
<a href='/refer/earn'>Go Back</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|
|
|