|
|
@@ -61,8 +61,8 @@ use yii\widgets\ActiveForm; |
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
|
<?php |
|
|
|
if(strlen($model->photo)) { |
|
|
|
echo '<img src="../../frontend/web/uploads/'.$model->photo.'" width="200px" /><br />' ; |
|
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />' ; |
|
|
|
echo '<img src="'.Yii::$app->urlManagerProducer->getBaseUrl().'/uploads/'.$model->photo.'" width="200px" /><br />' ; |
|
|
|
echo '<input type="checkbox" name="delete_photo" id="delete_photo" /> <label for="delete_photo">Supprimer la photo</label><br /><br />' ; |
|
|
|
} |
|
|
|
?> |
|
|
|
|