Explorar el Código

[backend] Affichage des dimensions idéales pour la photo de couverture

refactoring
Guillaume Bourgeois hace 5 años
padre
commit
607bc8dc03
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      backend/views/producer/update.php

+ 1
- 1
backend/views/producer/update.php Ver fichero

echo '<input type="checkbox" name="delete_logo" id="delete_logo" /> <label for="delete_logo">Supprimer le logo</label><br /><br />'; echo '<input type="checkbox" name="delete_logo" id="delete_logo" /> <label for="delete_logo">Supprimer le logo</label><br /><br />';
} }
?> ?>
<?= $form->field($model, 'photo')->fileInput() ?>
<?= $form->field($model, 'photo')->fileInput()->hint('Format idéal : 900 x 150 px') ?>
<?php <?php
if (strlen($model->photo)) { if (strlen($model->photo)) {
echo '<img src="'.Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/' . $model->photo . '" width="400px" /><br />'; echo '<img src="'.Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/' . $model->photo . '" width="400px" /><br />';

Cargando…
Cancelar
Guardar