add reception changes

This commit is contained in:
2015-09-30 15:24:16 +02:00
parent 640d04cb76
commit 7128cd438d
11 changed files with 311 additions and 161 deletions

View File

@@ -7,9 +7,7 @@ use frontend\components\ReceptionCardNumberWidget;
/* @var $this yii\web\View */
/* @var $model common\models\Customer */
$this->title = Yii::t('common/customer', 'Update {modelClass}: ', [
'modelClass' => 'Customer',
]) . ' ' . $model->name;
$this->title = Yii::t('common/customer', 'Update customer:' ) . ' ' . $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/customer', 'Customers'), 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id_customer]];
$this->params['breadcrumbs'][] = Yii::t('common/customer', 'Update');
@@ -20,7 +18,6 @@ $card = $customer->card;
?>
<div class="customer-update">
<h1><?= Html::encode($this->title) ?></h1>
<div class='row'>
<div class='col-md-3'>
@@ -33,6 +30,7 @@ $card = $customer->card;
</div>
</div>
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form_update', [
'model' => $model,
]) ?>