mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-29 05:29:34 +00:00
Added tab for extended infos to part info
This commit is contained in:
parent
953ac422df
commit
baa0466633
4 changed files with 58 additions and 38 deletions
25
templates/Parts/info/_extended_infos.html.twig
Normal file
25
templates/Parts/info/_extended_infos.html.twig
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue