$form = ActiveForm::begin(); ?> <div class="clearfix"> <div style="float: left;"> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true, 'style' => 'width: 250px;']); ?> </div> <div style="float: left;margin-left: 39px;"> <?php echo $form->field($model, 'new')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onColor' => 'success', 'offColor' => 'danger', 'onText' => 'Включить', 'offText' => 'Выключить']]); ?> </div> <div style="float: left;margin-left: 39px;"> <?php echo $form->field($model, 'tour')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onColor' => 'success', 'offColor' => 'danger', 'onText' => 'Включить', 'offText' => 'Выключить']]); ?> </div> </div> <div class="clearfix"> <div style="float: left;"> <?php echo $form->field($model, 'age')->textInput(['style' => 'width: 50px;', 'maxlength' => 2]); ?> </div> <div style="float: left;margin-left: 150px;"> <?php echo $form->field($model, 'growth')->textInput(['style' => 'width: 50px;', 'maxlength' => 3]); ?> </div> <div style="float: left;margin-left: 150px;">
<?php echo $form->field($model, 'id', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> <?php echo $form->field($model, 'langs', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> </div> <div class="col-lg-4"> <?php echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 140px;', 'disabled' => 'disabled', 'onchange' => 'form.submit();']); ?> <?php echo $form->field($model, 'cid')->dropDownList(Categories::makeDropDown($model->langs), ['style' => 'margin-right: 10px; width: 230px;']); ?> <?php echo $form->field($model, 'published')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal'], 'inlineLabel' => false]); echo $form->field($model, 'startdate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เริ่มวันที่', 'style' => 'width: 160px;'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); echo $form->field($model, 'finishdate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'สิ้นสุดวันที่', 'style' => 'width: 160px;'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> </div> <?php if (Yii::$app->user->can('Administrator')) { ?> <div class="row"> <div class="col-md-12"> <?php echo $form->field($model, 'upload_files[]')->widget(FileInput::classname(), ['options' => ['multiple' => true], 'pluginOptions' => ['showPreview' => true, 'showUpload' => false, 'showCaption' => false, 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'elCaptionText' => '#customCaption']]); ?> <div class="file-input">
?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'trigger')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'year')->textInput(['maxlength' => 4]); ?> <?php echo $form->field($model, 'active')->widget(SwitchInput::classname(), []); ?> <?php echo $form->field($model, 'parse_from')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter Date where to start parsing ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'parse_to')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter Date where to end parsing ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'crawler_profile_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(CrawlerProfile::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'Select a Crawler Profile ...'], 'pluginOptions' => ['allowClear' => true]]); ?>
<?php echo $form->field($model, 'description')->textarea(); ?> </div> <div class="col-sm-4"> <?php echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 150px;']); echo $form->field($model, 'type')->widget(Select2::classname(), ['data' => \app\models\TblMenutype::makeDropDown($model->langs), 'hideSearch' => true, 'options' => ['placeholder' => 'เลือก...', 'class' => 'form-control ', 'multiple' => false, 'style' => 'width: 98%;']]); echo $form->field($model, 'parent_id')->widget(DepDrop::classname(), ['type' => DepDrop::TYPE_SELECT2, 'data' => [$model->parent_id => ''], 'options' => ['style' => 'width: 98%;'], 'select2Options' => ['hideSearch' => true], 'pluginOptions' => ['depends' => [Html::getInputId($model, 'type')], 'placeholder' => 'เลือก...', 'url' => Url::to(["getsubmenu"]), 'initialize' => true]]); ?> <?php echo $form->field($model, 'published')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal'], 'inlineLabel' => false]); ?> <?php echo $form->field($model, 'target')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onText' => 'หน้าต่างใหม่', 'offText' => 'หน้าต่างเดิม'], 'inlineLabel' => false]); ?> </div> </div> <?php echo $form->field($model, 'id', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> <?php echo $form->field($model, 'langs', ['options' => ['class' => 'sr-only']])->hiddenInput(); ?> <?php ActiveForm::end(); ?> </div>
<?php $form = ActiveForm::begin(); ?> <div class="row"> <div class="col-md-6"> <div class="row"> <div class="col-xs-8"> <?php echo $form->field($model, 'title')->textInput(['maxlength' => 65, 'placeholder' => Yii::t('app', 'Title contain a seo keyword if possible')]); ?> </div> <div class="col-xs-4"> <?php echo $form->field($model, 'status')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]); ?> </div> </div> <?php echo $form->field($model, 'description')->textArea(['rows' => 4, 'maxlength' => 155, 'placeholder' => Yii::t('app', 'This description also used as meta description')]); ?> <?php echo $form->field($model, 'tags')->widget(Select2::classname(), ['options' => ['placeholder' => Yii::t('app', 'Put additional tags ...')], 'data' => $model->getTags(), 'pluginOptions' => ['tags' => true, 'tokenSeparators' => [',', ' ']]]); ?> </div>
echo $page; ?> </a></div> <div class="breviews-view-name clearfix"> <img src="/images/panel/user.png" width="48"/> <span><?php echo $model->name; ?> </span> </div> <div class="breviews-view-baloon"><?php echo $model->text; ?> </div> <?php echo $form->field($model, 'moderate', ['labelOptions' => ['class' => 'breviews-label-switch']])->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal', 'onColor' => 'success', 'offColor' => 'danger', 'onText' => 'Включить', 'offText' => 'Выключить']]); ?> </div> <div class="breviews-view-right"> <p> <span>Дата:</span> <span><?php echo Yii::$app->formatter->asTime($model->date, 'php:d.m.Y'); ?> </span> </p> <p> <span>Время:</span> <span><?php echo Yii::$app->formatter->asTime($model->date, 'php:H:i:s'); ?>
echo $form->field($model, 'attachments')->widget(UplWidget::className(), ['uploadUrl' => Url::toRoute(['/blog/posts/uploadfile']), 'previewUrl' => $model->module->ImagePathPreview, 'tempPreviewUrl' => $model->module->ImageTempPathPreview, 'KeyFolder' => $model->id]); ?> </div> <div class="row-fluid"> <?php echo $form->field($model, 'gallery')->widget(UplWidget::className(), ['uploadUrl' => Url::toRoute(['/blog/posts/uploadfile']), 'previewUrl' => $model->module->ImagePathPreview, 'tempPreviewUrl' => $model->module->ImageTempPathPreview, 'KeyFolder' => $model->id, 'galleryType' => true]); ?> </div> </div> <div class="col-lg-3 col-md-3 col-sm-3"> <div class="panel panel-info"> <!-- Default panel contents --> <div class="panel-heading">Post Infos</div> <div class="panel-body"> <?php echo $form->field($model, 'publish')->widget(SwitchInput::classname(), []); ?> <?php echo $form->field($model, 'created_at')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATETIME, 'ajaxConversion' => true, 'saveFormat' => 'php:U', 'options' => ['layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayBtn' => true]]]); ?> <?php $userModel = new $model->module->userModel(); $items = \yii\helpers\ArrayHelper::map($userModel::find()->where('status = 10')->all(), 'id', $model->module->userNameField); echo $form->field($model, 'user_created')->dropDownList($items); ?> <?php echo $form->field($model, 'updated_at')->widget(DateControl::classname(), ['type' => DateControl::FORMAT_DATETIME, 'ajaxConversion' => true, 'saveFormat' => 'php:U', 'options' => ['layout' => '{picker}{input}', 'pluginOptions' => ['autoclose' => true, 'todayBtn' => true]]]); ?> <?php
<?php use yii\helpers\Html; use kartik\widgets\SwitchInput; ?> <div class="tab-content default-tab"> <div class="form-group"> <label class="control-label"><?php echo Yii::t('app', 'Example'); ?> </label> <a href="<?php echo $model->getUrl("{$slider->width}x{$slider->height}"); ?> " class="fancybox"> <img class="img-responsive thumbnail" src="<?php echo $model->getUrl('350x'); ?> "> </a> </div> <?php echo $form->field($model, 'active')->widget(SwitchInput::classname(), ['pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')]]); ?> </div>
<div class="col-sm-9"> <?php echo $form->field($model, 'TGL_LAHIR')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter Born date ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {errror}"]]); ?> <?php echo $form->field($model, 'ALAMAT')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'EMAIL')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'KTP')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'GENDER')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'male', 'offText' => 'female']]); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? '<i class="fa fa-plus"></i> add' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
<div class="row"> <div class="col-md-6"> <?php echo $form->field($model, 'category_id')->widget(Select2::classname(), ['language' => 'ru', 'data' => ArrayHelper::map(Category::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'Выберите состояние ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'owner')->widget(Select2::classname(), ['language' => 'ru', 'data' => ArrayHelper::map(User::find()->all(), 'id', 'username'), 'options' => ['placeholder' => 'Выберите состояние ...'], 'pluginOptions' => ['allowClear' => true]]); ?> <?php echo $form->field($model, 'can_reserve')->widget(SwitchInput::classname(), []); ?> <?php echo $form->field($model, 'status')->widget(SwitchInput::classname(), []); ?> <?php echo $form->field($model, 'longlat')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'img')->widget(Select2::classname(), ['language' => 'ru', 'data' => ArrayHelper::map($media, 'img', 'img'), 'options' => ['placeholder' => 'Выберите состояние ...'], 'pluginOptions' => ['allowClear' => true]]); ?> </div> <div class="col-md-6"> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'slug')->textInput(['maxlength' => true]);
} ?> <?php if (!$model->isNewRecord && $model->image !== null) { ?> <?php echo Html::img($model->getImageWithPath(), ['class' => 'admin-model-image']); ?> <?php } ?> <?php echo $form->field($model, 'at_top')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Да', 'offText' => 'Нет', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <div class="row"> <div class="col-md-4"> <?php echo $form->field($model, 'create_at')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Введите дату создания новости'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']]); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
if (state) { is_req.hide(); $("#req").show(); } else { is_req.show(); $("#req").hide(); var count = $("#req input").val(); if (count == "" || count =="0") { $(is_req).find(".bootstrap-switch input").bootstrapSwitch("state", false); } else { $(is_req).find(".bootstrap-switch input").bootstrapSwitch("state", true); } } }']]); ?> </div> <div class="col-sm-6"> <?php echo $form->field($model, 'require', ['options' => ['class' => $class_require, 'id' => 'req']])->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'is_require', ['options' => ['class' => $class_is_reqire, 'id' => 'is_req']])->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Да', 'offText' => 'Нет']]); ?> </div> </div> <?php ActiveForm::end(); ?> </div>
<?php // None ?> <?php echo Html::hiddenInput('MenuItem[entity_id]', 0, ['class' => 'attribute none-attribute', 'style' => $model->entity != $model::ENTITY_NONE ? 'display: none;' : '', 'disabled' => $model->entity != $model::ENTITY_NONE ? 'true' : '']); ?> <?php // Page anchors ?> <?php echo $form->field($model, 'anchor', ['options' => ['class' => 'menu-item-anchor-container', 'style' => $model->entity != Page::className() || !isset($model->entityModel) || $model->entity == Page::className() && !count($model->entityModel->htmlAnchors) ? 'display: none;' : '']])->dropDownList(array_merge(['' => Yii::t('app', '-- Choose an {item} --', ['item' => Yii::t('infoweb/menu', 'anchor')])], $model->entity == Page::className() && isset($model->entityModel) ? $model->entityModel->htmlAnchors : []), ['readonly' => $model->type == $model::TYPE_SYSTEM && !Yii::$app->user->can('Superadmin') ? true : false]); ?> <?php if (Yii::$app->getModule('menu')->enablePrivateMenuItems) { ?> <?php echo $form->field($model, 'public')->widget(SwitchInput::classname(), ['inlineLabel' => false, 'pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')], 'readonly' => $model->type == $model::TYPE_SYSTEM && !Yii::$app->user->can('Superadmin') ? true : false]); ?> <?php } ?> <?php echo $form->field($model, 'active')->widget(SwitchInput::classname(), ['pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')], 'readonly' => $model->type == $model::TYPE_SYSTEM && !Yii::$app->user->can('Superadmin') ? true : false]); ?> </div>
echo $form->field($model, 'option_' . $i . '_name')->textInput(['maxlength' => true]); ?> </div> <div class="col-sm-3"> <?php echo $form->field($model, 'option_' . $i . '_type')->dropDownList([''] + Template::getTypesField(), ['class' => 'ex-field-type form-control']); ?> </div> <div class="col-sm-3"> <?php echo $form->field($model, 'option_' . $i . '_param')->textInput(['maxlength' => true]); ?> </div> <div class="col-sm-3"> <?php echo $form->field($model, 'option_' . $i . '_require')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Да', 'offText' => 'Нет']]); ?> </div> </div> <?php } ?> </div> </div> <?php ActiveForm::end(); ?> <?php if (!$model->isNewRecord) {
<td>Suspensión</td> <td><?php echo $form->field($model, 'dia_suspension')->textInput(['maxlength' => true])->label(false); ?> </td> <td><?php echo Html::tag('span', 'días después del vencimiento de la factura'); ?> </td> <td><?php echo $form->field($model, 'notificar_suspension_plataforma')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'small', 'onColor' => 'success', 'offColor' => 'danger']])->label(false); ?> </td> <td> <?php echo $form->field($model, 'notificar_suspension_correo')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'small', 'onColor' => 'success', 'offColor' => 'danger']])->label(false); ?> </td> </tr> </table> </div> </div> </div> <div class="form-group"> <?php
?> </div> <div class="col-md-6"> <div class="well"> <div class="row"> <div class="col-xs-6"> <?php echo $form->field($model, 'status')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]); ?> </div> <div class="col-xs-6"> <?php echo $form->field($model, 'image_only')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]); ?> </div> </div> <div class="row"> <div class="col-sm-6 "> <?php echo $form->field($model, 'time')->widget(DateTimePicker::classname(), ['options' => ['placeholder' => 'Select media time ...', 'readonly' => true], 'removeButton' => false, 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd HH:i:s', 'todayHighlight' => true]]); ?> </div> <div class="col-sm-6 "> <?php echo $form->field($model, 'position')->widget(TouchSpin::classname(), ['pluginOptions' => ['min' => 0, 'max' => 20, 'step' => 1, 'handle' => 'triangle', 'tooltip' => 'always']]); ?> </div>
<div class="col-sm-3"> <?php echo $form->field($model, 'increaseon')->widget(Select2::classname(), ['data' => $model->itemAlias('increaseon'), 'options' => ['placeholder' => Yii::t('app', 'Select a increase on type...')], 'pluginOptions' => ['allowClear' => false]]); ?> </div> <div class="col-sm-2"> <?php echo $form->field($model, 'isbalance')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]); ?> </div> <div class="col-sm-2"> <?php echo $form->field($model, 'exchangable')->widget(SwitchInput::classname(), ['type' => SwitchInput::CHECKBOX]); ?> </div> </div> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
?> <div class="user-form"> <div class="row"> <div class="col-md-6"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'username')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'email')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'status')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Aktif', 'offText' => 'Banned']]); ?> <?php echo $form->field($authAssignment, 'item_name')->widget(Select2::classname(), ['data' => $authItems, 'options' => ['placeholder' => 'Pilih role ...'], 'pluginOptions' => ['allowClear' => true]])->label('Hak Akses'); ?> </div> <div class="col-md-6"> <?php echo $form->field($model, 'new_password'); ?> <?php echo $form->field($model, 'repeat_password'); ?>
<?php $form = ActiveForm::begin(); ?> <?php $userClass = \Yii::$app->getUser()->identityClass; $users = ArrayHelper::map($userClass::find()->where(['status' => 10])->asArray()->all(), 'id', 'username'); echo '<div class="form-group">'; echo '<label class="control-label">Receiver</label>'; echo Select2::widget(['name' => 'receivers', 'data' => $users, 'options' => ['placeholder' => 'Select a receiver ...', 'multiple' => true]]); echo '</div>'; ?> <?php echo $form->field($model, 'subject')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'content')->textarea(['rows' => 6]); ?> <?php echo $form->field($model, 'status')->widget(\kartik\widgets\SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Send', 'offText' => 'Draft']]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?> </div>
use kartik\daterange\DateRangePicker; use softark\duallistbox\DualListbox; use kartik\widgets\SwitchInput; /* @var $this yii\web\View */ /* @var $model lukisongroup\models\widget\Pilotproject */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="pilotproject-form"> <?php $form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/widget/pilotproject/valid')]); ?> <?php echo $form->field($model, 'TYPE')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Private', 'offText' => 'Public']]); ?> <?php echo $form->field($model, 'parentpilot')->checkbox(); ?> <div id='prnt'> <?php echo $form->field($model, 'PARENT')->widget(Select2::classname(), ['data' => $parent, 'options' => ['id' => 'pilotproject-parent', 'placeholder' => 'Pilih...'], 'pluginOptions' => ['allowClear' => true]]); ?> </div> <?php echo $form->field($model, 'PILOT_NM')->textInput();
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use kartik\widgets\SwitchInput; use kartik\widgets\Select2; ?> <div class="tab-content default-tab"> <?php echo $form->field($model, 'type')->dropDownList(['system' => Yii::t('app', 'System'), 'user-defined' => Yii::t('app', 'User defined')], ['options' => ['system' => ['disabled' => Yii::$app->user->can('Superadmin') ? false : true], 'user-defined' => ['disabled' => $model->type == 'system' && !Yii::$app->user->can('Superadmin') ? true : false]]]); echo $form->field($model, 'template_id')->dropDownList(ArrayHelper::map($templates, 'id', 'name'), ['options' => ['system' => ['disabled' => Yii::$app->user->can('Superadmin') ? false : true]]]); echo $form->field($model, 'homepage')->widget(SwitchInput::classname(), ['inlineLabel' => false, 'pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')]]); echo $form->field($model, 'active')->widget(SwitchInput::classname(), ['inlineLabel' => false, 'pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')]]); if (Yii::$app->getModule('pages')->enablePrivatePages) { echo $form->field($model, 'public')->widget(SwitchInput::classname(), ['inlineLabel' => false, 'pluginOptions' => ['onColor' => 'success', 'offColor' => 'danger', 'onText' => Yii::t('app', 'Yes'), 'offText' => Yii::t('app', 'No')]]); } ?> </div>
?> <div class="row"> <div class="col-md-9"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Simulasi Pembelian & Penjualan Saham</h3> </div> <div class="panel-body"> <?php $form = ActiveForm::begin(['options' => ['data-pjax' => true]]); ?> <div> <?php echo $form->field($simulation, 'tipe')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Pembelian', 'offText' => 'Penjualan']])->label('Pilih tipe simulasi'); ?> </div> <div class="row"> <div class="col-xs-6"> <div class="row"> <div class="col-xs-6"> <?php echo $form->field($simulation, 'jml_lot')->widget(MaskedInput::classname(), ['clientOptions' => ['alias' => 'numeric', 'groupSeparator' => ',', 'radixPoint' => '.', 'autoGroup' => true, 'removeMaskOnSubmit' => true]]); ?> </div> <div class="col-xs-6"> </div> </div> <div class="row"> <div class="col-xs-6">
if (count($model->getImages()) > 0) { ?> <div class="form-group"> <div class="optional-files"> <?php foreach ($model->getImages() as $file) { ?> <div class="file-name"> <label class="col-md-3 control-label">Удалить файл?</label> <div class="col-md-9"> <?php if (!$model->isNewRecord && $model->main_image_id !== null) { ?> <?php echo $form->field($model, 'delete_images[' . $file->id . ']')->widget(SwitchInput::classname(), ['pluginOptions' => ['onText' => 'Да', 'offText' => 'Нет', 'onColor' => 'success', 'offColor' => 'danger']]); ?> <?php } ?> <span style="position: relative; top: 5px;"><strong>Название файла: <?php echo $file->name; ?> </strong></span> </div> </div> <div class="clearfix"></div> <?php } ?>