polish backoffice part 2

This commit is contained in:
Thomas Steen Rasmussen 2017-12-12 22:48:45 +01:00
parent ecdc62df7c
commit a0c646e1cf
3 changed files with 26 additions and 11 deletions

View file

@ -21,21 +21,27 @@
<table class="table table-hover">
<thead>
<tr>
<th>Ticket</th>
<th>User</th>
<th>Email</th>
<th>Name</th>
<th>Ticket UUID</th>
<th>Ticket Type</th>
<th>Ticket Order ID</th>
<th>Order User</th>
<th>Order Email</th>
<th>Ticket Name</th>
<th>Ticket Email</th>
<th>Product</th>
</tr>
</thead>
<tbody>
{% for ticket in tickets %}
<tr>
<td>{{ ticket.uuid }}</td>
<td><a href="/admin/tickets/shopticket/{{ ticket.uuid }}/change/">{{ ticket.uuid }}</a></td>
<td>{{ ticket.shortname }}</td>
<td><a href="/admin/shop/order/{{ ticket.order.id }}/change/">{{ ticket.order.id }}</a></td>
<td>{{ ticket.order.user }}</td>
<td>{{ ticket.order.user.email }}</td>
<td>{{ ticket.name }}</td>
<td>{{ ticket.email }}</td>
<td>{{ ticket.product }}</td>
</tr>
{% endfor %}
</tbody>

View file

@ -21,21 +21,27 @@
<table class="table table-hover">
<thead>
<tr>
<th>Ticket</th>
<th>User</th>
<th>Email</th>
<th>Name</th>
<th>Ticket UUID</th>
<th>Ticket Type</th>
<th>Order ID</th>
<th>Order User</th>
<th>Order Email</th>
<th>Ticket Name</th>
<th>Ticket Email</th>
<th>Product</th>
</tr>
</thead>
<tbody>
{% for ticket in tickets %}
<p>{{ ticket }}
<tr>
<td><a href="/admin/tickets/{{ ticket }}/{{ ticket.uuid }}/change/">{{ ticket }}</a></td>
<td><a href="/admin/tickets/shopticket/{{ ticket.uuid }}/change/">{{ ticket.uuid }}</a></td>
<td>{{ ticket.shortname }}</td>
<td><a href="/admin/shop/order/{{ ticket.order.id }}/change/">{{ ticket.order.id }}</a></td>
<td>{{ ticket.order.user }}</td>
<td>{{ ticket.order.user.email }}</td>
<td>{{ ticket.name }}</td>
<td>{{ ticket.email }}</td>
<td>{{ ticket.product }}</td>
</tr>
{% endfor %}
</tbody>

View file

@ -72,6 +72,9 @@
</li>
<li><a href="{% url 'contact' %}">Contact</a></li>
<li><a href="{% url 'people' %}">People</a></li>
{% if user.is_authenticated and user.is_staff %}
<li><a href="{% url 'backoffice:index' %}">Backoffice</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}