|
- <?php
-
- use yii\helpers\Html;
- use common\components\zActiveForm;
- use common\models\BaseResource;
- use backend\modules\motorcade\models\BusDocLog;
- use backend\modules\motorcade\models\BusOilDoc;
-
- /* @var $this yii\web\View */
- /* @var $model backend\modules\motorcade\models\BusOilDoc */
- /* @var $form yii\widgets\ActiveForm */
- /* @var $data array */
-
- $log = $data['log'];
-
- $this->title = '余额修改';
- ?>
- <div class="modal-dialog modal-lg">
- <div class="bus-oil-doc-balance">
- <?php \yii\widgets\Pjax::begin(['id' => 'pjax-modal', 'timeout' => false, 'enablePushState' => false, 'options' => ['data-pjax-container' => 'doc-container']]) ?>
- <?php $form = zActiveForm::begin(['options' => ['class' => 'form-horizontal', 'data-pjax' => true]]); ?>
- <div class="panel panel-default" id="panel-div">
- <div class="panel-heading"><?= $this->title ?>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="panel-body">
- <div class="myBody">
-
- <?= $form->field($log, 'VALUE_OLD', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group input-group-with-addon">{input}' .
- '<div class="input-group-addon" style="width: auto">元</div>'.
- (isset($options['options']['unit']) ? '<div class="input-group-addon" style="width: auto">' . $options['options']['unit'] . '</div>' : '') .
- '</div>{hint}{error}</div>'])->textInput(['maxlength' => true, 'readonly' => true]) ?>
-
- <?= $form->field($log, 'VALUE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline" style="display: inline-flex; width: 240px;">' .
- '<select class="form-control" name="BusDocLog[OPERATION_TYPE]" style="margin-right: 10px;"><option value="581" >减少</option><option value="580" >增加</option></select>{input}' .
- '<div class="input-group-addon" style="width: auto">元</div>' .
- '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('修改') ?>
-
- <?= $form->field($log, 'NOTE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group">{input}' .
- (isset($options['options']['unit']) ? '<div class="input-group-addon" style="width: auto">' . $options['options']['unit'] . '</div>' : '') .
- '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('修改原因') ?>
-
- <?= $form->field($log, 'CARD_ID')->hiddenInput()->label(false) ?>
- <div class="form-group">
- <label class="control-label"> </label>
- <div class="col-sm-5">
- <?= Html::submitButton('保存', ['class' => 'btn btn-primary']) ?>
- <?= Html::submitButton('取消', ['class' => 'btn btn-default', 'data-dismiss'=> 'modal', 'style'=> 'margin-left: 5px;']) ?>
- </div>
- </div>
-
- </div>
- <!--mybody end-->
- </div>
- </div>
-
- <?php zActiveForm::end(); ?>
- <?php \yii\widgets\Pjax::end() ?>
- </div>
- </div>
|