[printing] Possibilité d'afficher des blacklists seule
This commit is contained in:
parent
937aefb3ec
commit
db6cf98661
5 changed files with 27 additions and 10 deletions
|
@ -1,4 +1,13 @@
|
|||
{% if o.get('blacklist', []) %}
|
||||
{{"Blackliste : "|coul('gras')}}{{o.get('blacklist', [])[-limit:]|reverse|blacklist|join('\n ')}}
|
||||
{{"Blackliste : "|coul('gras')}}{{o.type|coul('rouge')}}
|
||||
{{"Commentaire : "|coul('gras')}}{{o.comm}}
|
||||
{{"Date de début : "|coul('gras')}}{{o.debut|timeformat('%d/%m/%Y %H:%M:%S')}}
|
||||
{{"Date de fin : "|coul('gras')}}{% if o.fin != '-' %}
|
||||
{{o.fin|timeformat('%d/%m/%Y %H:%M:%S')}}
|
||||
{% else %}
|
||||
{{"sans fin"|coul('rouge')}}
|
||||
{% endif %}
|
||||
{{"État : "|coul('gras')}}{% if o.actif %}
|
||||
{{"ACTIVE"|coul('rouge')}}
|
||||
{% else %}
|
||||
{{"INACTIVE"|coul('vert')}}
|
||||
{% endif %}
|
||||
{% include 'object' %}
|
||||
|
|
4
printing/templates/blacklists
Normal file
4
printing/templates/blacklists
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% if o.get('blacklist', []) %}
|
||||
{{"Blackliste : "|coul('gras')}}{{o.get('blacklist', [])[-limit:]|reverse|blacklists|join('\n ')}}
|
||||
{% endif %}
|
||||
{% include 'object' %}
|
|
@ -16,4 +16,4 @@
|
|||
{% elif o.proprio().cid %}
|
||||
{{"Propriétaire : "|coul('gras')}}{{o.proprio().nom|join(', ')}} (cid={{o.proprio().cid|join(', ')}})
|
||||
{% endif %}
|
||||
{% include 'blacklist' %}
|
||||
{% include 'blacklists' %}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{% if brassage %}
|
||||
{{"Brassage : "|coul('gras')}}{{brassage}}
|
||||
{% endif %}
|
||||
{% include 'blacklist' %}
|
||||
{% include 'blacklists' %}
|
||||
|
||||
{{machines}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue