1c88ed8073
In most cases this mirrors the primary header on the page, but in some cases the title is simplified and/or nested to reflect the depth of the current page Co-authored-by: Thomas Steen Rasmussen <tykling@bornhack.org>
48 lines
1.4 KiB
HTML
48 lines
1.4 KiB
HTML
{% extends 'profile_base.html' %}
|
|
{% load bootstrap3 %}
|
|
{% load shop_tags %}
|
|
{% load bornhack %}
|
|
|
|
{% block title %}
|
|
Credit Notes | {{ block.super }}
|
|
{% endblock %}
|
|
|
|
{% block profile_content %}
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<h4>Credit Notes</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Credit Note ID</th>
|
|
<th>Text</th>
|
|
<th class="text-right">Amount</th>
|
|
<th>Paid?</th>
|
|
<th>PDF</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for creditnote in creditnotes %}
|
|
<tr>
|
|
<td>{{ creditnote.id }}</td>
|
|
<td>{{ creditnote.text }}</td>
|
|
<td class="text-right">{{ creditnote.amount|currency }}</td>
|
|
<td class="text-center">{{ creditnote.paid|truefalseicon }}</td>
|
|
<td>
|
|
{% if creditnote.pdf %}
|
|
{% url 'shop:download_creditnote' pk=creditnote.pk as creditnote_download_url %}
|
|
{% bootstrap_button "PDF" icon="save-file" href=creditnote_download_url button_class="btn-primary btn-xs" %}
|
|
{% else %}
|
|
N/A
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|