echo $form->field($model, 'UnitPrice')->textInput(['maxlength' => true]); ?> </div> </div> </div> </div> <!--row 3end--> <div class="row"> <!--row 4--> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($model, 'PriceUnit')->dropDownList(ArrayHelper::map(PriceUnits::find()->all(), 'priceUnitName', 'priceUnitName'), ['prompt' => 'Price Unit']); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($model, 'ReserveCount')->textInput(['maxlength' => true]); ?> </div> </div> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($model, 'SaleInd')->dropDownList(ArrayHelper::map(SaleIndicators::find()->all(), 'indicatorCode', 'indicatorCode'), ['prompt' => 'Sale Indicators']);
?> " value="<?php echo $model['SalePrice']; ?> "></div></td> <td><div class="actualval acval<?php echo $model['Saleid']; ?> " ><?php echo $model['PriceUnit']; ?> </div><div class="inpval inval<?php echo $model['Saleid']; ?> "><?php echo Html::activeDropDownList($model, 'PriceUnit', ArrayHelper::map(PriceUnits::find()->all(), 'priceUnitName', 'priceUnitName'), ['id' => 'priceunit' . $model['Saleid']]); ?> </div></td> <td><div class="actualval acval<?php echo $model['Saleid']; ?> " ><?php echo $model['StartDate']; ?> </div><div class="inpval inval<?php echo $model['Saleid']; ?> "><?php echo DatePicker::widget(['name' => 'dp_1', 'type' => DatePicker::TYPE_INPUT, 'value' => $model['StartDate'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd'], 'options' => ['id' => 'strdate' . $model['Saleid'], 'style' => 'width: 75px;']]); ?> </div></td>
/** * Lists all PriceUnits models. * @return mixed */ public function actionIndex() { $dataProvider = new ActiveDataProvider(['query' => PriceUnits::find()]); return $this->render('index', ['dataProvider' => $dataProvider]); }