2022-07-21 12:45:28 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
2022-07-21 12:47:56 +00:00
|
|
|
<h1 class="title">Billing/Plan Management</h1>
|
2022-07-21 12:46:05 +00:00
|
|
|
<div class="container">
|
2022-07-21 12:45:28 +00:00
|
|
|
<div class="row">
|
2022-07-21 12:47:56 +00:00
|
|
|
<div class="col-xs-10 col-md-4 col-lg-4">
|
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Products
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="badge">{{ user.first_name }}</span>
|
|
|
|
First name
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="badge">{{ user.last_name }}</span>
|
|
|
|
Last name
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
{% for plan in user.plans.all %}
|
|
|
|
<span class="badge">{{ plan.name }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
Plans
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="badge">{{ user.paid }}</span>
|
|
|
|
Paid
|
|
|
|
</li>
|
|
|
|
<li class="list-group-item">
|
|
|
|
<span class="badge">{{ user.last_payment }}</span>
|
|
|
|
Last payment
|
|
|
|
</li>
|
|
|
|
</ul>
|
2022-07-21 12:48:18 +00:00
|
|
|
<form action="{% url 'portal' %}">
|
|
|
|
<input class="btn btn-lg btn-dark btn-block" type="submit" value="Subscription management">
|
|
|
|
</form>
|
2022-07-21 12:47:56 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:47:56 +00:00
|
|
|
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
Available plans
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{% include "partials/product-list.html" %}
|
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:47:56 +00:00
|
|
|
|
2022-07-21 12:48:18 +00:00
|
|
|
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
{% endblock %}
|
|
|
|
|