fix(print): no a4 and css for indications
This commit is contained in:
parent
02d4515fe0
commit
7290d7272b
4 changed files with 10 additions and 25 deletions
|
@ -35,10 +35,10 @@ $structure = !empty($fiche['bf_structure']) ? $fiche['bf_structure'] : $fiche['b
|
|||
|
||||
$indications = '';
|
||||
if ($_GET['wiki'] == $fiche['id_fiche']) {
|
||||
$indications = '<div class="full-portrait-a4 indications">
|
||||
$indications = '<div class="indications">
|
||||
<img src="custom/templates/bazar/assets/Instructions_pliage_recto.webp" alt="instructions recto" />
|
||||
</div>
|
||||
<div class="full-portrait-a4 indications2">
|
||||
<div class="indications2">
|
||||
<img src="custom/templates/bazar/assets/Instructions_pliage_verso.webp" alt="instructions verso" />
|
||||
</div>';
|
||||
}
|
||||
|
@ -85,13 +85,6 @@ echo <<<TEMPLATE
|
|||
</div>
|
||||
{$indications}
|
||||
<button style="margin-top:1em;" class="btn btn-primary no-print new-window" onclick="window.print()"><i class="fa fa-print" aria-hidden="true"></i> Imprimer cette fiche</button>
|
||||
<script>
|
||||
// un hack tres aléatoire des css print de bootstrap
|
||||
//document.addEventListener('DOMContentLoaded', function(event) {
|
||||
// document.styleSheets[0].cssRules[40].cssRules[0].style= []
|
||||
//})
|
||||
</script>
|
||||
|
||||
TEMPLATE;
|
||||
if (!empty($_GET['returnTo'])) {
|
||||
echo <<<JS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue