|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="user-form"> |
|
|
<div class="user-form"> |
|
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin(); ?> |
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'logo')->fileInput() ?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if(strlen($model->logo)) { |
|
|
|
|
|
echo '<img src="../../frontend/web/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 />' ; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if(strlen($model->photo)) { |
|
|
|
|
|
echo '<img src="../../frontend/web/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 />' ; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'description')->textarea() ?> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<?= Html::submitButton('Mettre à jour', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
|
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin(); ?> |
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
|
|
<?= $form->field($model, 'code_postal') ?> |
|
|
|
|
|
<?= $form->field($model, 'ville') ?> |
|
|
|
|
|
<?= $form->field($model, 'description')->textarea(['rows' => 10]) ?> |
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<?= Html::submitButton('Mettre à jour', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
|
|
<?= $form->field($model, 'logo')->fileInput() ?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if (strlen($model->logo)) { |
|
|
|
|
|
echo '<img src="../../frontend/web/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 />'; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
<?= $form->field($model, 'photo')->fileInput() ?> |
|
|
|
|
|
<?php |
|
|
|
|
|
if (strlen($model->photo)) { |
|
|
|
|
|
echo '<img src="../../frontend/web/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 />'; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|