mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +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>
|
||||
{%- endset %}
|
||||
{{ macros.modal(id="update-price", body=modal_body, checked=True) }}
|
||||
{% break %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% include "includes/delivery_table.html" %}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -148,6 +148,7 @@ def configure():
|
|||
env = Environment(
|
||||
loader=PackageLoader("copanier", "templates"),
|
||||
autoescape=select_autoescape(["copanier"]),
|
||||
extensions=['jinja2.ext.loopcontrols']
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue