mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
55 lines
No EOL
1.7 KiB
Twig
55 lines
No EOL
1.7 KiB
Twig
{% import "helper.twig" as helper %}
|
|
|
|
<table class="table table-striped table-hover table-sm w-100 table-responsive-sm">
|
|
<tbody>
|
|
<tr> {# Creation date #}
|
|
<td>{% trans %}createdAt{% endtrans %}</td>
|
|
<td>{{ part.addedDate | format_datetime("long")}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{% trans %}user.creating_user{% endtrans %}</td>
|
|
<td>{% if is_granted('show_users', part) %}
|
|
{{ getCreatingUser(part).fullName(true) ?? 'Unknown'|trans }}
|
|
{% else %}
|
|
{% trans %}accessDenied{% endtrans %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr> {# Last modified date #}
|
|
<td>{% trans %}lastModified{% endtrans %}</td>
|
|
<td>{{ part.lastModified | format_datetime("long")}}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{% trans %}user.last_editing_user{% endtrans %}</td>
|
|
<td>{% if is_granted('show_users', part) %}
|
|
{{ getLastEditingUser(part).fullName(true) ?? 'Unknown'|trans }}
|
|
{% else %}
|
|
{% trans %}accessDenied{% endtrans %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
|
|
<tr> {# ID #}
|
|
<td>{% trans %}id.label{% endtrans %}</td>
|
|
<td>{{ part.iD }}</td>
|
|
</tr>
|
|
|
|
<tr> {# Favorite status #}
|
|
<td>{% trans %}part.isFavorite{% endtrans %}</td>
|
|
<td>{{ helper.boolean(part.favorite) }}</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>{% trans %}part.minOrderAmount{% endtrans %}</td>
|
|
<td>{% if pricedetail_helper.minOrderAmount(part) %}
|
|
{{ pricedetail_helper.minOrderAmount(part) | amountFormat(part.partUnit) }}
|
|
{% else %}
|
|
{% trans %}Unknown{% endtrans %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table> |