|
|
@@ -30,6 +30,16 @@ use yii\widgets\ActiveForm; |
|
|
|
} |
|
|
|
?> |
|
|
|
|
|
|
|
<?php if(Yii::$app->user->identity->id_etablissement == 1): ?> |
|
|
|
<?= $form->field($model, 'illustration')->fileInput() ?> |
|
|
|
<?php |
|
|
|
if(strlen($model->illustration)) { |
|
|
|
echo '<img src="../../frontend/web/uploads/'.$model->illustration.'" width="200px" /><br />' ; |
|
|
|
echo '<input type="checkbox" name="delete_illustration" id="delete_illustration" /> <label for="delete_illustration">Supprimer l\'illustration</label><br /><br />' ; |
|
|
|
} |
|
|
|
?> |
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
<h2>Jours de production</h2> |
|
|
|
<div id="jours-production"> |
|
|
|
<?= $form->field($model, 'lundi')->checkbox() ?> |