fix(print): only the last indications
This commit is contained in:
parent
a6154d2607
commit
8a673d381d
1 changed files with 10 additions and 3 deletions
|
@ -73,7 +73,7 @@ echo <<<TEMPLATE
|
|||
<div class="full-portrait-a4 indications">
|
||||
<img src="custom/templates/bazar/assets/Instructions_pliage_recto.jpg" alt="instructions recto" />
|
||||
</div>
|
||||
<div class="full-portrait-a4 indications">
|
||||
<div class="full-portrait-a4 indications2">
|
||||
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.jpg" alt="instructions verso" />
|
||||
</div>
|
||||
<button style="margin-top:1em;" class="btn btn-primary no-print" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
|
||||
|
@ -88,10 +88,17 @@ echo <<<TEMPLATE
|
|||
height: 297mm;
|
||||
border: 1px dotted #aaa;
|
||||
}
|
||||
.indications {
|
||||
.indications, .indications2 {
|
||||
display: none;
|
||||
}
|
||||
.yw-main-content.alone .indications,
|
||||
.yw-main-content.alone .indications2,
|
||||
.include:last-child .indications,
|
||||
.include:last-child .indications2 {
|
||||
display: block;
|
||||
}
|
||||
.indications img {
|
||||
.indications img,
|
||||
.indications2 img {
|
||||
width: 208mm;
|
||||
height: 295mm;
|
||||
text-align:center;
|
||||
|
|
Loading…
Add table
Reference in a new issue