Fix modal display

This commit is contained in:
Alexis Métaireau 2021-07-12 21:08:10 +02:00
parent 9bccd8be25
commit 2243be1a03
3 changed files with 5 additions and 3 deletions

View file

@ -63,6 +63,7 @@ Hey, jettes un coup d'oeil à
<a class="button" href="{{ url_for('edit_producer', delivery_id=delivery.id, producer_id=producer.id) }}#products">Oui, mettre à jour les prix pour {{ producer.name }}</a>
{%- endset %}
{{ macros.modal(id="update-price", body=modal_body, checked=True) }}
{% break %}
{% endif %}
{% endfor %}
{% include "includes/delivery_table.html" %}

View file

@ -2,7 +2,7 @@
{% if label %}
<label for="modal-{{ id }}" class="toggle-label">{{ label }}</label>
{% endif %}
<input type="checkbox" id="modal-{{ id }}" class="toggle" {% if checked %}checked{% endif %}>
<input type="checkbox" id="modal-{{ id }}" class="toggle" {% if checked %}checked{% endif %} />
<label for="modal-{{ id }}" class="toggle-background"></label>
<div class="toggle-container">
{{ body }}

View file

@ -148,6 +148,7 @@ def configure():
env = Environment(
loader=PackageLoader("copanier", "templates"),
autoescape=select_autoescape(["copanier"]),
extensions=['jinja2.ext.loopcontrols']
)