haikal/templates/recalls/partials/recall_cars_table.html

35 lines
1.2 KiB
HTML

{% load i18n %}
{% if cars %}
<table class="table table-striped table-hover">
<thead>
<tr>
<th>{% trans "VIN" %}</th>
<th>{% trans "Make" %}</th>
<th>{% trans "Model" %}</th>
<th>{% trans "Series" %}</th>
<th>{% trans "Trim" %}</th>
<th>{% trans "Year" %}</th>
<th>{% trans "Dealer" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
{% for car in cars %}
<tr>
<td>{{ car.vin }}</td>
<td>{{ car.id_car_make|default:"-" }}</td>
<td>{{ car.id_car_model|default:"-" }}</td>
<td>{{ car.id_car_serie|default:"-" }}</td>
<td>{{ car.id_car_trim|default:"-" }}</td>
<td>{{ car.year }}</td>
<td>{{ car.dealer.name }}</td>
<td>{{ car.get_status_display }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ url }}" class="btn btn-primary">
<i class="fas fa-plus mr-2"></i>
{% trans "Recall Request" %}
</a>
{% endif %}