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"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>Ticket</th> <th>Ticket UUID</th>
<th>User</th> <th>Ticket Type</th>
<th>Email</th> <th>Ticket Order ID</th>
<th>Name</th> <th>Order User</th>
<th>Order Email</th>
<th>Ticket Name</th>
<th>Ticket Email</th>
<th>Product</th> <th>Product</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for ticket in tickets %} {% for ticket in tickets %}
<tr> <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 }}</td>
<td>{{ ticket.order.user.email }}</td> <td>{{ ticket.order.user.email }}</td>
<td>{{ ticket.name }}</td> <td>{{ ticket.name }}</td>
<td>{{ ticket.email }}</td> <td>{{ ticket.email }}</td>
<td>{{ ticket.product }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -21,21 +21,27 @@
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
<tr> <tr>
<th>Ticket</th> <th>Ticket UUID</th>
<th>User</th> <th>Ticket Type</th>
<th>Email</th> <th>Order ID</th>
<th>Name</th> <th>Order User</th>
<th>Order Email</th>
<th>Ticket Name</th>
<th>Ticket Email</th>
<th>Product</th> <th>Product</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for ticket in tickets %} {% for ticket in tickets %}
<p>{{ ticket }}
<tr> <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 }}</td>
<td>{{ ticket.order.user.email }}</td> <td>{{ ticket.order.user.email }}</td>
<td>{{ ticket.name }}</td> <td>{{ ticket.name }}</td>
<td>{{ ticket.email }}</td>
<td>{{ ticket.product }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View File

@ -72,6 +72,9 @@
</li> </li>
<li><a href="{% url 'contact' %}">Contact</a></li> <li><a href="{% url 'contact' %}">Contact</a></li>
<li><a href="{% url 'people' %}">People</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>
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %} {% if user.is_authenticated %}