registerJsFile('@web/js/vendor/bower/jquery-file-upload/js/vendor/jquery.ui.widget.js'); $this->registerJsFile('@web/js/vendor/bower/jquery-file-upload/js/jquery.iframe-transport.js'); $this->registerJsFile('@web/js/vendor/bower/jquery-file-upload/js/jquery.fileupload.js'); ?>
field($model, 'name')->textInput(['maxlength' => 255]) ?> field($model, 'description')->widget(CKEditor::className(),[ 'editorOptions' => [ 'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать 'inline' => false, //по умолчанию false ], ]); ?>
Миниатюра field($model, 'file')->fileInput(['id'=>'fileupload', 'data-url'=>"index.php?r=schools/download-img"]); ?> field($model, 'image')->hiddenInput(['id' => 'picture_link']) ?>
image ? '': '' ?>
field($model, 'address')->textInput(['maxlength' => 255]) ?> field($model, 'email')->textInput(['maxlength' => 255]) ?>
Цены 'price','item_id'=> $model->id, 'model'=>'Schools']); ?>
Video 'video','item_id'=> $model->id, 'model'=>'Schools']); ?>
Галерея field($model, 'file_three')->fileInput(['id'=>'fileupload_3', 'data-url'=>"index.php?r=schools/download-gallery", 'multiple'=> "multiple"]); ?> field($model, 'gallery')->hiddenInput(['id' => 'picture_link_3']) ?>
getGallery() as $image){ echo $this->render('@app/views/site/_gallery_item', [ 'item' => ['image'=>$image]]); } ?>
field($model, 'program')->widget(CKEditor::className(),[ 'editorOptions' => [ 'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать 'inline' => false, //по умолчанию false ], ]); ?>
Тренеры render("trainers_view",['model'=>$hotels]);?>
Споты all() as $spot): ?> isActive($model->spots_id)?> name="Schools[spots_id][]">
isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>