mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Small templates improvements for books and rs
This commit is contained in:
@@ -108,16 +108,6 @@
|
|||||||
<th scope="row">Publication year</th>
|
<th scope="row">Publication year</th>
|
||||||
<td>{{ book.publication_year|default:"-" }}</td>
|
<td>{{ book.publication_year|default:"-" }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if request.user.is_staff %}
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Purchase date</th>
|
|
||||||
<td>{{ book.purchase_date|default:"-" }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Price ({{ site_conf.currency }})</th>
|
|
||||||
<td>{{ book.price|default:"-" }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% if book.description %}
|
{% if book.description %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-33" scope="row">Description</th>
|
<th class="w-33" scope="row">Description</th>
|
||||||
@@ -126,6 +116,25 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% if request.user.is_staff %}
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2" scope="row">Purchase</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="table-group-divider">
|
||||||
|
<tr>
|
||||||
|
<th class="w-33" scope="row">Purchase date</th>
|
||||||
|
<td>{{ book.purchase_date|default:"-" }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Price ({{ site_conf.currency }})</th>
|
||||||
|
<td>{{ book.price|default:"-" }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endif %}
|
||||||
{% if properties %}
|
{% if properties %}
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
@@ -73,7 +73,7 @@
|
|||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2" scope="row">Data</th>
|
<th colspan="2" scope="row">Rolling stock</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="table-group-divider">
|
<tbody class="table-group-divider">
|
||||||
@@ -182,16 +182,6 @@
|
|||||||
<th scope="row">Production year</th>
|
<th scope="row">Production year</th>
|
||||||
<td>{{ rolling_stock.production_year|default:"-" }}</td>
|
<td>{{ rolling_stock.production_year|default:"-" }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if request.user.is_staff %}
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Purchase date</th>
|
|
||||||
<td>{{ rolling_stock.purchase_date|default:"-" }}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row">Price ({{ site_conf.currency }})</th>
|
|
||||||
<td>{{ rolling_stock.price|default:"-" }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% if rolling_stock.description %}
|
{% if rolling_stock.description %}
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-33" scope="row">Description</th>
|
<th class="w-33" scope="row">Description</th>
|
||||||
@@ -200,6 +190,25 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% if request.user.is_staff %}
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2" scope="row">Purchase</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody class="table-group-divider">
|
||||||
|
<tr>
|
||||||
|
<th class="w-33" scope="row">Purchase date</th>
|
||||||
|
<td>{{ rolling_stock.purchase_date|default:"-" }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Price ({{ site_conf.currency }})</th>
|
||||||
|
<td>{{ rolling_stock.price|default:"-" }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endif %}
|
||||||
{% if properties %}
|
{% if properties %}
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
|
Reference in New Issue
Block a user