Explorar el Código

Page de commande : ajout des retours à la ligne dans les infos du producteur

prodstable
keun hace 7 años
padre
commit
9adffc7a25
Se han modificado 2 ficheros con 2 adiciones y 4 borrados
  1. +1
    -3
      frontend/controllers/SiteController.php
  2. +1
    -1
      frontend/views/commande/_form.php

+ 1
- 3
frontend/controllers/SiteController.php Ver fichero

@@ -307,9 +307,7 @@ class SiteController extends FrontendController
else {
$this->redirect(['commande/create','id_etablissement' => $id_etablissement]) ;
}

return $this->render('etablissement',[
'model_login' => $model_login,
'model_signup' => $model_signup,

+ 1
- 1
frontend/views/commande/_form.php Ver fichero

@@ -74,7 +74,7 @@ use common\models\Etablissement;
<?php if(strlen($etablissement->infos_commande)): ?>
<h2>Infos du producteur</h2>
<div id="infos-commande">
<?= Html::encode($etablissement->infos_commande) ?>
<?= nl2br(Html::encode($etablissement->infos_commande)) ?>
</div>
<?php endif; ?>
</div>

Cargando…
Cancelar
Guardar