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

@@ -34,6 +34,9 @@
Last payment
</li>
</ul>
<form action="{% url 'portal' %}">
<input class="btn btn-lg btn-dark btn-block" type="submit" value="Subscription management">
</form>
</div>
</div>
@@ -46,6 +49,7 @@
</div>
</div>
</div>
</div>
</div>

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">

View File

@@ -1,12 +1,11 @@
{% extends "base.html" %}
{% block content %}
<head>
<title>Thanks for your order!</title>
<link rel="stylesheet" href="style.css">
</head>
<section>
<p>We appreciate your business!</p>
<p>Download details will be available <a href="{{ url_for('main.profile') }} ">in your profile</a> shortly.</p>
</section>
<h1 class="title">Pathogen Data Insights</h1>
<div class="container">
<h2 class="subtitle">Thank you for your order!</h2>
<div class="col">
<h2 class="subtitle">The customer portal will be available <a href="{% url 'billing' %} ">in your profile</a> shortly.</h2>
</div>
</div>
{% endblock %}