mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 09:44:41 +02:00
Renamed AdminPages/ templates folder to recommended snake_case style
This commit is contained in:
parent
1559b669df
commit
a128f40358
32 changed files with 32 additions and 32 deletions
64
templates/admin/_info.html.twig
Normal file
64
templates/admin/_info.html.twig
Normal file
|
@ -0,0 +1,64 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-4">{% trans %}id.label{% endtrans %}</label>
|
||||
<div class="col-md-8">
|
||||
<p class="form-control-plaintext">{% if entity.iD %}{{ entity.id }}{% else %}-{% endif %}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-4">{% trans %}createdAt{% endtrans %}</label>
|
||||
<div class="col-md-8">
|
||||
<p class="form-control-plaintext">
|
||||
|
||||
{% if entity.id is not null and date(entity.addedDate) > date('1900/01/01') %}
|
||||
{{ helper.date_user_combination(entity, false, "long") }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-4">{% trans %}lastModified{% endtrans %}</label>
|
||||
<div class="col-md-8">
|
||||
<p class="form-control-plaintext">
|
||||
{% if entity.id is not null and date(entity.lastModified) > date('1900/01/01') %}
|
||||
{{ helper.date_user_combination(entity, true, "long") }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<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">
|
||||
{% if entity.id and partsContainingElement %}
|
||||
{{ repo.partsCount(entity) }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</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 %}
|
Loading…
Add table
Add a link
Reference in a new issue