2020-02-06 19:22:01 +01:00
|
|
|
{% import "helper.twig" as helper %}
|
|
|
|
|
2019-09-04 19:37:35 +02:00
|
|
|
<div class="form-group row">
|
2022-09-21 13:20:57 +02:00
|
|
|
<label class="col-form-label col-md-4">{% trans %}id.label{% endtrans %}</label>
|
|
|
|
<div class="col-md-8">
|
2019-09-04 19:37:35 +02:00
|
|
|
<p class="form-control-plaintext">{% if entity.iD %}{{ entity.id }}{% else %}-{% endif %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
2022-09-21 13:20:57 +02:00
|
|
|
<label class="col-form-label col-md-4">{% trans %}createdAt{% endtrans %}</label>
|
|
|
|
<div class="col-md-8">
|
2019-09-04 19:37:35 +02:00
|
|
|
<p class="form-control-plaintext">
|
|
|
|
|
2020-02-06 19:22:01 +01:00
|
|
|
{% if entity.id is not null and date(entity.addedDate) > date('1900/01/01') %}
|
|
|
|
{{ helper.date_user_combination(entity, false, "long") }}
|
2019-09-04 19:37:35 +02:00
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
2022-09-21 13:20:57 +02:00
|
|
|
<label class="col-form-label col-md-4">{% trans %}lastModified{% endtrans %}</label>
|
|
|
|
<div class="col-md-8">
|
2019-09-04 19:37:35 +02:00
|
|
|
<p class="form-control-plaintext">
|
2020-02-06 19:22:01 +01:00
|
|
|
{% if entity.id is not null and date(entity.lastModified) > date('1900/01/01') %}
|
|
|
|
{{ helper.date_user_combination(entity, true, "long") }}
|
2019-09-04 19:37:35 +02:00
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
2022-09-21 13:20:57 +02:00
|
|
|
<label class="col-form-label col-md-4">{% trans %}entity.info.parts_count{% endtrans %}</label>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<p class="form-control-plaintext">
|
2020-05-16 21:14:05 +02:00
|
|
|
{% if entity.id and partsContainingElement %}
|
2020-05-16 20:53:35 +02:00
|
|
|
{{ repo.partsCount(entity) }}
|
2019-09-04 19:37:35 +02:00
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
2022-09-21 13:20:57 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{# Check if we really have a structural element #}
|
|
|
|
{% if entity.parent is defined %}
|
|
|
|
<div class="form-group row">
|
|
|
|
<label class="col-form-label col-md-4">{% trans %}entity.info.parts_count_recursive{% endtrans %}</label>
|
|
|
|
<div class="col-md-8">
|
|
|
|
<p class="form-control-plaintext">
|
|
|
|
{% if entity.id and partsContainingElement %}
|
|
|
|
{{ repo.partsCountRecursive(entity) }}
|
|
|
|
{% else %}
|
|
|
|
-
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|