Implement subscription management and ordering

This commit is contained in:
2022-07-21 13:48:18 +01:00
parent e0390f383c
commit a30e2afdd1
12 changed files with 170 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
{% load static %}
{% for plan in plans %}
{% if plan not in user_plans %}
<a href="order?product={{ plan.name }}">
<a href="/order/{{ plan.product_id}}">
{% endif %}
<div class="product">
<img src="{% static plan.image %}" alt="Data image"/>
<div class="description">
@@ -15,10 +15,10 @@
{% endif %}
</div>
</div>
{% if plan not in user_plans %}
</a>
{% endif %}
{% endfor %}
<script type="text/javascript">