replace i html tags

This commit is contained in:
Matthias 2021-09-02 00:18:47 +02:00
parent 6a420fd95c
commit 0ebc45e834
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
27 changed files with 45 additions and 45 deletions

View File

@ -24,7 +24,7 @@
</td> </td>
<td> <td>
{{ item.stock_item.part.full_name }}<br> {{ item.stock_item.part.full_name }}<br>
<i>{{ item.stock_item.part.description }}</i> <em>{{ item.stock_item.part.description }}</em>
</td> </td>
<td>{% decimal item.quantity %}</td> <td>{% decimal item.quantity %}</td>
<td>{{ item.stock_item.location }}</td> <td>{{ item.stock_item.location }}</td>

View File

@ -8,7 +8,7 @@
</p> </p>
{% if output %} {% if output %}
<p> <p>
{% blocktrans %}The allocated stock will be installed into the following build output:<br><i>{{output}}</i>{% endblocktrans %} {% blocktrans %}The allocated stock will be installed into the following build output:<br><em>{{output}}</em>{% endblocktrans %}
</p> </p>
{% endif %} {% endif %}
</div> </div>

View File

@ -40,7 +40,7 @@
{% if build.take_from %} {% if build.take_from %}
<a href="{% url 'stock-location-detail' build.take_from.id %}">{{ build.take_from }}</a>{% include "clip.html"%} <a href="{% url 'stock-location-detail' build.take_from.id %}">{{ build.take_from }}</a>{% include "clip.html"%}
{% else %} {% else %}
<i>{% trans "Stock can be taken from any available location." %}</i> <em>{% trans "Stock can be taken from any available location." %}</em>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
@ -53,7 +53,7 @@
{{ build.destination }} {{ build.destination }}
</a>{% include "clip.html"%} </a>{% include "clip.html"%}
{% else %} {% else %}
<i>{% trans "Destination location not specified" %}</i> <em>{% trans "Destination location not specified" %}</em>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
@ -127,7 +127,7 @@
{{ build.target_date }}{% if build.is_overdue %} <span class='fas fa-calendar-times icon-red'></span>{% endif %} {{ build.target_date }}{% if build.is_overdue %} <span class='fas fa-calendar-times icon-red'></span>{% endif %}
</td> </td>
{% else %} {% else %}
<td><i>{% trans "No target date set" %}</i></td> <td><em>{% trans "No target date set" %}</em></td>
{% endif %} {% endif %}
</tr> </tr>
<tr> <tr>
@ -136,7 +136,7 @@
{% if build.completion_date %} {% if build.completion_date %}
<td>{{ build.completion_date }}{% if build.completed_by %}<span class='badge'>{{ build.completed_by }}</span>{% endif %}</td> <td>{{ build.completion_date }}{% if build.completed_by %}<span class='badge'>{{ build.completed_by }}</span>{% endif %}</td>
{% else %} {% else %}
<td><i>{% trans "Build not complete" %}</i></td> <td><em>{% trans "Build not complete" %}</em></td>
{% endif %} {% endif %}
</tr> </tr>
</table> </table>

View File

@ -8,7 +8,7 @@
<p> <p>
<strong>{{ name }}</strong><br> <strong>{{ name }}</strong><br>
{{ description }}<br> {{ description }}<br>
<i>{% trans "Current value" %}: {{ value }}</i> <em>{% trans "Current value" %}: {{ value }}</em>
</p> </p>
--> -->
{% endblock %} {% endblock %}

View File

@ -78,7 +78,7 @@
{% if company.currency %} {% if company.currency %}
{{ company.currency }} {{ company.currency }}
{% else %} {% else %}
<i>{% trans "Uses default currency" %}</i> <em>{% trans "Uses default currency" %}</em>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>

View File

@ -225,7 +225,7 @@ $("#multi-parameter-delete").click(function() {
<ul>`; <ul>`;
selections.forEach(function(item) { selections.forEach(function(item) {
text += `<li>${item.name} - <i>${item.value}</i></li>`; text += `<li>${item.name} - <em>${item.value}</em></li>`;
}); });
text += ` text += `

View File

@ -38,7 +38,7 @@
<tr id='part_row_{{ part.id }}'> <tr id='part_row_{{ part.id }}'>
<td> <td>
{% include "hover_image.html" with image=part.image hover=False %} {% include "hover_image.html" with image=part.image hover=False %}
{{ part.full_name }} <small><i>{{ part.description }}</i></small> {{ part.full_name }} <small><em>{{ part.description }}</em></small>
</td> </td>
<td> <td>
<button class='btn btn-default btn-create' onClick='newSupplierPartFromOrderWizard()' id='new_supplier_part_{{ part.id }}' part='{{ part.pk }}' title='{% trans "Create new supplier part" %}' type='button'> <button class='btn btn-default btn-create' onClick='newSupplierPartFromOrderWizard()' id='new_supplier_part_{{ part.id }}' part='{{ part.pk }}' title='{% trans "Create new supplier part" %}' type='button'>
@ -62,7 +62,7 @@
</select> </select>
</div> </div>
{% if not part.order_supplier %} {% if not part.order_supplier %}
<span class='help-inline'>{% blocktrans with name=part.name %}Select a supplier for <i>{{name}}</i>{% endblocktrans %}</span> <span class='help-inline'>{% blocktrans with name=part.name %}Select a supplier for <em>{{name}}</em>{% endblocktrans %}</span>
{% endif %} {% endif %}
</div> </div>
</td> </td>

View File

@ -5,7 +5,7 @@
{% block form %} {% block form %}
{% blocktrans with desc=order.description %}Receive outstanding parts for <strong>{{order}}</strong> - <i>{{desc}}</i>{% endblocktrans %} {% blocktrans with desc=order.description %}Receive outstanding parts for <strong>{{order}}</strong> - <em>{{desc}}</em>{% endblocktrans %}
<form method='post' action='' class='js-modal-form' enctype='multipart/form-data'> <form method='post' action='' class='js-modal-form' enctype='multipart/form-data'>
{% csrf_token %} {% csrf_token %}

View File

@ -11,13 +11,13 @@
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
{% else %} {% else %}
<div class='alert alert-block alert-danger'> <div class='alert alert-block alert-danger'>
{% blocktrans with part=part.full_name %}The BOM for <i>{{ part }}</i> has changed, and must be validated.<br>{% endblocktrans %} {% blocktrans with part=part.full_name %}The BOM for <em>{{ part }}</em> has changed, and must be validated.<br>{% endblocktrans %}
{% endif %} {% endif %}
{% blocktrans with part=part.full_name checker=part.bom_checked_by check_date=part.bom_checked_date %}The BOM for <i>{{ part }}</i> was last checked by {{ checker }} on {{ check_date }}{% endblocktrans %} {% blocktrans with part=part.full_name checker=part.bom_checked_by check_date=part.bom_checked_date %}The BOM for <em>{{ part }}</em> was last checked by {{ checker }} on {{ check_date }}{% endblocktrans %}
</div> </div>
{% else %} {% else %}
<div class='alert alert-danger alert-block'> <div class='alert alert-danger alert-block'>
<strong>{% blocktrans with part=part.full_name %}The BOM for <i>{{ part }}</i> has not been validated.{% endblocktrans %}</strong> <strong>{% blocktrans with part=part.full_name %}The BOM for <em>{{ part }}</em> has not been validated.{% endblocktrans %}</strong>
</div> </div>
{% endif %} {% endif %}

View File

@ -3,7 +3,7 @@
{% load i18n %} {% load i18n %}
{% block pre_form_content %} {% block pre_form_content %}
{% blocktrans with part.full_name as part %}Confirm that the Bill of Materials (BOM) is valid for:<br><i>{{ part }}</i>{% endblocktrans %} {% blocktrans with part.full_name as part %}Confirm that the Bill of Materials (BOM) is valid for:<br><em>{{ part }}</em>{% endblocktrans %}
<div class='alert alert-warning alert-block'> <div class='alert alert-warning alert-block'>
{% trans 'This will validate each line in the BOM.' %} {% trans 'This will validate each line in the BOM.' %}

View File

@ -14,7 +14,7 @@
{% for match in matches %} {% for match in matches %}
<li class='list-group-item list-group-item-condensed'> <li class='list-group-item list-group-item-condensed'>
{% decimal match.ratio as match_per %} {% decimal match.ratio as match_per %}
{% blocktrans with full_name=match.part.full_name desc=match.part.description %}{{full_name}} - <i>{{desc}}</i> ({{match_per}}% match){% endblocktrans %} {% blocktrans with full_name=match.part.full_name desc=match.part.description %}{{full_name}} - <em>{{desc}}</em> ({{match_per}}% match){% endblocktrans %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -18,7 +18,7 @@
<div class='panel-content'> <div class='panel-content'>
{% if part.is_template %} {% if part.is_template %}
<div class='alert alert-info alert-block'> <div class='alert alert-info alert-block'>
{% blocktrans with full_name=part.full_name%}Showing stock for all variants of <i>{{full_name}}</i>{% endblocktrans %} {% blocktrans with full_name=part.full_name%}Showing stock for all variants of <em>{{full_name}}</em>{% endblocktrans %}
</div> </div>
{% endif %} {% endif %}
{% include "stock_table.html" %} {% include "stock_table.html" %}

View File

@ -37,7 +37,7 @@
{% else %} {% else %}
<tr> <tr>
<td colspan='3'> <td colspan='3'>
<span class='warning-msg'><i>{% trans 'No supplier pricing available' %}</i></span> <span class='warning-msg'><em>{% trans 'No supplier pricing available' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -78,14 +78,14 @@
{% if part.has_complete_bom_pricing == False %} {% if part.has_complete_bom_pricing == False %}
<tr> <tr>
<td colspan='3'> <td colspan='3'>
<span class='warning-msg'><i>{% trans 'Note: BOM pricing is incomplete for this part' %}</i></span> <span class='warning-msg'><em>{% trans 'Note: BOM pricing is incomplete for this part' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% else %} {% else %}
<tr> <tr>
<td colspan='3'> <td colspan='3'>
<span class='warning-msg'><i>{% trans 'No BOM pricing available' %}</i></span> <span class='warning-msg'><em>{% trans 'No BOM pricing available' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}

View File

@ -37,7 +37,7 @@
{% else %} {% else %}
<tr> <tr>
<td colspan='4'> <td colspan='4'>
<span class='warning-msg'><i>{% trans 'No supplier pricing available' %}</i></span> <span class='warning-msg'><em>{% trans 'No supplier pricing available' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -83,14 +83,14 @@
{% if part.has_complete_bom_pricing == False %} {% if part.has_complete_bom_pricing == False %}
<tr> <tr>
<td colspan='4'> <td colspan='4'>
<span class='warning-msg'><i>{% trans 'Note: BOM pricing is incomplete for this part' %}</i></span> <span class='warning-msg'><em>{% trans 'Note: BOM pricing is incomplete for this part' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% else %} {% else %}
<tr> <tr>
<td colspan='4'> <td colspan='4'>
<span class='warning-msg'><i>{% trans 'No BOM pricing available' %}</i></span> <span class='warning-msg'><em>{% trans 'No BOM pricing available' %}</em></span>
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -179,7 +179,7 @@
</div> </div>
<div class='panel-content'> <div class='panel-content'>
<h4>{% trans 'Stock Pricing' %} <h4>{% trans 'Stock Pricing' %}
<i class="fas fa-info-circle" title="Shows the purchase prices of stock for this part.&#10;The Supplier Unit Cost is the current purchase price for that supplier part."></i> <i class="fas fa-info-circle" title="Shows the purchase prices of stock for this part.&#10;The Supplier Unit Cost is the current purchase price for that supplier part."></em>
</h4> </h4>
{% if price_history|length > 0 %} {% if price_history|length > 0 %}
<div style="max-width: 99%; min-height: 300px"> <div style="max-width: 99%; min-height: 300px">

View File

@ -7,7 +7,7 @@
<div class='alert alert-info alert-block'> <div class='alert alert-info alert-block'>
<strong>{% trans "Create new part variant" %}</strong><br> <strong>{% trans "Create new part variant" %}</strong><br>
{% blocktrans with full_name=part.full_name %}Create a new variant of template <i>'{{full_name}}'</i>.{% endblocktrans %} {% blocktrans with full_name=part.full_name %}Create a new variant of template <em>'{{full_name}}'</em>.{% endblocktrans %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -128,7 +128,7 @@ content: "v{{report_revision}} - {{ date.isoformat }}";
{% if build.target_date %} {% if build.target_date %}
{{ build.target_date }} {{ build.target_date }}
{% else %} {% else %}
<i>Not specified</i> <em>Not specified</em>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
@ -138,7 +138,7 @@ content: "v{{report_revision}} - {{ date.isoformat }}";
{% if build.sales_order %} {% if build.sales_order %}
{% internal_link build.sales_order.get_absolute_url build.sales_order %} {% internal_link build.sales_order.get_absolute_url build.sales_order %}
{% else %} {% else %}
<i>Not specified</i> <em>Not specified</em>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>

View File

@ -68,8 +68,8 @@ content: "{% trans 'Stock Item Test Report' %}";
{{ part.full_name }} {{ part.full_name }}
</h2> </h2>
<p>{{ part.description }}</p> <p>{{ part.description }}</p>
<p><i>{{ stock_item.location }}</i></p> <p><em>{{ stock_item.location }}</em></p>
<p><i>Stock Item ID: {{ stock_item.pk }}</i></p> <p><em>Stock Item ID: {{ stock_item.pk }}</em></p>
</div> </div>
<div class='img-right'> <div class='img-right'>
<img class='part-img' src="{% part_image part %}"> <img class='part-img' src="{% part_image part %}">

View File

@ -300,7 +300,7 @@
{% if item.location %} {% if item.location %}
<td><a href="{% url 'stock-location-detail' item.location.id %}">{{ item.location.name }}</a></td> <td><a href="{% url 'stock-location-detail' item.location.id %}">{{ item.location.name }}</a></td>
{% else %} {% else %}
<td><i>{% trans "No location set" %}</i></td> <td><em>{% trans "No location set" %}</em></td>
{% endif %} {% endif %}
</tr> </tr>
{% endif %} {% endif %}
@ -367,7 +367,7 @@
{% if item.supplier_part.manufacturer_part.manufacturer %} {% if item.supplier_part.manufacturer_part.manufacturer %}
<td><a href="{% url 'company-detail' item.supplier_part.manufacturer_part.manufacturer.id %}">{{ item.supplier_part.manufacturer_part.manufacturer.name }}</a></td> <td><a href="{% url 'company-detail' item.supplier_part.manufacturer_part.manufacturer.id %}">{{ item.supplier_part.manufacturer_part.manufacturer.name }}</a></td>
{% else %} {% else %}
<td><i>{% trans "No manufacturer set" %}</i></td> <td><em>{% trans "No manufacturer set" %}</em></td>
{% endif %} {% endif %}
</tr> </tr>
@ -414,7 +414,7 @@
{% if item.stocktake_date %} {% if item.stocktake_date %}
<td>{{ item.stocktake_date }} <span class='badge'>{{ item.stocktake_user }}</span></td> <td>{{ item.stocktake_date }} <span class='badge'>{{ item.stocktake_user }}</span></td>
{% else %} {% else %}
<td><i>{% trans "No stocktake performed" %}</i></td> <td><em>{% trans "No stocktake performed" %}</em></td>
{% endif %} {% endif %}
</tr> </tr>
<tr> <tr>

View File

@ -20,7 +20,7 @@ the top level 'Stock' location.
<ul class='list-group'> <ul class='list-group'>
{% for loc in location.children.all %} {% for loc in location.children.all %}
<li class='list-group-item'><strong>{{ loc.name }}</strong> - <i>{{ loc.description}}</i></li> <li class='list-group-item'><strong>{{ loc.name }}</strong> - <em>{{ loc.description}}</em></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
@ -36,7 +36,7 @@ If this location is deleted, these items will be moved to the top level 'Stock'
<ul class='list-group'> <ul class='list-group'>
{% for item in location.stock_items.all %} {% for item in location.stock_items.all %}
<li class='list-group-item'><strong>{{ item.part.full_name }}</strong> - <i>{{ item.part.description }}</i><span class='badge'>{% decimal item.quantity %}</span></li> <li class='list-group-item'><strong>{{ item.part.full_name }}</strong> - <em>{{ item.part.description }}</em><span class='badge'>{% decimal item.quantity %}</span></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View File

@ -24,7 +24,7 @@
{% for item in stock_items %} {% for item in stock_items %}
<tr id='stock-row-{{ item.id }}' class='error'> <tr id='stock-row-{{ item.id }}' class='error'>
<td>{% include "hover_image.html" with image=item.part.image hover=True %} <td>{% include "hover_image.html" with image=item.part.image hover=True %}
{{ item.part.full_name }} <small><i>{{ item.part.description }}</i></small></td> {{ item.part.full_name }} <small><em>{{ item.part.description }}</em></small></td>
<td>{{ item.location.pathstring }}</td> <td>{{ item.location.pathstring }}</td>
<td>{% decimal item.quantity %}</td> <td>{% decimal item.quantity %}</td>
<td> <td>

View File

@ -5,7 +5,7 @@
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
<strong>{% trans "Convert Stock Item" %}</strong><br> <strong>{% trans "Convert Stock Item" %}</strong><br>
{% blocktrans with part=item.part %}This stock item is current an instance of <i>{{part}}</i>{% endblocktrans %}<br> {% blocktrans with part=item.part %}This stock item is current an instance of <em>{{part}}</em>{% endblocktrans %}<br>
{% trans "It can be converted to one of the part variants listed below." %} {% trans "It can be converted to one of the part variants listed below." %}
</div> </div>

View File

@ -21,7 +21,7 @@
{% if query %} {% if query %}
{% else %} {% else %}
<div id='empty-search-query'> <div id='empty-search-query'>
<h4><i>{% trans "Enter a search query" %}</i></h4> <h4><em>{% trans "Enter a search query" %}</em></h4>
</div> </div>
{% endif %} {% endif %}
@ -268,7 +268,7 @@
var text = "{% trans "Shipped to customer" %}"; var text = "{% trans "Shipped to customer" %}";
return renderLink(text, `/company/${row.customer}/assigned-stock/`); return renderLink(text, `/company/${row.customer}/assigned-stock/`);
} else { } else {
return '<i>{% trans "No stock location set" %}</i>'; return '<em>{% trans "No stock location set" %}</em>';
} }
} }
} }

