show user on expense and revenue list and detail views

This commit is contained in:
Thomas Steen Rasmussen 2019-01-20 15:50:54 +01:00
parent 864a7e6673
commit 51f8854a6c
4 changed files with 12 additions and 0 deletions

View file

@ -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>

View file

@ -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 %}

View file

@ -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>

View file

@ -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>