Quellcode durchsuchen

Export PDF des documents : affichage du commentaire #162

refactoring
Guillaume Bourgeois vor 4 Jahren
Ursprung
Commit
b8c2403c3d
3 geänderte Dateien mit 22 neuen und 6 gelöschten Zeilen
  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 Datei anzeigen

@@ -79,10 +79,18 @@
<?php endif; ?>
</div>

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

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

+ 8
- 4
backend/web/css/document/download.css Datei anzeigen

@@ -75,27 +75,31 @@
text-align: right;
}
/* line 84, ../../sass/document/download.scss */
.document-download #block-infos {
.document-download .block-infos {
margin-top: 20px;
padding: 10px;
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 {
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: center;
padding-top: 20px;
border-top: solid 1px gray;
}
/* line 97, ../../sass/document/download.scss */
/* line 101, ../../sass/document/download.scss */
#footer .infos-bottom {
padding-bottom: 20px;
margin-bottom: 40px;
font-size: 12px;
line-height: 18px;
}
/* line 103, ../../sass/document/download.scss */
/* line 107, ../../sass/document/download.scss */
#footer .reference-document {
font-weight: bold;
}

+ 5
- 1
backend/web/sass/document/download.scss Datei anzeigen

@@ -81,10 +81,14 @@ $border-color: #c0c0c0 ;
}
}

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

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


Laden…
Abbrechen
Speichern