Add account number and suscription on counter

This commit is contained in:
2016-10-08 23:07:10 +02:00
parent c66d61ee85
commit d285fbe04a
3 changed files with 9 additions and 4 deletions

View File

@@ -34,6 +34,11 @@
</div>
{%- endmacro %}
{% macro user_subscription(user) %}
{% trans subscription_end=get_subscriber(user).subscriptions.last().subscription_end %}Subscribed until {{ subscription_end }}{% endtrans %}<br/>
{% trans %}Account number: {% endtrans %}{{ user.customer.account_id }}<br/>
{%- endmacro %}
{% macro show_slots(user) %}
{% if get_subscriber(user).slots.filter(start_date__gte=timezone.now()).exists() %}
<h5>{% trans %}Slot{% endtrans %}</h5>