mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-01 03:00:54 +00:00
Replace mklint with djlint (#4746)
* remove markuplint * remove dedicated html step - will be done by pre-commit * add djlint for django template linting * Fix T003: Endblock should have name * Fix H013: Img tag should have an alt attribute * Fix H014: Found extra blank lines * Fix T003: Endblock should have name * Fix H013: Img tag should have an alt attribute * small fixes * Fix T001: Variables should be wrapped in a single whitespace * Fix T003: Endblock should have name * small fixes * fix form method * add entry to contributing * fix template changes * another fix * use current version
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
|
||||
{% block sidebar %}
|
||||
{% include "stock/stock_sidebar.html" %}
|
||||
{% endblock %}
|
||||
{% endblock sidebar %}
|
||||
|
||||
{% block page_content %}
|
||||
|
||||
@ -165,7 +165,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock page_content %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
@ -334,4 +334,4 @@
|
||||
|
||||
enableSidebar('stockitem');
|
||||
|
||||
{% endblock %}
|
||||
{% endblock js_ready %}
|
||||
|
@ -8,19 +8,19 @@
|
||||
|
||||
{% block page_title %}
|
||||
{% inventree_title %} | {% trans "Stock Item" %} - {{ item }}
|
||||
{% endblock %}
|
||||
{% endblock page_title %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<a href='#' id='breadcrumb-tree-toggle' class="breadcrumb-item"><span class="fas fa-bars"></span></a>
|
||||
{% include 'stock/loc_link.html' with location=item.location %}
|
||||
{% endblock %}
|
||||
{% endblock breadcrumbs %}
|
||||
|
||||
{% block breadcrumb_tree %}
|
||||
<div id="breadcrumb-tree"></div>
|
||||
{% endblock breadcrumb_tree %}
|
||||
|
||||
{% block heading %}
|
||||
{% trans "Stock Item" %}: {{ item.part.full_name}}
|
||||
{% trans "Stock Item" %}: {{ item.part.full_name }}
|
||||
{% endblock heading %}
|
||||
|
||||
{% block actions %}
|
||||
@ -131,7 +131,7 @@
|
||||
{% endblock actions %}
|
||||
|
||||
{% block thumbnail %}
|
||||
<img class='part-thumb' {% if item.part.image %}src="{{ item.part.image.preview.url }}"{% else %}src="{% static 'img/blank_image.png' %}"{% endif %}/>
|
||||
<img class='part-thumb' alt='{% trans "Image" %}' {% if item.part.image %}src="{{ item.part.image.preview.url }}"{% else %}src="{% static 'img/blank_image.png' %}"{% endif %}/>
|
||||
{% endblock thumbnail %}
|
||||
|
||||
{% block details %}
|
||||
@ -446,11 +446,9 @@
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
{% endblock details_right %}
|
||||
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
@ -531,7 +529,7 @@ $('#stock-edit-status').click(function () {
|
||||
$("#show-qr-code").click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Stock Item QR Code" %}',
|
||||
'{"stockitem": {{ item.pk }}}',
|
||||
'{"stockitem": {{ item.pk }} }',
|
||||
);
|
||||
});
|
||||
|
||||
@ -704,4 +702,4 @@ enableBreadcrumbTree({
|
||||
}
|
||||
});
|
||||
|
||||
{% endblock %}
|
||||
{% endblock js_ready %}
|
||||
|
@ -5,4 +5,4 @@
|
||||
{% trans "Create serialized items from this stock item." %}
|
||||
<br>
|
||||
{% trans "Select quantity to serialize, and unique serial numbers." %}
|
||||
{% endblock %}
|
||||
{% endblock pre_form_content %}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
{% block sidebar %}
|
||||
{% include "stock/location_sidebar.html" %}
|
||||
{% endblock %}
|
||||
{% endblock sidebar %}
|
||||
|
||||
{% block breadcrumb_tree %}
|
||||
<div id="breadcrumb-tree"></div>
|
||||
@ -23,7 +23,7 @@
|
||||
{% else %}
|
||||
{% trans "Stock" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock heading %}
|
||||
|
||||
{% block actions %}
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock actions %}
|
||||
|
||||
{% block details_left %}
|
||||
<table class='table table-striped table-condensed'>
|
||||
@ -230,7 +230,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% endblock page_content %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
@ -375,7 +375,7 @@
|
||||
$('#show-qr-code').click(function() {
|
||||
showQRDialog(
|
||||
'{% trans "Stock Location QR Code" %}',
|
||||
'{"stocklocation": {{ location.pk }}}'
|
||||
'{"stocklocation": {{ location.pk }} }'
|
||||
);
|
||||
});
|
||||
|
||||
@ -396,7 +396,6 @@
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
@ -446,4 +445,4 @@
|
||||
defaultIcon: global_settings.STOCK_LOCATION_DEFAULT_ICON,
|
||||
});
|
||||
|
||||
{% endblock %}
|
||||
{% endblock js_ready %}
|
||||
|
@ -9,13 +9,13 @@
|
||||
{% else %}
|
||||
{% inventree_title %} | {% trans "Stock" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock page_title %}
|
||||
|
||||
{% block sidenav %}
|
||||
<div id='stock-tree'>
|
||||
{% trans "Loading..." %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock sidenav %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<a href='#' id='breadcrumb-tree-toggle' class="breadcrumb-item"><span class="fas fa-bars"></span></a>
|
||||
|
Reference in New Issue
Block a user