Bläddra i källkod

Merge branch 'dev'

prodstable
Guillaume Bourgeois 4 år sedan
förälder
incheckning
6b684e452d
4 ändrade filer med 31 tillägg och 21 borttagningar
  1. +3
    -1
      backend/views/document/download.php
  2. +19
    -19
      backend/web/css/document/download.css
  3. +3
    -0
      backend/web/sass/document/download.scss
  4. +6
    -1
      common/models/Producer.php

+ 3
- 1
backend/views/document/download.php Visa fil

@@ -7,7 +7,9 @@
<div id="block-addresses">
<div class="producer">
<?php if(strlen($producer->logo)) : ?>
<div class="logo"><?= $producer->getHtmlLogo() ; ?></div>
<div class="logo">
<img style="max-height: 80px;" src="<?= $producer->getUrlLogo() ?>" />
</div>
<?php endif; ?>
<div class="address"><?= $producer->getFullAddress(true) ; ?></div>
</div>

+ 19
- 19
backend/web/css/document/download.css Visa fil

@@ -2,51 +2,51 @@
.document-download {
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* line 9, ../../sass/document/download.scss */
/* line 10, ../../sass/document/download.scss */
.document-download #block-addresses .producer {
text-align: left;
margin-bottom: 20px;
}
/* line 13, ../../sass/document/download.scss */
/* line 15, ../../sass/document/download.scss */
.document-download #block-addresses .producer .logo {
margin-bottom: 20px;
}
/* line 20, ../../sass/document/download.scss */
/* line 23, ../../sass/document/download.scss */
.document-download #block-addresses .user {
text-align: right;
}
/* line 25, ../../sass/document/download.scss */
/* line 28, ../../sass/document/download.scss */
.document-download #block-infos-document {
padding-top: 30px;
}
/* line 28, ../../sass/document/download.scss */
/* line 31, ../../sass/document/download.scss */
.document-download #block-infos-document .date {
padding-bottom: 10px;
}
/* line 31, ../../sass/document/download.scss */
/* line 34, ../../sass/document/download.scss */
.document-download #block-infos-document .reference {
padding-bottom: 10px;
font-size: 15px;
font-weight: bold;
}
/* line 36, ../../sass/document/download.scss */
/* line 39, ../../sass/document/download.scss */
.document-download #block-infos-document .reference .block-is-draft {
border: solid 2px black;
padding: 10px;
text-transform: uppercase;
}
/* line 47, ../../sass/document/download.scss */
/* line 50, ../../sass/document/download.scss */
.document-download #block-no-product {
font-weight: bold;
border: solid 2px black;
text-transform: uppercase;
padding: 10px;
}
/* line 54, ../../sass/document/download.scss */
/* line 57, ../../sass/document/download.scss */
.document-download #block-products {
padding-top: 20px;
}
/* line 57, ../../sass/document/download.scss */
/* line 60, ../../sass/document/download.scss */
.document-download #block-products table {
width: 100%;
padding: 0px;
@@ -55,51 +55,51 @@
border-right: solid 1px #c0c0c0;
border-collapse: collapse;
}
/* line 65, ../../sass/document/download.scss */
/* line 68, ../../sass/document/download.scss */
.document-download #block-products table td, .document-download #block-products table th {
padding: 5px;
border-top: solid 1px #c0c0c0;
border-left: solid 1px #c0c0c0;
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* line 71, ../../sass/document/download.scss */
/* line 74, ../../sass/document/download.scss */
.document-download #block-products table td.align-left, .document-download #block-products table th.align-left {
text-align: left;
}
/* line 74, ../../sass/document/download.scss */
/* line 77, ../../sass/document/download.scss */
.document-download #block-products table td.align-center, .document-download #block-products table th.align-center {
text-align: center;
}
/* line 77, ../../sass/document/download.scss */
/* line 80, ../../sass/document/download.scss */
.document-download #block-products table td.align-right, .document-download #block-products table th.align-right {
text-align: right;
}
/* line 84, ../../sass/document/download.scss */
/* line 87, ../../sass/document/download.scss */
.document-download .block-infos {
margin-top: 20px;
padding: 10px;
border: solid 1px #c0c0c0;
}
/* line 89, ../../sass/document/download.scss */
/* line 92, ../../sass/document/download.scss */
.document-download .block-infos strong {
font-size: 12px;
}

/* line 95, ../../sass/document/download.scss */
/* line 98, ../../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 101, ../../sass/document/download.scss */
/* line 104, ../../sass/document/download.scss */
#footer .infos-bottom {
padding-bottom: 20px;
margin-bottom: 40px;
font-size: 12px;
line-height: 18px;
}
/* line 107, ../../sass/document/download.scss */
/* line 110, ../../sass/document/download.scss */
#footer .reference-document {
font-weight: bold;
}

+ 3
- 0
backend/web/sass/document/download.scss Visa fil

@@ -6,12 +6,15 @@ $border-color: #c0c0c0 ;
font-family: $font-family ;

#block-addresses {

.producer {

text-align: left ;
margin-bottom: 20px ;

.logo {
margin-bottom: 20px ;

}
.address {


+ 6
- 1
common/models/Producer.php Visa fil

@@ -537,12 +537,17 @@ class Producer extends ActiveRecordCommon
$html = '' ;

if(strlen($this->logo)) {
$html = '<img src="'.Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/'.$this->logo.'" class="producer-logo" />' ;
$html = '<img src="'.$this->getUrlLogo().'" class="producer-logo" />' ;
}

return $html ;
}

public function getUrlLogo()
{
return Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/'.$this->logo ;
}

public function getEmailOpendistrib()
{
return $this->slug.'@opendistrib.net' ;

Laddar…
Avbryt
Spara