field($model, 'main_page')->checkbox() ?> field($model, 'speed')->textInput() ?> field($model, 'duration')->textInput() ?> field($model, 'title')->textInput(['maxlength' => true]) ?> field($model, 'width')->textInput(['maxlength' => true]) ?> field($model, 'height')->textInput(['maxlength' => true]) ?> field($model, 'status')->widget(Select2::className(),([ 'name' => 'status', 'hideSearch' => true, 'data' => [1 => 'Active', 2 => 'Inactive'], 'options' => ['placeholder' => 'Select status...'], 'pluginOptions' => [ 'allowClear' => true ] ])) ?>
isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>