2021-07-13 08:54:37 +02:00
{% extends 'default.html' %}
{% set active_page = "dashboard" %}
2021-11-22 16:30:27 +01:00
{% block head %}
< script src = "https://cdn.paddle.com/paddle/paddle.js" > < / script >
< script >
if (window.Paddle === undefined) {
console.log("cannot load Paddle from CDN");
document.write('< script src = "/static/vendor/paddle.js" > < \ / s c r i p t > ' )
}
< / script >
< style type = "text/css" >
html.mvc__a.mvc__lot.mvc__of.mvc__classes.mvc__to.mvc__increase.mvc__the.mvc__odds.mvc__of.mvc__winning.mvc__specificity, html.mvc__a.mvc__lot.mvc__of.mvc__classes.mvc__to.mvc__increase.mvc__the.mvc__odds.mvc__of.mvc__winning.mvc__specificity > body {
position: static;
}
< / style >
{% endblock %}
2021-07-13 08:54:37 +02:00
{% block title %}
Coupon
{% endblock %}
{% block default_content %}
2021-11-22 16:30:27 +01:00
{% if can_use_coupon %}
< div class = "card" >
< div class = "card-body" >
< h1 class = "h2" > Coupon< / h1 >
2021-07-13 08:54:37 +02:00
2021-11-22 16:30:27 +01:00
< div class = "mb-4" >
Please enter the coupon here to upgrade your account or extend your current subscription.
< / div >
< form method = "post" >
{{ coupon_form.csrf_token }}
2021-07-13 08:54:37 +02:00
2021-11-22 16:30:27 +01:00
{{ coupon_form.code(class="form-control", placeholder="Licence Code") }}
{{ render_field_errors(coupon_form.code) }}
< button class = "btn btn-success mt-2" > Apply< / button >
< / form >
< / div >
< / div >
{% endif %}
2021-07-13 08:54:37 +02:00
2021-11-22 16:30:27 +01:00
< div class = "card" >
< div class = "card-body" >
< h2 > 1-year coupon< / h2 >
< div class = "mb-3" >
You can buy a 1-year coupon that allows anyone to have the SimpleLogin premium for 1 year.
Can be an idea for a gift card :).
After the payment, the coupon will be sent to you by email.
< / div >
< a href = "#!" class = "paddle_button btn btn-primary" data-product = "{{ PADDLE_COUPON_ID }}" > Buy 1-year SimpleLogin
coupon< / a >
2021-07-13 08:54:37 +02:00
< / div >
< / div >
2021-11-22 16:30:27 +01:00
{% endblock %}
{% block script %}
< script type = "text/javascript" >
Paddle.Setup({vendor: {{PADDLE_VENDOR_ID}}});
< / script >
2021-07-13 08:54:37 +02:00
{% endblock %}