title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Auction ID'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?>
name/*.' / '.Yii::t('app','Lot ID')*/.' #'.$model->lot_num) ?>
$model, 'attributes' => [ 'lotName', 'lotDesc', 'lotPrice', 'lotStep', 'statusName', [ 'attribute' => 'lot.count', 'value' => $model->lot->count, 'visible' => $model->lot->count, ], [ 'attribute' => 'lot.price_per_one', 'value' => $model->lot->count ? ($model->lot->start_price / $model->lot->count) . ' грн' : '', 'visible' => $model->lot->unitId ? true : false, ], [ 'attribute' => 'lot.unitName', 'value' => $model->lot->unitId ? $model->lot->unit->name : '', 'visible' => $model->lot->unitId ? true : false, ], ], ]) ?>
$model, 'attributes' => [ //'created_at:datetime', 'endBidding', 'date_start', ], ]) ?>
lot->thumbnails; $images = $model->lot->images; foreach($images as $index => $image){ $items[] = [ 'src' => '/' . $thumbnails[$index]->path, 'url' => '/'.$images[$index]->path, ]; } ?> $items]);?>
$model->lot, 'attributes' => [ [ 'attribute' => 'member_require', 'label' => Yii::t('app','MemberRequire ID'), ], 'term_procedure', /*[ 'attribute' => 'member_docs', 'label' => '', ],*/ ], ]) ?> $model->lot, 'attributes' => [ [ 'attribute' => 'address', 'label' => Yii::t('app','AddressTo ID'), ], 'payment_term', 'notes', //'delivery_time', //'delivery_term', ], ]) ?>
render('_alert.php') ?> lot->docs_id)) { $docs = Html::a(Yii::t('app','Download ID'), ['/files/download','id'=> $model->lot->docs_id], ['class' => 'glyphicon glyphicon-circle-arrow-down row1']); } if(empty($docs)) { $docs = null;} $dogovor = Html::a(Yii::t('app','Download ID'), ['/files/download','id'=> $model->lot->dogovor_id], ['class' => 'glyphicon glyphicon-circle-arrow-down row1']); ?> $model->lot, 'attributes' => [ [ 'attribute' => 'docs_id', 'value' => $docs, 'format' => 'raw', ], [ 'attribute' => 'dogovor_id', 'value' => $dogovor, 'format' => 'raw', ] ], ]) ?> getProtocol(); if(Yii::$app->user->can('admin')) { if(!$protocol&&$model->status==3) { echo Html::a(Yii::t('app','CreateDoc ID'), ['/publishing/doc','id'=> $model->id], ['class' => 'glyphicon glyphicon-circle-arrow-up']); $form = ActiveForm::begin([ 'options'=>['enctype'=>'multipart/form-data'] // important ]); $files = new \app\models\Files(); echo $form->field($files, 'file')->widget(FileInput::classname(),[ 'model' => $files, 'options' => ['multiple' => false], 'pluginOptions' => ['showPreview' => false,], ])->label(Yii::t('app','DownloadProtocol ID')); ActiveForm::end(); } } if($protocol) { //echo Html::a($protocol['name'],'/files/download?id='.$protocol['id'],['class'=>'btn btn-link']); echo Html::a(Yii::t('app','DownloadProtocol ID'), ['/files/download','id'=> $protocol['id']], ['class' => 'glyphicon glyphicon-circle-arrow-down']); } ?>