Move billing button to setting page
This commit is contained in:
parent
e810c99970
commit
9f95edf203
|
@ -8,7 +8,7 @@
|
|||
|
||||
{% block default_content %}
|
||||
|
||||
<div class="col-md-8 offset-md-2">
|
||||
<div class="col-md-8 offset-md-2 pb-3">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{{ form.csrf_token }}
|
||||
<input type="hidden" name="form-name" value="update-profile">
|
||||
|
@ -103,6 +103,18 @@
|
|||
<button type="submit" class="btn btn-outline-primary">Submit</button>
|
||||
</form>
|
||||
|
||||
|
||||
{% if current_user.get_subscription() %}
|
||||
<hr>
|
||||
<h3 class="mb-0">Billing</h3>
|
||||
<div class="small-text mb-3">
|
||||
Manage your current subscription.
|
||||
</div>
|
||||
<a href="{{ url_for('dashboard.billing') }}" class="btn btn-outline-primary">
|
||||
Manage Billing
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
<h3 class="mb-0">Export Data</h3>
|
||||
<div class="small-text mb-3">
|
||||
|
|
|
@ -32,11 +32,7 @@
|
|||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
|
||||
{% if current_user.get_subscription() %}
|
||||
<a class="dropdown-item" href="{{ url_for('dashboard.billing') }}">
|
||||
<i class="dropdown-icon fe fe-dollar-sign"></i> Billing
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<a class="dropdown-item" href="{{ url_for('auth.logout') }}">
|
||||
<i class="dropdown-icon fe fe-log-out"></i> Sign out
|
||||
|
|
Loading…
Reference in a new issue