<?php use yii\bootstrap\Modal; use yii\helpers\Html; use biz\master\components\Helper; use biz\sales\models\Cashdrawer; $model = new Cashdrawer(['id_branch' => Yii::$app->clientIdBranch, 'cashier_no' => Yii::$app->clientCashierNo]); Modal::begin(['id' => 'dlg-drawer', 'closeButton' => null, 'clientOptions' => ['backdrop' => 'static', 'keyboard' => false]]); ?> <div class="cash-drawer-form"> <?php echo $form->field($model, 'id_branch')->dropDownList(Helper::getBranchList()); ?> <?php echo $form->field($model, 'cashier_no')->dropDownList([1 => 1, 2 => 2, 3 => 3, 4 => 4]); ?> <?php echo $form->field($model, 'init_cash'); ?> <div class="form-group"> <?php echo Html::a('Open New', '', ['class' => 'btn btn-success', 'id' => 'cashdrawer-opennew']); ?> </div> </div> <?php Modal::end(); ?> <?php Modal::begin(['id' => 'dlg-confirm-save', 'closeButton' => null, 'size' => Modal::SIZE_SMALL, 'clientOptions' => ['backdrop' => 'static']]);
<?php echo Html::a('', '#', ['class' => 'btn btn-danger btn-sm fa fa-times', 'title' => 'Min/Maximize', 'id' => 'tutup', 'data-widget' => 'remove']); ?> </div> </div> <div class="box-body"> <?php echo $form->field($model, 'gl_num'); ?> <?php echo $form->field($model, 'description'); ?> <?php $itemBrnch = \biz\master\components\Helper::getBranchList(); ?> <?php echo $form->field($model, 'id_branch')->dropDownList($itemBrnch, ['prompt' => '--All Status--']); ?> <?php $field = $form->field($model, "gl_date", ['template' => "{label}<br><div class='col-lg-4' style='padding-left:0px;'>{date1}</div><div class='col-lg-4' style='padding-left:0px;'>{date2}</div><br>"]); $field->label('Date Receive (From/To)'); $field->parts['{date1}'] = \yii\jui\DatePicker::widget(['model' => $model, 'attribute' => 'dateFrom', 'options' => ['class' => 'form-control'], 'clientOptions' => ['dateFormat' => 'dd-mm-yy']]); $field->parts['{date2}'] = \yii\jui\DatePicker::widget(['model' => $model, 'attribute' => 'dateTo', 'options' => ['class' => 'form-control'], 'clientOptions' => ['dateFormat' => 'dd-mm-yy']]); echo $field; ?> <?php echo '';