Browse Source

Export PDF des documents : affichage du commentaire #162

refactoring
Guillaume Bourgeois 4 years ago
parent
commit
b8c2403c3d
3 changed files with 22 additions and 6 deletions
  1. +9
    -1
      backend/views/document/download.php
  2. +8
    -4
      backend/web/css/document/download.css
  3. +5
    -1
      backend/web/sass/document/download.scss

+ 9
- 1
backend/views/document/download.php View File

<?php endif; ?> <?php endif; ?>
</div> </div>


<?php if(strlen($document->comment)): ?>
<div class="block-infos">
<strong>Commentaire</strong><br />
<?= Html::encode($document->comment) ?>
</div>
<?php endif; ?>

<?php <?php
$fieldProducerDocumentInfo = 'document_infos_'.str_replace('deliverynote','delivery_note',strtolower($document->getClass())) ; ?> $fieldProducerDocumentInfo = 'document_infos_'.str_replace('deliverynote','delivery_note',strtolower($document->getClass())) ; ?>
<?php if(strlen($producer->$fieldProducerDocumentInfo)): ?> <?php if(strlen($producer->$fieldProducerDocumentInfo)): ?>
<div id="block-infos">
<div class="block-infos">
<strong>Informations</strong><br />
<?= nl2br(Html::encode($producer->$fieldProducerDocumentInfo)) ?> <?= nl2br(Html::encode($producer->$fieldProducerDocumentInfo)) ?>
</div> </div>
<?php endif; ?> <?php endif; ?>

+ 8
- 4
backend/web/css/document/download.css View File

text-align: right; text-align: right;
} }
/* line 84, ../../sass/document/download.scss */ /* line 84, ../../sass/document/download.scss */
.document-download #block-infos {
.document-download .block-infos {
margin-top: 20px; margin-top: 20px;
padding: 10px; padding: 10px;
border: solid 1px #c0c0c0; border: solid 1px #c0c0c0;
} }
/* line 89, ../../sass/document/download.scss */
.document-download .block-infos strong {
font-size: 12px;
}


/* line 91, ../../sass/document/download.scss */
/* line 95, ../../sass/document/download.scss */
#footer { #footer {
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: center; text-align: center;
padding-top: 20px; padding-top: 20px;
border-top: solid 1px gray; border-top: solid 1px gray;
} }
/* line 97, ../../sass/document/download.scss */
/* line 101, ../../sass/document/download.scss */
#footer .infos-bottom { #footer .infos-bottom {
padding-bottom: 20px; padding-bottom: 20px;
margin-bottom: 40px; margin-bottom: 40px;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
} }
/* line 103, ../../sass/document/download.scss */
/* line 107, ../../sass/document/download.scss */
#footer .reference-document { #footer .reference-document {
font-weight: bold; font-weight: bold;
} }

+ 5
- 1
backend/web/sass/document/download.scss View File

} }
} }


#block-infos {
.block-infos {
margin-top: 20px ; margin-top: 20px ;
padding: 10px ; padding: 10px ;
border: solid 1px $border-color ; border: solid 1px $border-color ;

strong {
font-size: 12px ;
}
} }
} }



Loading…
Cancel
Save