2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +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:
Matthias Mair
2023-05-02 12:03:52 +02:00
committed by GitHub
parent 09fabff551
commit 10c3d101e8
145 changed files with 510 additions and 2589 deletions

View File

@ -10,7 +10,7 @@
{% endlocalize %}
{% block margin %}
margin: 0mm;
{% endblock %}
{% endblock margin %}
}
body {
@ -35,7 +35,7 @@
{% block style %}
/* User-defined styles can go here */
{% endblock %}
{% endblock style %}
</style>
</head>
@ -44,6 +44,6 @@
<div class='content'>
{% block content %}
<!-- Label data rendered here! -->
{% endblock %}
{% endblock content %}
</div>
</body>

View File

@ -1,7 +1,6 @@
{% extends "label/label_base.html" %}
{% load l10n %}
{% load barcode %}
{% load l10n i18n barcode %}
{% block style %}
@ -25,14 +24,14 @@
top: 2mm;
}
{% endblock %}
{% endblock style %}
{% block content %}
<img class='qr' src='{% qrcode qr_data %}'>
<img class='qr' alt="{% trans 'QC Code' %}" src='{% qrcode qr_data %}'>
<div class='part'>
{{ part.full_name }}
</div>
{% endblock %}
{% endblock content %}

View File

@ -1,7 +1,6 @@
{% extends "label/label_base.html" %}
{% load l10n %}
{% load barcode %}
{% load l10n i18n barcode %}
{% block style %}
@ -25,14 +24,14 @@
top: 2mm;
}
{% endblock %}
{% endblock style %}
{% block content %}
<img class='qr' src='{% barcode qr_data %}'>
<img class='qr' alt='{% trans "QR code" %}' src='{% barcode qr_data %}'>
<div class='part'>
{{ part.full_name }}
</div>
{% endblock %}
{% endblock content %}

View File

@ -1,7 +1,6 @@
{% extends "label/label_base.html" %}
{% load l10n %}
{% load barcode %}
{% load l10n i18n barcode %}
{% block style %}
@ -15,9 +14,9 @@
{% endlocalize %}
}
{% endblock %}
{% endblock style %}
{% block content %}
<img class='qr' src='{% qrcode qr_data %}'>
{% endblock %}
<img class='qr' alt="{% trans 'QC Code' %}" src='{% qrcode qr_data %}'>
{% endblock content %}

View File

@ -1,7 +1,6 @@
{% extends "label/label_base.html" %}
{% load l10n %}
{% load barcode %}
{% load l10n i18n barcode %}
{% block style %}
@ -15,9 +14,9 @@
{% endlocalize %}
}
{% endblock %}
{% endblock style %}
{% block content %}
<img class='qr' src='{% qrcode qr_data %}'>
{% endblock %}
<img class='qr' alt="{% trans 'QC Code' %}" src='{% qrcode qr_data %}'>
{% endblock content %}

View File

@ -1,7 +1,6 @@
{% extends "label/label_base.html" %}
{% load l10n %}
{% load barcode %}
{% load l10n i18n barcode %}
{% block style %}
@ -25,14 +24,14 @@
top: 2mm;
}
{% endblock %}
{% endblock style %}
{% block content %}
<img class='qr' src='{% qrcode qr_data %}'>
<img class='qr' alt="{% trans 'QR code' %}" src='{% qrcode qr_data %}'>
<div class='loc'>
{{ location.name }}
</div>
{% endblock %}
{% endblock content %}