diff --git a/pyproject.toml b/pyproject.toml index b4f22f7..5c73296 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,15 @@ extension = ".dj.html" indent = 2 blank_line_after_tag = "load,extends" ignore = "T003,H017,H021,H030,H031" +format_css = true +format_js = true + +[tool.djlint.css] +indent_size = 2 + +[tool.djlint.js] +indent_size = 2 + [[tool.pdm.source]] url = "https://pypi.org/simple" diff --git a/rentals/templates/rentals/lockers.dj.html b/rentals/templates/rentals/lockers.dj.html index 758bcac..9f80a09 100644 --- a/rentals/templates/rentals/lockers.dj.html +++ b/rentals/templates/rentals/lockers.dj.html @@ -9,47 +9,50 @@ {% endblock %} {% block content %} {% for bank, units in locker_banks.items %}
@@ -58,10 +61,11 @@
{% for unit, lockers in units.items %}
+ style="grid-template-columns: repeat({{ unit.columns }}, minmax(7rem, 8.5rem))"> {% for locker_form in lockers %}