View File

@ -40,7 +40,7 @@
{% if rates_updated %} {% if rates_updated %}
{{ rates_updated }} {{ rates_updated }}
{% else %} {% else %}
<i>{% trans "Never" %}</i> <em>{% trans "Never" %}</em>
{% endif %} {% endif %}
<form action='{% url "settings-currencies-refresh" %}' method='post'> <form action='{% url "settings-currencies-refresh" %}' method='post'>
<div id='refresh-rates-form'> <div id='refresh-rates-form'>

View File

@ -26,7 +26,7 @@
{% if setting.value %} {% if setting.value %}
{{ setting.value }} {{ setting.value }}
{% else %} {% else %}
<i>{% trans "No value set" %}</i> <em>{% trans "No value set" %}</em>
{% endif %} {% endif %}
</span> </span>
</strong> </strong>

View File

@ -87,7 +87,7 @@
<td> <td>
<span style="display: none;" id="about-copy-text">{% include "version.html" %}</span> <span style="display: none;" id="about-copy-text">{% include "version.html" %}</span>
<span class="float-right"> <span class="float-right">
<button class="btn clip-btn-version" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><i class="fas fa-copy"></i> {% trans "copy version information" %}</button> <button class="btn clip-btn-version" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><i class="fas fa-copy"></em> {% trans "copy version information" %}</button>
</span> </span>
</td> </td>
</tr> </tr>

View File

@ -1,5 +1,5 @@
{% load i18n %} {% load i18n %}
<span class="float-right"> <span class="float-right">
<button class="btn clip-btn" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><i class="fas fa-copy"></i></button> <button class="btn clip-btn" type="button" data-toggle='tooltip' title='{% trans "copy to clipboard" %}'><i class="fas fa-copy"></em></button>
</span> </span>

View File

@ -14,7 +14,7 @@
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h3 id='modal-title'><i>Form Title Here</i></h3> <h3 id='modal-title'><em>Form Title Here</em></h3>
</div> </div>
<div class='modal-form-content-wrapper'> <div class='modal-form-content-wrapper'>
<div class='alert alert-block alert-danger' id='form-validation-warning' style='display: none;'> <div class='alert alert-block alert-danger' id='form-validation-warning' style='display: none;'>
@ -40,7 +40,7 @@
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h3 id='modal-title'><i>Form Title Here</i></h3> <h3 id='modal-title'><em>Form Title Here</em></h3>
</div> </div>
<div class='modal-form-content-wrapper'> <div class='modal-form-content-wrapper'>
<div class='alert alert-block alert-danger' id='form-validation-warning' style="display: none;"> <div class='alert alert-block alert-danger' id='form-validation-warning' style="display: none;">