add link to creditnotes in profile
This commit is contained in:
parent
8712ac4669
commit
1e2a9e5afd
|
@ -18,21 +18,26 @@
|
|||
</a>
|
||||
|
||||
{% if user.is_authenticated and user.orders.exists %}
|
||||
<a href="{% url 'shop:order_list' %}" class="btn btn-black">
|
||||
Orders
|
||||
</a>
|
||||
{% if has_tickets %}
|
||||
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
|
||||
Tickets
|
||||
</a>
|
||||
<a href="{% url 'shop:order_list' %}" class="btn btn-black">
|
||||
Orders
|
||||
</a>
|
||||
|
||||
{% if has_tickets %}
|
||||
<a href="{% url 'shop:ticket_list' %}" class="btn btn-black">
|
||||
Tickets
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if user.creditnotes.exists %}
|
||||
<a href="{% url 'shop:creditnote_list' %}" class="btn btn-black">
|
||||
Credit Notes
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</p>
|
||||
<hr />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{% block profile_content %}{% endblock %}
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue