ソースを参照

Export PDF des documents : affichage du commentaire #162

dev
コミット
b8c2403c3d
3個のファイルの変更22行の追加6行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ;
}
}
}


読み込み中…
キャンセル
保存