|
|
|
|
|
|
|
|
<?= $form->field($model, 'logo')->fileInput() ?> |
|
|
<?= $form->field($model, 'logo')->fileInput() ?> |
|
|
<?php |
|
|
<?php |
|
|
if (strlen($model->logo)) { |
|
|
if (strlen($model->logo)) { |
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getBaseUrl().'/uploads/' . $model->logo . '" width="400px" /><br />'; |
|
|
|
|
|
|
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/' . $model->logo . '" width="200px" /><br />'; |
|
|
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() ?> |
|
|
<?php |
|
|
<?php |
|
|
if (strlen($model->photo)) { |
|
|
if (strlen($model->photo)) { |
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getBaseUrl().'/uploads/' . $model->photo . '" width="400px" /><br />'; |
|
|
|
|
|
|
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getHostInfo().'/'.Yii::$app->urlManagerProducer->baseUrl.'/uploads/' . $model->photo . '" width="400px" /><br />'; |
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />'; |
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />'; |
|
|
} |
|
|
} |
|
|
?> |
|
|
?> |