['enctype'=>'multipart/form-data']]); ?>
= $form->field($model, 'user_id')->hiddenInput(['value' => Yii::$app->user->identity->id]) ?>
= $form->field($model, 'aukname')->dropDownList(ArrayHelper::map(\app\models\Auclots::find()
->where(['user_id' => Yii::$app->user->identity->id])->orderBy('id DESC')->all(), 'name', 'name')) ?>
= $form->field($model, 'num')->textInput(['maxlength' => 255])->label(Yii::t('app','AucNumber ID')) ?>
= $form->field($model, 'category_id')->dropDownList(ArrayHelper::map(Category::find()->all(), 'id', 'name')) ?>
= $form->field($model, 'name')->textInput(['maxlength' => 255])->label(Yii::t('app','LotName ID')) ?>
= $form->field($model, 'description')->textarea(['maxlength' => 15000, 'rows' => 6, 'cols' => 50]) ?>
= Html::activeInput('number', $model, 'count', [
'class' => 'form-control',
'id' => 'count-input',
'min' => 1,
'max' => 99999999999999999999999,
'step' => 1,
'readonly' => 'readonly',
]); ?>
= $form->field($model, 'price_per_one', ['inputOptions' => ['readonly' => 'readonly', 'class' => 'form-control']])->label(Yii::t('app', 'Ціна за одиницю')); ?>
= Html::activeDropDownList($model, 'unitId', ArrayHelper::merge(['' => Yii::t('app', 'Оберіть')], ArrayHelper::map(Units::find()->all(), 'id', 'name')), [
'class' => 'form-control',
'readonly' => 'readonly',
]); ?>
= $form->field($model, 'start_price')->textInput()->label(Yii::t('app', 'Загальна віртість')) ?>
= Html::tag('label', Yii::t('app', 'Download'), ['class' => 'control-label']);
echo FileInput::widget([
'model' => new \app\models\Lots,
'attribute' => 'files[]',
'options' => [
'multiple' => true,
],
'pluginOptions' => [
'showPreview' => true,
'showRemove' => true,
'showUpload' => false,
'showCaption' => true,
],
]);?>
= $form->field($model, 'nds')->checkbox(['checked ' => true]) ?>
= $form->field($model, 'step')->textInput(['maxlength' => true]) ?>
= $form->field($files, 'file[]')->widget(FileInput::classname(), [
'model' => $files,
'pluginOptions' => [
//'allowedFileExtensions'=>['doc','docx','pdf'],
'initialCaption'=>'*.doc, *.docx, *.pdf *.png *.jpg *.tiff *.zip *.rar',
'showPreview' => true,
'showCaption' => true,
'showRemove' => true,
'showUpload' => false,
'maxFileCount' => 10,
],
'options' => [
'multiple' => true,
],
])->label(Yii::t('app','DopDocumentation ID')); ?>
= $form->field($model, 'payment_term')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'term_procedure')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'notes')->textarea(['maxlength' => 15000, 'rows' => 6, 'cols' => 50]) ?>
= $form->field($model, 'date')->hiddenInput(['value' => date('Y-m-d H:i:s')])->label(false); ?>
= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create ID') : Yii::t('app', 'Update ID'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>