Update djlint settings

This commit is contained in:
Edgar P. Burkhart 2025-01-01 13:59:31 +01:00
parent 898c92df23
commit f98990d0a8
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
33 changed files with 851 additions and 831 deletions

View file

@ -84,7 +84,9 @@
{% if messages %} {% if messages %}
<ul class="messages"> <ul class="messages">
{% for message in messages %} {% for message in messages %}
<li class="msg-level-{{ message.level }}">{{ message.level|messageicon }}{{ message }}</li> <li class="msg-level-{{ message.level }}">
{{ message.level|messageicon }}{{ message }}
</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View file

@ -30,7 +30,9 @@
{% block pre %}{% endblock %} {% block pre %}{% endblock %}
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{% if instance|adding %}<input hidden name="next" value="{{ request.path }}">{% endif %} {% if instance|adding %}
<input hidden name="next" value="{{ request.path }}">
{% endif %}
{{ form }} {{ form }}
</form> </form>
{% block tables %}{% endblock %} {% block tables %}{% endblock %}

View file

@ -25,7 +25,9 @@
{% endfor %} {% endfor %}
<div class="more account"> <div class="more account">
<dt> <dt>
<label class="wi" for="show-archived-accounts">{{ "archive"|remix }}{% translate "Show archived" %}</label> <label class="wi" for="show-archived-accounts">
{{ "archive"|remix }}{% translate "Show archived" %}
</label>
</dt> </dt>
<dd> <dd>
<input type="checkbox" class="show-archived" id="show-archived-accounts" /> <input type="checkbox" class="show-archived" id="show-archived-accounts" />

View file

@ -1,5 +1,7 @@
{% extends "main/confirm_delete.html" %} {% extends "main/confirm_delete.html" %}
{% load i18n %} {% load i18n %}
{% block additionalinfo %} {% block additionalinfo %}
<p>{% blocktranslate %}This will delete all transactions in this statement.{% endblocktranslate %}</p> <p>
{% blocktranslate %}This will delete all transactions in this statement.{% endblocktranslate %}
</p>
{% endblock %} {% endblock %}

View file

@ -26,7 +26,9 @@
<span> <span>
<span class="value">{{ statement.sum|pmvalue }}</span> <span class="value">{{ statement.sum|pmvalue }}</span>
{{ "arrow-right"|remix }} {{ "arrow-right"|remix }}
{% if statement.diff != statement.sum %}<span class="value">{{ statement.diff|pmvalue }}</span>{% endif %} {% if statement.diff != statement.sum %}
<span class="value">{{ statement.diff|pmvalue }}</span>
{% endif %}
</span> </span>
<span> <span>
<span class="date">{{ statement.date|date:"Y-m-d" }}</span> <span class="date">{{ statement.date|date:"Y-m-d" }}</span>

View file

@ -28,14 +28,18 @@
<a href="{{ category.get_absolute_url }}">{{ category.icon|remix }}{{ category }}</a> <a href="{{ category.get_absolute_url }}">{{ category.icon|remix }}{{ category }}</a>
</li> </li>
{% endif %} {% endif %}
{% if transaction.trader %}<li class="wi">{{ "p2p"|remix }}{{ transaction.trader }}</li>{% endif %} {% if transaction.trader %}
<li class="wi">{{ "p2p"|remix }}{{ transaction.trader }}</li>
{% endif %}
<li class="date wi">{{ "calendar"|remix }}{{ transaction.date }}</li> <li class="date wi">{{ "calendar"|remix }}{{ transaction.date }}</li>
<li class="value">{{ transaction.value|pmvalue }}</li> <li class="value">{{ transaction.value|pmvalue }}</li>
</ul> </ul>
<p> <p>
<a href="{% url "edit_transaction" transaction.id %}">{{ "edit"|remix }}{% translate "Edit transaction" %}</a> <a href="{% url "edit_transaction" transaction.id %}">{{ "edit"|remix }}{% translate "Edit transaction" %}</a>
</p> </p>
{% if transaction.description %}<p class="description">{{ transaction.description|linebreaksbr }}</p>{% endif %} {% if transaction.description %}
<p class="description">{{ transaction.description|linebreaksbr }}</p>
{% endif %}
</section> </section>
<section> <section>
<h3>{% translate "Invoices" %}</h3> <h3>{% translate "Invoices" %}</h3>

View file

@ -39,7 +39,9 @@
{% for trans in transactions %} {% for trans in transactions %}
<tr> <tr>
<td class="c"> <td class="c">
{% for invoice in trans.invoices %}<a class="i" href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>{% endfor %} {% for invoice in trans.invoices %}
<a class="i" href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>
{% endfor %}
</td> </td>
<td class="date"> <td class="date">
<time datetime="{{ trans.date|date:"Y-m-d" }}"> <time datetime="{{ trans.date|date:"Y-m-d" }}">

4
pyproject.toml Normal file
View file

@ -0,0 +1,4 @@
[tool.djlint]
indent=2
max_blank_lines=1
max_line_length=89