aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/payments/landingpage.html
blob: 98973011171f59b642ba559ef94963721da454d6 (plain) (blame)
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
{% extends "base.html" %}
{% block content %}
    <div class="container my-5">
        <div class="row">
            <h2>Welcome to PyBlackbird - Buy this</h2>

            <section>
                <div class="product">
                    <div class="description">
                        <h3>{{ product.name }}</h3>
                        <hr/>
                        {% for price in prices %}

                            <div>
                                <h5>${{ price.get_display_price }}</h5>
                                <form action="{% url 'payments:create-checkout-session' price.id %}" method="POST">
                                    {% csrf_token %}
                                    <button type="submit" class="btn btn-primary">Checkout</button>
                                </form>
                            </div>

                        {% endfor %}
                    </div>
                </div>
            </section>


        </div>
{% endblock content %}