public function actionView()
{
- $storesTypeList = ArrayHelper::map(StoreType::find()->all(), 'id', 'name');
+ $storesTypeList = ArrayHelper::map(StoreType::find()->orderBy('sequence_number')->all(), 'id', 'name');
$storesList = ArrayHelper::map(CityStore::findAll(['visible' => CityStore::IS_VISIBLE]), 'id', 'name');
+
return $this->render('view', [
- 'storesList' => $storesList
+ 'storesList' => $storesList,
+ 'storesTypeList' => $storesTypeList,
]);
}
</div>
<div class="row">
<div class="col-md-4">
- <div class="row mb-2 pt-3">
- <div class="col-md-4 fw-bold ps-5">Название</div>
+ <div class="row pt-3 pb-2">
+ <div class="col-md-4 text-center font-weight-bold">Название</div>
<div class="col-md-2 text-center font-weight-bold">Кол-во</div>
<div class="col-md-1 text-center font-weight-bold">% списания</div>
<div class="col-md-2 text-center font-weight-bold">мрж-ть</div>
<div class="col-md-2 text-center font-weight-bold">ср.шт. в сборке</div>
</div>
- <div class="row p-3 bg-white border rounded shadow-sm">
- <div class="row">
- <div class="col-md-4">Гладиолусы краш</div>
+ <div class="row bg-white border rounded shadow-sm">
+ <div class="row ms-1 py-2">
+ <div class="col-md-4 text-center">Гладиолусы краш</div>
<div class="col-md-2 text-center">3.0</div>
<div class="col-md-1 text-center">10%</div>
<div class="col-md-2 text-center">30%</div>
<?= Html::label("Оффлайн магазины", null, ['class' => 'text-center font-weight-bold pt-4 h6']) ?>
</div>
<div class="row">
- <div class="container border p-3" style="max-height: 200px; background-color: white; overflow: auto;">
+ <div class="container border p-3" style="max-height: 185px; background-color: white; overflow: auto;">
<div class="row align-items-center mb-2">
- <div class="col-md-8">
- <label class="col-form-label">Поле 1:</label>
- </div>
- <div class="col-md-4">
- <input type="number" class="form-control" placeholder="Введите значение">
- </div>
+ <?php foreach ($storesTypeList as $type) {
+ echo '<div class="col-md-8">
+ <label class="col-form-label">'.$type.'</label>
+ </div>
+ <div class="col-md-4">
+ <input type="number" class="form-control h-25" placeholder="Введите значение">
+ </div>';
+ } ?>
</div>
</div>
</div>
<?= Html::label("Интернет магазины", null, ['class' => 'text-center font-weight-bold pt-3 h6']) ?>
</div>
<div class="row">
- <div class="container border p-3" style="max-height: 200px;background-color: white; overflow: auto;">
+ <div class="container border p-3" style="max-height: 185px;background-color: white; overflow: auto;">
<div class="row align-items-center mb-2">
<?php foreach ($storesList as $store) {
echo '<div class="col-md-8">
- <label class="col-form-label">'.$store.':</label>
+ <label class="col-form-label">'.$store.'</label>
</div>
<div class="col-md-4">
- <input type="number" class="form-control" placeholder="Введите значение">
+ <input type="number" class="form-control h-25" placeholder="Введите значение">
</div>';
} ?>
</div>
<?= Html::label("Маркетплейсы", null, ['class' => 'text-center font-weight-bold pt-3 h6']) ?>
</div>
<div class="row">
- <div class="container border p-3" style="max-height: 200px; background-color: white; overflow: auto;">
+ <div class="container border p-3" style="max-height: 185px; background-color: white; overflow: auto;">
<div class="row align-items-center mb-2">
<?php foreach ($storesList as $store) {
echo '<div class="col-md-8">
- <label class="col-form-label">'.$store.':</label>
+ <label class="col-form-label">'.$store.'</label>
</div>
<div class="col-md-4">
<input type="number" class="form-control" placeholder="Введите значение">