]);
$query->andFilterWhere(['ilike', 'guid', $this->guid])
- // ->andFilterWhere(['ilike', 'guid_replacement', $this->guid_replacement])
- ->orWhere(['ilike', 'products_1c.name', $this->guid]); // Поиск по имени
+ ->andFilterWhere(['ilike', 'guid_replacement', $this->guid_replacement])
+ ->andFilterWhere(['ilike', 'products_1c.name', $this->productName])
+ ->orFilterWhere(['ilike', 'products_1c.name', $this->guid]);
return $dataProvider;
<div class="form-group py-4">
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
- <?= Html::a('Отмена', ['index'], ['class' => 'btn btn-danger']) ?>
+
</div>
<?php ActiveForm::end(); ?>
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="product1-creplacement-create p-4">
-
+ <?= Html::a('Отмена', ['index'], ['class' => 'btn btn-danger mb-4']) ?>
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
/** @var yii\web\View $this */
/** @var yii_app\records\Product1cReplacement $model */
/** @var yii_app\records\Product1cReplacement $replacements */
-$this->title = 'Редактирование замен: ' . $model->product->name;
+$this->title = 'Редактирование замен для: ';
$this->params['breadcrumbs'][] = ['label' => 'Product1c Replacements', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="product1-creplacement-update p-4">
- <?= Html::a('Отмена', ['index'], ['class' => 'btn btn-danger my-4']) ?>
- <h1><?= Html::encode($this->title) ?></h1>
+ <?= Html::a('Отмена', ['index'], ['class' => 'btn btn-danger mb-4']) ?>
+ <h1><?= Html::encode($this->title) ?> <br> <?= $model->product->name ?></h1>
<?= $this->render('multy-form', [
'model' => $model,