mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 20:28:54 +02:00
Moved getParts() and getPartsCount() to a repository (instead of a class method).
This commit is contained in:
parent
350f1bb979
commit
14adb77a97
24 changed files with 421 additions and 71 deletions
|
@ -38,8 +38,8 @@
|
|||
<label class="col-form-label col-md-3">{% trans %}entity.info.parts_count{% endtrans %}</label>
|
||||
<div class="col-md-9">
|
||||
<p class="form-control-static">
|
||||
{% if entity.id and entity.parts is defined %}
|
||||
{{ entity.parts | length }}
|
||||
{% if entity.id and repo.partsCount is defined %}
|
||||
{{ repo.partsCount(entity) }}
|
||||
{% else %}
|
||||
-
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue