show user on expense and revenue list and detail views
This commit is contained in:
parent
864a7e6673
commit
51f8854a6c
|
@ -2,6 +2,10 @@
|
|||
<div class="panel-heading">Expense Details for {{ expense.pk }}</div>
|
||||
<div class="panel-body">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Created By</th>
|
||||
<td>{{ expense.user }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Amount</th>
|
||||
<td>{{ expense.amount }} DKK</td>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created By</th>
|
||||
{% if not reimbursement %}
|
||||
<th>Paid by</th>
|
||||
{% endif %}
|
||||
|
@ -19,6 +20,7 @@
|
|||
<tbody>
|
||||
{% for expense in expense_list %}
|
||||
<tr>
|
||||
<td>{{ expense.user }}</td>
|
||||
{% if not reimbursement %}
|
||||
<td>{% if expense.paid_by_bornhack %}BornHack{% else %}{{ expense.user }}{% endif %}</td>
|
||||
{% endif %}
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
<div class="panel-heading">Revenue Details for {{ revenue.pk }}</div>
|
||||
<div class="panel-body">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Created By</th>
|
||||
<td>{{ revenue.user }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Amount</th>
|
||||
<td>{{ revenue.amount }} DKK</td>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created By</th>
|
||||
<th>Amount</th>
|
||||
<th>Invoice Date</th>
|
||||
<th>Description</th>
|
||||
|
@ -13,6 +14,7 @@
|
|||
<tbody>
|
||||
{% for revenue in revenue_list %}
|
||||
<tr>
|
||||
<td>{{ revenue.user }}</td>
|
||||
<td>{{ revenue.amount }} DKK</td>
|
||||
<td>{{ revenue.invoice_date }}</td>
|
||||
<td>{{ revenue.description }}</td>
|
||||
|
|
Loading…
Reference in a new issue