/var/www/vhosts/nabawater/backend/views/promotion
NameSizeModeActions
create.php6620644editdlrm
index.php56560644editdlrm
update.php6600644editdlrm
_form.php39570644editdlrm
Edit: /var/www/vhosts/nabawater/backend/views/promotion/_form.php (3957B)
setModel($model); ?>

title; ?>


field($model, 'vendor_id')->dropDownList($modelVendor->getVendorData(), ['prompt' => 'Please select a Restaurant', 'class' => 'select2 form-control']); ?>
field($modelLang, 'promotion_name')->textInput(); ?>
field($modelLang, 'promotion_description')->textarea(); ?>
field($model, 'promotion_code')->textInput(['readOnly' => true]); ?> Generate Promotion Code
field($model, 'promotion_price')->textInput(); ?>
field($model, 'offer')->textInput(); ?>
field($model, 'promotion_points')->textInput(); ?>
field($modelLang, 'promotion_type')->textInput(); ?>
field($model, 'start_date')->textInput(['class' => 'bootstrapMaterialDatePicker form-control ' ]); ?>
field($model, 'end_date')->textInput(['class' => 'bootstrapMaterialDatePicker form-control' ]); ?>
getIsNewRecord() && !empty($modelLang->promotion_image_path)) { $uploadHelper = UploadHelper::getInstance(); $url = $modelLang->promotion_image_path; echo Html::img($url, $options = ['alt' => 'Promotion Image', 'style' => 'width:100px;height:100px', 'class' => 'img-responsive img-thumbnail']); } ?>
field($modelUploadForm, 'promotion_image_path')->fileInput(['class' => 'form-control']); ?>
field($model, 'promotion_status')->radioList([$model::ACTIVE =>'Active', $model::INACTIVE =>'Inactive']); ?>
getIsNewRecord() ? 'Create' : 'Update', ['class' => 'btn btn-success']) ?> 'btn btn-secondary']); ?>