mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Add a little help text for people in charge of the delivery so they can discover the toolbox
This commit is contained in:
parent
3d79e25559
commit
f70d26a631
2 changed files with 11 additions and 6 deletions
|
@ -678,6 +678,11 @@ table.paiements tr:hover td {
|
||||||
padding: 3rem !important;
|
padding: 3rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
ul.actions {
|
ul.actions {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user and request.user.is_staff %}
|
{% if request.user and request.user.is_staff %}
|
||||||
{% if delivery.is_archived %}
|
|
||||||
<li class="pure-menu-item">
|
|
||||||
<a class="pure-menu-link" href="{{ url_for('unarchive_delivery', id=delivery.id) }}"><i class="icon-hazardous"></i> Désarchiver</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
<li class="pure-menu-item">
|
<li class="pure-menu-item">
|
||||||
<a class="pure-menu-link" href="{{ url_for('edit_delivery', id=delivery.id) }}"><i class="icon-adjustments"></i> Modifier la distrib</a>
|
<a class="pure-menu-link" href="{{ url_for('edit_delivery', id=delivery.id) }}"><i class="icon-adjustments"></i> Modifier la distrib</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -47,6 +42,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<article class="delivery">
|
<article class="delivery">
|
||||||
|
{% if request['user'].email == delivery.contact %}
|
||||||
|
<div class="placeholder center">
|
||||||
|
Tu es la personne contact pour l'organisation de cette distribution, merci :-) Pour t'aider, tu peux accéder à
|
||||||
|
<a href="{{ url_for('show_delivery_toolbox', id=delivery.id) }}"><i class="icon-tools"></i> la boîte à outils</a> !
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if delivery.has_products %}
|
{% if delivery.has_products %}
|
||||||
{% for (id, producer) in delivery.get_producers_for_referent(request.user.email).items() %}
|
{% for (id, producer) in delivery.get_producers_for_referent(request.user.email).items() %}
|
||||||
{% if producer.needs_price_update(delivery) %}
|
{% if producer.needs_price_update(delivery) %}
|
||||||
|
@ -62,7 +63,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% include "includes/delivery_table.html" %}
|
{% include "includes/delivery_table.html" %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="placeholder">
|
<div class="placeholder">
|
||||||
<h2>😔 Pour le moment, cette distribution est bien vide…</h2>
|
<h2>😔 Pour le moment, cette distribution est bien vide…</h2>
|
||||||
|
|
Loading…
Reference in a new issue