From 0ebc45e834a0c495f64852bcf503e412caeef6d6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Sep 2021 00:18:47 +0200 Subject: [PATCH] replace i html tags --- InvenTree/build/templates/build/auto_allocate.html | 2 +- InvenTree/build/templates/build/create_build_item.html | 2 +- InvenTree/build/templates/build/detail.html | 8 ++++---- InvenTree/common/templates/common/edit_setting.html | 2 +- InvenTree/company/templates/company/company_base.html | 2 +- .../company/templates/company/manufacturer_part.html | 2 +- .../order/templates/order/order_wizard/select_parts.html | 4 ++-- InvenTree/order/templates/order/receive_parts.html | 2 +- InvenTree/part/templates/part/bom.html | 6 +++--- InvenTree/part/templates/part/bom_validate.html | 2 +- InvenTree/part/templates/part/create_part.html | 2 +- InvenTree/part/templates/part/detail.html | 2 +- InvenTree/part/templates/part/part_pricing.html | 6 +++--- InvenTree/part/templates/part/prices.html | 8 ++++---- InvenTree/part/templates/part/variant_part.html | 2 +- .../templates/report/inventree_build_order_base.html | 4 ++-- .../templates/report/inventree_test_report_base.html | 4 ++-- InvenTree/stock/templates/stock/item_base.html | 6 +++--- InvenTree/stock/templates/stock/location_delete.html | 4 ++-- InvenTree/stock/templates/stock/stock_adjust.html | 2 +- InvenTree/stock/templates/stock/stockitem_convert.html | 2 +- InvenTree/templates/InvenTree/search.html | 4 ++-- InvenTree/templates/InvenTree/settings/currencies.html | 2 +- InvenTree/templates/InvenTree/settings/setting.html | 2 +- InvenTree/templates/about.html | 2 +- InvenTree/templates/clip.html | 2 +- InvenTree/templates/modals.html | 4 ++-- 27 files changed, 45 insertions(+), 45 deletions(-) diff --git a/InvenTree/build/templates/build/auto_allocate.html b/InvenTree/build/templates/build/auto_allocate.html index 49178ff556..2f2c7bbca7 100644 --- a/InvenTree/build/templates/build/auto_allocate.html +++ b/InvenTree/build/templates/build/auto_allocate.html @@ -24,7 +24,7 @@ {{ item.stock_item.part.full_name }}
- {{ item.stock_item.part.description }} + {{ item.stock_item.part.description }} {% decimal item.quantity %} {{ item.stock_item.location }} diff --git a/InvenTree/build/templates/build/create_build_item.html b/InvenTree/build/templates/build/create_build_item.html index 9ebf5bb389..cc23bd49a9 100644 --- a/InvenTree/build/templates/build/create_build_item.html +++ b/InvenTree/build/templates/build/create_build_item.html @@ -8,7 +8,7 @@

{% if output %}

- {% blocktrans %}The allocated stock will be installed into the following build output:
{{output}}{% endblocktrans %} + {% blocktrans %}The allocated stock will be installed into the following build output:
{{output}}{% endblocktrans %}

{% endif %} diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index 9ebd059428..421cac059c 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -40,7 +40,7 @@ {% if build.take_from %} {{ build.take_from }}{% include "clip.html"%} {% else %} - {% trans "Stock can be taken from any available location." %} + {% trans "Stock can be taken from any available location." %} {% endif %} @@ -53,7 +53,7 @@ {{ build.destination }} {% include "clip.html"%} {% else %} - {% trans "Destination location not specified" %} + {% trans "Destination location not specified" %} {% endif %} @@ -127,7 +127,7 @@ {{ build.target_date }}{% if build.is_overdue %} {% endif %} {% else %} - {% trans "No target date set" %} + {% trans "No target date set" %} {% endif %} @@ -136,7 +136,7 @@ {% if build.completion_date %} {{ build.completion_date }}{% if build.completed_by %}{{ build.completed_by }}{% endif %} {% else %} - {% trans "Build not complete" %} + {% trans "Build not complete" %} {% endif %} diff --git a/InvenTree/common/templates/common/edit_setting.html b/InvenTree/common/templates/common/edit_setting.html index 2ebebf75af..c479e268a5 100644 --- a/InvenTree/common/templates/common/edit_setting.html +++ b/InvenTree/common/templates/common/edit_setting.html @@ -8,7 +8,7 @@

{{ name }}
{{ description }}
- {% trans "Current value" %}: {{ value }} + {% trans "Current value" %}: {{ value }}

