2019-08-02 14:44:58 +02:00
|
|
|
{% import "helper.twig" as helper %}
|
|
|
|
|
2020-01-04 21:42:44 +01:00
|
|
|
<table class="table table-striped table-hover table-sm w-100 table-responsive-sm">
|
2019-08-02 14:44:58 +02:00
|
|
|
<tbody>
|
2019-09-02 18:58:21 +02:00
|
|
|
<tr> {# Creation date #}
|
|
|
|
<td>{% trans %}createdAt{% endtrans %}</td>
|
2019-11-23 14:48:21 +01:00
|
|
|
<td>{{ part.addedDate | format_datetime("long")}}</td>
|
2019-09-02 18:58:21 +02:00
|
|
|
</tr>
|
2019-08-02 14:44:58 +02:00
|
|
|
|
2020-02-06 19:22:01 +01:00
|
|
|
<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>
|
|
|
|
|
2019-09-02 18:58:21 +02:00
|
|
|
<tr> {# Last modified date #}
|
|
|
|
<td>{% trans %}lastModified{% endtrans %}</td>
|
2019-11-23 14:48:21 +01:00
|
|
|
<td>{{ part.lastModified | format_datetime("long")}}</td>
|
2019-09-02 18:58:21 +02:00
|
|
|
</tr>
|
2019-08-02 14:44:58 +02:00
|
|
|
|
2020-02-06 19:22:01 +01:00
|
|
|
<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>
|
|
|
|
|
2019-09-02 18:58:21 +02:00
|
|
|
<tr> {# ID #}
|
|
|
|
<td>{% trans %}id.label{% endtrans %}</td>
|
2020-05-13 21:19:23 +02:00
|
|
|
<td>{{ part.iD }}</td>
|
2019-09-02 18:58:21 +02:00
|
|
|
</tr>
|
2019-08-02 14:44:58 +02:00
|
|
|
|
2019-09-02 18:58:21 +02:00
|
|
|
<tr> {# Favorite status #}
|
|
|
|
<td>{% trans %}part.isFavorite{% endtrans %}</td>
|
|
|
|
<td>{{ helper.boolean(part.favorite) }}</td>
|
|
|
|
</tr>
|
2019-09-02 17:46:52 +02:00
|
|
|
|
2019-09-02 18:58:21 +02:00
|
|
|
<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>
|
2019-08-02 14:44:58 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|