Added tab for extended infos to part info

This commit is contained in:
Jan Böhmer 2019-08-02 14:44:58 +02:00
parent 953ac422df
commit baa0466633
4 changed files with 58 additions and 38 deletions

View file

@ -0,0 +1,25 @@
{% import "helper.twig" as helper %}
<table class="table table-striped table-hover table-sm w-100">
<tbody>
<tr> {# Creation date #}
<td>{% trans %}createdAt{% endtrans %}</td>
<td>{{ part.addedDate | localizeddate("long")}}</td>
</tr>
<tr> {# Last modified date #}
<td>{% trans %}lastModified{% endtrans %}</td>
<td>{{ part.lastModified | localizeddate("long")}}</td>
</tr>
<tr> {# ID #}
<td>{% trans %}id.label{% endtrans %}</td>
<td>{{ part.iD }} ({{ part.iDString}})</td>
</tr>
<tr> {# Favorite status #}
<td>{% trans %}part.isFavorite{% endtrans %}</td>
<td>{{ helper.boolean(part.favorite) }}</td>
</tr>
</tbody>
</table>