2015-10-15 19:37:54 -07:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2015-10-25 19:36:19 -07:00
|
|
|
{% load team_tags %}
|
|
|
|
|
2015-10-15 19:37:54 -07:00
|
|
|
{% block page-title %}Team Billing{% endblock %}
|
|
|
|
|
|
|
|
{% block body-class %}account {{ block.super }}{% endblock %}
|
|
|
|
|
|
|
|
{% block breadcrumb %}
|
|
|
|
<li><a href="/{{ team.user.username }}/">{{ team.user.username }}</a></li>
|
|
|
|
<span class="prompt">/</span> <li><a href="/{{ team.user.username }}/billing/">Billing</a></li>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<section class="snipts" id="snipts"></section>
|
|
|
|
<section class="profile group">
|
|
|
|
<aside>
|
|
|
|
<ul class="nav nav-list ng-cloak" ng-cloak>
|
|
|
|
<li class="nav-header">Team: {{ team.name }}</li>
|
2015-10-17 11:21:13 -07:00
|
|
|
<li>
|
|
|
|
<a href="/{{ team.slug }}/">Profile</a>
|
|
|
|
</li>
|
2015-10-15 19:37:54 -07:00
|
|
|
<li>
|
|
|
|
<a href="/{{ team.slug }}/members/">Members</a>
|
|
|
|
</li>
|
|
|
|
<li class="active">
|
|
|
|
<a href="/{{ team.slug }}/billing/">Billing</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
|
|
|
<section class="content">
|
|
|
|
<div class="def" data-title="Plan">
|
2015-10-25 19:36:19 -07:00
|
|
|
{{ name }}
|
2015-10-15 19:37:54 -07:00
|
|
|
</div>
|
2015-10-26 08:31:45 -07:00
|
|
|
{% if status != 'inactive' and status != 'promo' %}
|
2015-10-26 08:29:29 -07:00
|
|
|
<div class="def" data-title="Price">
|
|
|
|
${{ amount|currency_convert }}.00 USD / {{ interval }}
|
|
|
|
</div>
|
|
|
|
<div class="def" data-title="Card">
|
|
|
|
xxxx-xxxx-xxxx-{{ last4 }}
|
|
|
|
</div>
|
|
|
|
<div class="def" data-title="Status">
|
|
|
|
{{ status }}
|
|
|
|
</div>
|
|
|
|
<div class="def" data-title="Team since">
|
|
|
|
{{ team.created|date:'M d, Y' }}
|
|
|
|
</div>
|
|
|
|
<div class="def" data-title="Next bill date" ng-show="user.stripeAccount.status != 'inactive'">
|
|
|
|
{{ nextBill|to_date|date:'M d, Y' }}
|
|
|
|
</div>
|
|
|
|
<form class="alert alert-info group" style="margin: 15px; padding-right: 8px;" id="cancel-team-subscription" action="/{{ team.slug }}/billing/cancel/" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button type="submit" class="btn btn-danger pull-right">
|
|
|
|
Cancel subscription
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2015-10-15 19:37:54 -07:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block analytics %}
|
|
|
|
{% if not debug %}
|
|
|
|
window.ll('tagScreen', 'Team billing view');
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|