serialize_data, true)); $this->registerJs(<< 0){ value1 = val1; } value2 = 0; if(val2 > 0){ value2 = val2; } value3 = 0; if(val3 > 0){ value3 = val3; } concat_val = value1 + ":"+ value2 + ":" + value3; // if(concat_val.length > 0){ // alert(concat_val); // } $("#lead").html('кроки:'+step+', час:'+concat_val); }); $(document).ready(function () { var settings = {$unserializeJson}; if (settings) { $('input[name=\"time_cont\"][value=\"'+settings.time_cont+'\"]').prop('checked', true); $('input[name=\"type\"][value=\"'+settings.type+'\"]').prop('checked', true).change(); $("#input-save0").val(settings.step_change); $("#input-save1").val(settings.time_step_change.split(':')[0]); $("#input-save2").val(settings.time_step_change.split(':')[1]); $("#input-save3").val(settings.time_step_change.split(':')[2]); $("#button-save2").click(); } }); //==== function serializeData() { return { time_cont: $('input[name="time_cont"]:checked').val(), type: $('input[name="type"]:checked').val(), step_change: step, time_step_change: concat_val, date_stop: $("#date_stop").val(), }; } $('form').on('submit', function () { var data = serializeData(); $('#serialize_data').val(JSON.stringify(data)); }); JS ); //========================= $time_change = Html::button( Yii::t('app', 'Enter value'), [ 'style' => 'font-weight: bold; text-transform: uppercase; color: black', 'class' => 'btn btn-info btn-sm', 'data-toggle' => 'modal', 'data-target' => '#myModal2' ] ); ?>
serialize_data); $files = new \app\models\Files(); $form = ActiveForm::begin(['options'=>['enctype'=>'multipart/form-data']]); ?> field($model, 'serialize_data')->hiddenInput(['id' => 'serialize_data'])->label(false) ?> field($model, 'user_id')->hiddenInput(['value' => Yii::$app->user->identity->id])->label(false) ?>

'time_cont', 'items' => [ '00:05' => Yii::t('app', '5 хвилин'), '00:10' => Yii::t('app', '10 хвилин') ], 'value' => isset($serialize_data->time_cont) ? $serialize_data->time_cont : '00:05', ]); ?>

'type', 'items' => [ '1' => Yii::t('app', 'Підвищення'), '2' => Yii::t('app', 'Голландський'), '3' => Yii::t('app', 'Банкрутство'), ], 'value' => isset($serialize_data->type) ? $serialize_data->type : 1, ]); ?>

'{picker}{input}', 'value' => isset($serialize_data->date_stop) ? $serialize_data->date_stop : date('Y-m-d H:i', time() + 360), 'name' => 'date_stop', 'id' => 'date_stop', 'options' => ['placeholder' => Yii::t('app', 'DateStop ID')], 'pluginOptions' => [ 'autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii', ], ]); ?>
[ 'class' => 'table table-striped table-bordered detail-view circle_down' ], 'model' => $model, 'attributes' => [ [ 'label' => Yii::t('app', 'Circle ID'), 'value' => Html::tag('span', 'кроки 0, час 00:00:00', ['class' => 'lead','id'=>'lead']) . " " . $time_change, 'format' => 'raw', ], ], ]); ?> field($model, 'aukname')->textInput(['maxlength' => true]) ?> allRequisites; ?>
field($model, 'requisites_id')->dropdownList($requisites) ?>
Url::to('/requisites/create-ajax'), 'class' => 'btn btn-success btn-block', 'id' => 'modalButton']) ;?>
field($files, 'project_dogovor')->widget(FileInput::classname(), [ 'model' => $files, 'pluginOptions' => [ //'allowedFileExtensions'=>['doc','docx','pdf', 'png', ], 'initialCaption'=>'*.doc *.docx *.pdf *.png *.jpg *.tiff, *.zip *rar', 'showPreview' => false, 'showCaption' => true, 'showRemove' => true, 'showUpload' => false ], 'options' => ['multiple' => false,], ])->label(Yii::t('app','ProjectDogovor ID')); ?> field($model, 'bidding_date')->widget(DateTimePicker::className(),[ 'name' => 'bidding_date', 'type' => DateTimePicker::TYPE_COMPONENT_PREPEND, 'value' => date("dd-M-yyyy hh:ii"), //'options' => ['placeholder' => Yii::t('app','')], 'pluginOptions' => [ 'autoclose'=>true, 'format' => 'yyyy-mm-dd hh:ii' ] ]) ?> field($model, 'auction_date')->widget(DateTimePicker::className(),[ 'name' => 'auction_date', 'type' => DateTimePicker::TYPE_COMPONENT_PREPEND, 'value' => date("dd-M-yyyy hh:ii"), 'options' => ['placeholder' => Yii::t('app','CreateAukDate ID')], 'pluginOptions' => [ 'autoclose'=>true, 'format' => 'yyyy-mm-dd hh:ii' ] ]) ?>

field($model, 'aukname')->dropDownList(ArrayHelper::map(\app\models\Auclots::find() ->where(['user_id' => Yii::$app->user->identity->id])->orderBy('id DESC')->all(), 'name', 'name'))*/ ?> field($model, 'num')->textInput(['maxlength' => 255])->label(Yii::t('app','AucNumber ID')) ?> field($model, 'category_id')->dropDownList(ArrayHelper::map(Category::find()->all(), 'id', 'name')) ?> field($model, 'name')->textInput(['maxlength' => 255])->label(Yii::t('app','LotName ID')) ?> field($model, 'description')->textarea(['maxlength' => 15000, 'rows' => 6, 'cols' => 50]) ?>
'form-control', 'id' => 'count-input', 'min' => 1, 'max' => 99999999999999999999999, 'step' => 1, 'readonly' => 'readonly', ]); ?>
field($model, 'price_per_one', ['inputOptions' => ['readonly' => 'readonly', 'class' => 'form-control']])->label(Yii::t('app', 'Ціна за одиницю')); ?>
Yii::t('app', 'Оберіть')], ArrayHelper::map(Units::find()->all(), 'id', 'name')), [ 'class' => 'form-control', 'readonly' => 'readonly', ]); ?>
field($model, 'start_price')->textInput()->label(Yii::t('app', 'Загальна віртість')) ?>
'control-label']); echo FileInput::widget([ 'model' => new \app\models\Lots, 'attribute' => 'files[]', 'options' => [ 'multiple' => true, ], 'pluginOptions' => [ 'showPreview' => true, 'showRemove' => true, 'showUpload' => false, 'showCaption' => true, ], ]);?>
field($model, 'nds')->checkbox(['checked ' => true]) ?> field($model, 'step')->textInput(['maxlength' => true]) ?> 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')); ?> field($model, 'payment_term')->textInput(['maxlength' => true]) ?> field($model, 'member_require')->textarea(/*['maxlength' => 5000, 'rows' => 50, 'cols' => 100]*/) ?> field($model, 'term_procedure')->textInput(['maxlength' => true]) ?> field($model, 'address')->textInput(['maxlength' => true]) ?> field($model, 'notes')->textarea(['maxlength' => 15000, 'rows' => 6, 'cols' => 50]) ?> field($model, 'date')->hiddenInput(['value' => date('Y-m-d H:i:s')])->label(false); ?>
isNewRecord ? Yii::t('app', 'Create ID') : Yii::t('app', 'Update ID'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>