|
- <?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 $form yii\widgets\ActiveForm */
- /* @var $type string */
- /* @var $data array */
-
- $log = $data['log'];
-
- $this->title = $data['type'] . '充值';
- ?>
-
- <div class="modal-dialog modal-lg">
- <div class="bus-oil-doc-charge">
- <?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', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline input-group-with-addon" >' .
- '{input}' .
- '<div class="input-group-addon " style="width: auto">元</div>' .
- '</div>{hint}{error}</div>'])->textInput(['maxlength' => true])->label('充值金额') ?>
-
- <?= $form->field($log, 'OPERATION_DATE', ['template' => '{label}<div class="col-sm-8" style="display: inline-flex"><div class="input-group form-inline input-group-with-addon date form_date">' .
- '{input}<span class="input-group-addon" style="width: auto"><span class="glyphicon glyphicon-calendar"></span></span>' .
- '</div>{hint}{error}</div>'])->textInput(['maxlength' => true, 'readonly' => true])->label('充值日期') ?>
-
-
- <?= $form->field($log, 'CARD_ID')->hiddenInput()->label(false) ?>
- <div class="form-group" style="clear: both"></div>
- <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>
|