94 lines
3.2 KiB
HTML
94 lines
3.2 KiB
HTML
|
{% extends "mnfapp/base.html" %}
|
||
|
{% load static %}
|
||
|
{% block content %}
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title> gift subscription</title>
|
||
|
<!-- <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
|
||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
|
||
|
<script src="https://js.stripe.com/v3/"></script>
|
||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||
|
|
||
|
|
||
|
<style>
|
||
|
.sample-container{
|
||
|
width:60vw;
|
||
|
margin: auto;
|
||
|
margin-top: 10vh;
|
||
|
border-radius: 10px;
|
||
|
padding: 1em;
|
||
|
display: grid;
|
||
|
grid-template-columns: auto auto;
|
||
|
box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||
|
}
|
||
|
.sample-container input{
|
||
|
margin: auto;
|
||
|
width: 25vw;
|
||
|
margin-top: 5px;
|
||
|
margin-bottom: 5px;
|
||
|
}
|
||
|
.sample-container button{
|
||
|
width: 20vw;
|
||
|
margin:auto;
|
||
|
text-align: center;
|
||
|
margin-left: 20vw;
|
||
|
margin-top: 1em;
|
||
|
}
|
||
|
#h1{
|
||
|
text-align: center;
|
||
|
/* color: linear-gradient(#ee364d , rgb(0, 89, 255)); */
|
||
|
background: -webkit-linear-gradient(#ee364d, rgb(56, 109, 206));
|
||
|
-webkit-background-clip: text;
|
||
|
-webkit-text-fill-color: transparent;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<div>
|
||
|
|
||
|
<div>
|
||
|
<h1 style="text-align: center; margin-top: 1em;">GIFT SUBSCRIPTIONS</h1>
|
||
|
<h3 id="h1">
|
||
|
Gift a subscription of 1 month (for 80% of the fee)
|
||
|
</h3>
|
||
|
<div style="width: 100vw; text-align: center;">
|
||
|
<span>
|
||
|
{%if message%}
|
||
|
<span style="color: green;">{{message}}</span>
|
||
|
{%endif%}
|
||
|
</span>
|
||
|
<h3 id ='text' style="text-align:center;color:red"></h3>
|
||
|
</div>
|
||
|
<div class="sample-container">
|
||
|
<form action="{% url 'gift'%}" method="POST" class="form-group">
|
||
|
{% csrf_token %}
|
||
|
<div style="display: grid; grid-template-columns: auto auto;">
|
||
|
<input type="text" placeholder="Name" class="form-control border border-dark" name="name1" required>
|
||
|
<input type="email" placeholder="Email" class="form-control border border-dark" name="email1" id="email1" required>
|
||
|
</div>
|
||
|
<span id="text" style="color: red;"></span>
|
||
|
<button type="submit" class="btn btn-primary" id="refer">Gift Now</button>
|
||
|
</form><br>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||
|
|
||
|
<script>
|
||
|
$('#refer').click(function(){
|
||
|
if($('#email1').val() == '{{user.email}}'){
|
||
|
document.getElementById('text').innerHTML = 'You cant put your registered email id. LOL'
|
||
|
return false
|
||
|
}
|
||
|
})
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
{%endblock%}
|
||
|
|