--> {% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index c50a9490f0..e4ca64b32e 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -78,7 +78,7 @@ {% if company.currency %} {{ company.currency }} {% else %} - {% trans "Uses default currency" %} + {% trans "Uses default currency" %} {% endif %} diff --git a/InvenTree/company/templates/company/manufacturer_part.html b/InvenTree/company/templates/company/manufacturer_part.html index cc2dd68840..13e81aaa90 100644 --- a/InvenTree/company/templates/company/manufacturer_part.html +++ b/InvenTree/company/templates/company/manufacturer_part.html @@ -225,7 +225,7 @@ $("#multi-parameter-delete").click(function() { diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 41332eeec5..6bad2bbbdf 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -18,7 +18,7 @@
{% if part.is_template %}
- {% blocktrans with full_name=part.full_name%}Showing stock for all variants of {{full_name}}{% endblocktrans %} + {% blocktrans with full_name=part.full_name%}Showing stock for all variants of {{full_name}}{% endblocktrans %}
{% endif %} {% include "stock_table.html" %} diff --git a/InvenTree/part/templates/part/part_pricing.html b/InvenTree/part/templates/part/part_pricing.html index b24a89f5c9..9ec80882af 100644 --- a/InvenTree/part/templates/part/part_pricing.html +++ b/InvenTree/part/templates/part/part_pricing.html @@ -37,7 +37,7 @@ {% else %} - {% trans 'No supplier pricing available' %} + {% trans 'No supplier pricing available' %} {% endif %} @@ -78,14 +78,14 @@ {% if part.has_complete_bom_pricing == False %} - {% trans 'Note: BOM pricing is incomplete for this part' %} + {% trans 'Note: BOM pricing is incomplete for this part' %} {% endif %} {% else %} - {% trans 'No BOM pricing available' %} + {% trans 'No BOM pricing available' %} {% endif %} diff --git a/InvenTree/part/templates/part/prices.html b/InvenTree/part/templates/part/prices.html index c4c6b863f4..69412ab2bb 100644 --- a/InvenTree/part/templates/part/prices.html +++ b/InvenTree/part/templates/part/prices.html @@ -37,7 +37,7 @@ {% else %} - {% trans 'No supplier pricing available' %} + {% trans 'No supplier pricing available' %} {% endif %} @@ -83,14 +83,14 @@ {% if part.has_complete_bom_pricing == False %} - {% trans 'Note: BOM pricing is incomplete for this part' %} + {% trans 'Note: BOM pricing is incomplete for this part' %} {% endif %} {% else %} - {% trans 'No BOM pricing available' %} + {% trans 'No BOM pricing available' %} {% endif %} @@ -179,7 +179,7 @@

{% trans 'Stock Pricing' %} - +

{% if price_history|length > 0 %}
diff --git a/InvenTree/part/templates/part/variant_part.html b/InvenTree/part/templates/part/variant_part.html index f3739b2c9c..8a6064711f 100644 --- a/InvenTree/part/templates/part/variant_part.html +++ b/InvenTree/part/templates/part/variant_part.html @@ -7,7 +7,7 @@
{% trans "Create new part variant" %}
- {% blocktrans with full_name=part.full_name %}Create a new variant of template '{{full_name}}'.{% endblocktrans %} + {% blocktrans with full_name=part.full_name %}Create a new variant of template '{{full_name}}'.{% endblocktrans %}
{% endblock %} \ No newline at end of file diff --git a/InvenTree/report/templates/report/inventree_build_order_base.html b/InvenTree/report/templates/report/inventree_build_order_base.html index 2d2d2766bb..20e6a6ffd0 100644 --- a/InvenTree/report/templates/report/inventree_build_order_base.html +++ b/InvenTree/report/templates/report/inventree_build_order_base.html @@ -128,7 +128,7 @@ content: "v{{report_revision}} - {{ date.isoformat }}"; {% if build.target_date %} {{ build.target_date }} {% else %} - Not specified + Not specified {% endif %} @@ -138,7 +138,7 @@ content: "v{{report_revision}} - {{ date.isoformat }}"; {% if build.sales_order %} {% internal_link build.sales_order.get_absolute_url build.sales_order %} {% else %} - Not specified + Not specified {% endif %} diff --git a/InvenTree/report/templates/report/inventree_test_report_base.html b/InvenTree/report/templates/report/inventree_test_report_base.html index d6d9c5644f..d702973c30 100644 --- a/InvenTree/report/templates/report/inventree_test_report_base.html +++ b/InvenTree/report/templates/report/inventree_test_report_base.html @@ -68,8 +68,8 @@ content: "{% trans 'Stock Item Test Report' %}"; {{ part.full_name }}

{{ part.description }}

-

{{ stock_item.location }}

-

Stock Item ID: {{ stock_item.pk }}

+

{{ stock_item.location }}

+

Stock Item ID: {{ stock_item.pk }}

diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index a420da87f5..759732fe6e 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -300,7 +300,7 @@ {% if item.location %} {{ item.location.name }} {% else %} - {% trans "No location set" %} + {% trans "No location set" %} {% endif %} {% endif %} @@ -367,7 +367,7 @@ {% if item.supplier_part.manufacturer_part.manufacturer %} {{ item.supplier_part.manufacturer_part.manufacturer.name }} {% else %} - {% trans "No manufacturer set" %} + {% trans "No manufacturer set" %} {% endif %} @@ -414,7 +414,7 @@ {% if item.stocktake_date %} {{ item.stocktake_date }} {{ item.stocktake_user }} {% else %} - {% trans "No stocktake performed" %} + {% trans "No stocktake performed" %} {% endif %} diff --git a/InvenTree/stock/templates/stock/location_delete.html b/InvenTree/stock/templates/stock/location_delete.html index 738131ec92..22b4168173 100644 --- a/InvenTree/stock/templates/stock/location_delete.html +++ b/InvenTree/stock/templates/stock/location_delete.html @@ -20,7 +20,7 @@ the top level 'Stock' location.
    {% for loc in location.children.all %} -
  • {{ loc.name }} - {{ loc.description}}
  • +
  • {{ loc.name }} - {{ loc.description}}
  • {% endfor %}
{% endif %} @@ -36,7 +36,7 @@ If this location is deleted, these items will be moved to the top level 'Stock'
    {% for item in location.stock_items.all %} -
  • {{ item.part.full_name }} - {{ item.part.description }}{% decimal item.quantity %}
  • +
  • {{ item.part.full_name }} - {{ item.part.description }}{% decimal item.quantity %}
  • {% endfor %}
{% endif %} diff --git a/InvenTree/stock/templates/stock/stock_adjust.html b/InvenTree/stock/templates/stock/stock_adjust.html index 5ee02c7ca3..60a9ec2658 100644 --- a/InvenTree/stock/templates/stock/stock_adjust.html +++ b/InvenTree/stock/templates/stock/stock_adjust.html @@ -24,7 +24,7 @@ {% for item in stock_items %} {% include "hover_image.html" with image=item.part.image hover=True %} - {{ item.part.full_name }} {{ item.part.description }} + {{ item.part.full_name }} {{ item.part.description }} {{ item.location.pathstring }} {% decimal item.quantity %} diff --git a/InvenTree/stock/templates/stock/stockitem_convert.html b/InvenTree/stock/templates/stock/stockitem_convert.html index c75b278f74..d4e3487567 100644 --- a/InvenTree/stock/templates/stock/stockitem_convert.html +++ b/InvenTree/stock/templates/stock/stockitem_convert.html @@ -5,7 +5,7 @@
{% trans "Convert Stock Item" %}
- {% blocktrans with part=item.part %}This stock item is current an instance of {{part}}{% endblocktrans %}
+ {% blocktrans with part=item.part %}This stock item is current an instance of {{part}}{% endblocktrans %}
{% trans "It can be converted to one of the part variants listed below." %}
diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index e027df7a7b..af0711bc35 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -21,7 +21,7 @@ {% if query %} {% else %}
-

{% trans "Enter a search query" %}

+

{% trans "Enter a search query" %}

{% endif %} @@ -268,7 +268,7 @@ var text = "{% trans "Shipped to customer" %}"; return renderLink(text, `/company/${row.customer}/assigned-stock/`); } else { - return '{% trans "No stock location set" %}'; + return '{% trans "No stock location set" %}'; } } } diff --git a/InvenTree/templates/InvenTree/settings/currencies.html b/InvenTree/templates/InvenTree/settings/currencies.html index 85274e91aa..08434cc704 100644 --- a/InvenTree/templates/InvenTree/settings/currencies.html +++ b/InvenTree/templates/InvenTree/settings/currencies.html @@ -40,7 +40,7 @@ {% if rates_updated %} {{ rates_updated }} {% else %} - {% trans "Never" %} + {% trans "Never" %} {% endif %}
diff --git a/InvenTree/templates/InvenTree/settings/setting.html b/InvenTree/templates/InvenTree/settings/setting.html index 89c9989c42..de3439a647 100644 --- a/InvenTree/templates/InvenTree/settings/setting.html +++ b/InvenTree/templates/InvenTree/settings/setting.html @@ -26,7 +26,7 @@ {% if setting.value %} {{ setting.value }} {% else %} - {% trans "No value set" %} + {% trans "No value set" %} {% endif %} diff --git a/InvenTree/templates/about.html b/InvenTree/templates/about.html index 358d468ca8..5b589bf47c 100644 --- a/InvenTree/templates/about.html +++ b/InvenTree/templates/about.html @@ -87,7 +87,7 @@ - + diff --git a/InvenTree/templates/clip.html b/InvenTree/templates/clip.html index a56ece838c..d4232b02b4 100644 --- a/InvenTree/templates/clip.html +++ b/InvenTree/templates/clip.html @@ -1,5 +1,5 @@ {% load i18n %} - + \ No newline at end of file diff --git a/InvenTree/templates/modals.html b/InvenTree/templates/modals.html index 11ddc40938..ac26a5fa9a 100644 --- a/InvenTree/templates/modals.html +++ b/InvenTree/templates/modals.html @@ -14,7 +14,7 @@ - +