= $this->title; ?>
getIsNewRecord() && !empty($modelLang->product_image_path)) {
$uploadHelper = UploadHelper::getInstance();
$url = $modelLang->product_image_path;
echo Html::img($url,
$options = ['alt' => 'Product Image', 'style' => 'width:100px;height:100px', 'class' => 'img-responsive img-thumbnail']);
}
?>
= $form->field($modelUploadForm, 'product_image_path')->fileInput(['class' => 'form-control']); ?>
= $form->field($modelLang, 'product_name')->textInput(); ?>
= $form->field($modelLang, 'product_description')->textarea(); ?>
= $form->field($model, 'price')->textInput(); ?>
= $form->field($model, 'product_status')->radioList([$model::ACTIVE =>'Active', $model::INACTIVE =>'Inactive']); ?>
= Html::submitButton($model->getIsNewRecord() ? 'Create' : 'Update', ['class' => 'btn btn-success']) ?>
= Html::a('Cancel', ['index'], ['class' => 'btn btn-secondary']); ?>