Commandes automatiques devient "commandes récurrentes".prodstable
} | } | ||||
} | } | ||||
else { | else { | ||||
throw new NotFoundHttpException('La commande automatique est introuvable.', 404); | |||||
throw new NotFoundHttpException('La commande récurrente est introuvable.', 404); | |||||
} | } | ||||
// produits | // produits |
/* @var $this yii\web\View */ | /* @var $this yii\web\View */ | ||||
/* @var $dataProvider yii\data\ActiveDataProvider */ | /* @var $dataProvider yii\data\ActiveDataProvider */ | ||||
$this->title = 'Commandes automatiques'; | |||||
$this->title = 'Commandes récurrentes'; | |||||
$this->params['breadcrumbs'][] = $this->title; | $this->params['breadcrumbs'][] = $this->title; | ||||
?> | ?> | ||||
<div class="commande-auto-index"> | <div class="commande-auto-index"> |
/* @var $this yii\web\View */ | /* @var $this yii\web\View */ | ||||
/* @var $model app\models\Produit */ | /* @var $model app\models\Produit */ | ||||
$this->title = 'Modifier une commande automatique'; | |||||
$this->params['breadcrumbs'][] = ['label' => 'Commandes automatiques', 'url' => ['index']]; | |||||
$this->title = 'Modifier une commande récurrente'; | |||||
$this->params['breadcrumbs'][] = ['label' => 'Commandes récurrentes', 'url' => ['index']]; | |||||
$this->params['breadcrumbs'][] = 'Modifier'; | $this->params['breadcrumbs'][] = 'Modifier'; | ||||
?> | ?> | ||||
<div class="commandeauto-update"> | <div class="commandeauto-update"> |
'visible' => !Yii::$app->user->isGuest | 'visible' => !Yii::$app->user->isGuest | ||||
], | ], | ||||
[ | [ | ||||
'label' => '<span class="glyphicon glyphicon-repeat"></span> Commandes automatiques', | |||||
'label' => '<span class="glyphicon glyphicon-repeat"></span> Commandes récurrentes', | |||||
'url' => ['/commandeauto/index'], | 'url' => ['/commandeauto/index'], | ||||
'visible' => !Yii::$app->user->isGuest | 'visible' => !Yii::$app->user->isGuest | ||||
], | ], |