mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Fix modal display
This commit is contained in:
parent
9bccd8be25
commit
2243be1a03
3 changed files with 5 additions and 3 deletions
|
@ -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>
|
<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 %}
|
{%- endset %}
|
||||||
{{ macros.modal(id="update-price", body=modal_body, checked=True) }}
|
{{ macros.modal(id="update-price", body=modal_body, checked=True) }}
|
||||||
|
{% break %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% include "includes/delivery_table.html" %}
|
{% include "includes/delivery_table.html" %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% if label %}
|
{% if label %}
|
||||||
<label for="modal-{{ id }}" class="toggle-label">{{ label }}</label>
|
<label for="modal-{{ id }}" class="toggle-label">{{ label }}</label>
|
||||||
{% endif %}
|
{% 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>
|
<label for="modal-{{ id }}" class="toggle-background"></label>
|
||||||
<div class="toggle-container">
|
<div class="toggle-container">
|
||||||
{{ body }}
|
{{ body }}
|
||||||
|
|
|
@ -148,6 +148,7 @@ def configure():
|
||||||
env = Environment(
|
env = Environment(
|
||||||
loader=PackageLoader("copanier", "templates"),
|
loader=PackageLoader("copanier", "templates"),
|
||||||
autoescape=select_autoescape(["copanier"]),
|
autoescape=select_autoescape(["copanier"]),
|
||||||
|
extensions=['jinja2.ext.loopcontrols']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue