diff --git a/templates/Parts/info/_order_infos.html.twig b/templates/Parts/info/_order_infos.html.twig index 716bc179..cd64d58f 100644 --- a/templates/Parts/info/_order_infos.html.twig +++ b/templates/Parts/info/_order_infos.html.twig @@ -1,4 +1,4 @@ -
+
diff --git a/templates/Parts/info/_part_lots.html.twig b/templates/Parts/info/_part_lots.html.twig index 5a7bc217..02440889 100644 --- a/templates/Parts/info/_part_lots.html.twig +++ b/templates/Parts/info/_part_lots.html.twig @@ -3,93 +3,95 @@ {% include "Parts/info/_withdraw_modal.html.twig" %} -
- - - - - - {# Tags row #} - - {# Button row #} - - - - - {% for lot in part.partLots %} +
+
{% trans %}part_lots.description{% endtrans %}{% trans %}part_lots.storage_location{% endtrans %}{% trans %}part_lots.amount{% endtrans %}
+ - - + + + {# Tags row #} + + {# Button row #} + + + + + {% for lot in part.partLots %} + + + - + - + - - - - {% endfor %} - + {% endif %} + + + + + + {% endfor %} + -
{{ lot.description }} - {% if lot.storageLocation %} - {{ helper.structural_entity_link(lot.storageLocation) }} - {% else %} - + {% trans %}part_lots.description{% endtrans %}{% trans %}part_lots.storage_location{% endtrans %}{% trans %}part_lots.amount{% endtrans %}
{{ lot.description }} + {% if lot.storageLocation %} + {{ helper.structural_entity_link(lot.storageLocation) }} + {% else %} + {% trans %}part_lots.location_unknown{% endtrans %} - {% endif %} - - {% if lot.instockUnknown %} - + {% endif %} + + {% if lot.instockUnknown %} + {% trans %}part_lots.instock_unknown{% endtrans %} - {% else %} - {{ lot.amount | format_amount(part.partUnit, {'decimals': 5}) }} - {% endif %} - -
- {% if lot.expirationDate %} - + {% else %} + {{ lot.amount | format_amount(part.partUnit, {'decimals': 5}) }} + {% endif %} +
+
+ {% if lot.expirationDate %} + {{ lot.expirationDate | format_date() }} - {% endif %} - {% if lot.expired %} -
- + {% endif %} + {% if lot.expired %} +
+ {% trans %}part_lots.is_expired{% endtrans %} - {% endif %} - {% if lot.needsRefill %} -
- + {% endif %} + {% if lot.needsRefill %} +
+ {% trans %}part_lots.need_refill{% endtrans %} - {% endif %} -
-
-
- - - -
-
- {{ dropdown.profile_dropdown('part_lot', lot.id, false) }} -
+
+ + + +
+
+ {{ dropdown.profile_dropdown('part_lot', lot.id, false) }} +
\ No newline at end of file + +
\ No newline at end of file