Rename profile to billing
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
<div class="collapse navbar-collapse" id="base-nav">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{% if user.is_authenticated %}
|
||||
<li><a href="{% url 'profile' %}">Profile</a></li>
|
||||
<li><a href="{% url 'billing' %}">Billing</a></li>
|
||||
{% endif %}
|
||||
{% if user.paid %}
|
||||
<li><a href="{% url 'drilldown' %}">Drilldown</a></li>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
<button id="setup-button">Setup payment mandate</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include 'checkout.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,12 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1 class="title">Pathogen Products Panel</h1>
|
||||
<h2 class="subtitle">Billing and subscription management</h2>
|
||||
<div class="col">
|
||||
{% if user.subscription_active %}
|
||||
{% include 'checkout.html' %}
|
||||
{% else %}
|
||||
<h2> Please setup a payment mandate in the profile page to view products </h2>
|
||||
{% endif %}
|
||||
<h1 class="title">Pathogen Data Insights</h1>
|
||||
<div class="container">
|
||||
<h2 class="subtitle">Welcome to the Neptune system</h2>
|
||||
<div class="col">
|
||||
<h2 class="subtitle">Hello!</h2>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -16,8 +16,8 @@ class Home(View):
|
||||
return render(request, self.template_name)
|
||||
|
||||
|
||||
class Profile(LoginRequiredMixin, View):
|
||||
template_name = "profile.html"
|
||||
class Billing(LoginRequiredMixin, View):
|
||||
template_name = "billing.html"
|
||||
|
||||
def get(self, request):
|
||||
return render(request, self.template_name)
|
||||
|
||||
Reference in New Issue
Block a user