add reception account state view and pdf export

This commit is contained in:
2016-01-08 14:06:55 +01:00
parent da29702a79
commit e8df61f123
30 changed files with 1190 additions and 288 deletions

View File

@@ -2,12 +2,19 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\widgets\DateTimePicker;
use frontend\components\HtmlHelper;
use common\models\AccountState;
/* @var $this yii\web\View */
/* @var $model frontend\models\AccountstateSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$accountOptions = ['' =>'Mind']+ HtmlHelper::mkAccountOptions( $model->accounts );
$userOptions = ['' => 'Mind'] + HtmlHelper::mkOptions($model->users,'id','username');
$typeOptions = ['' => 'Mind'] + AccountState::types();
?>
<div class="account-state-search">
<?php $form = ActiveForm::begin([
@@ -15,47 +22,41 @@ use yii\widgets\ActiveForm;
'method' => 'get',
]); ?>
<?= $form->field($model, 'id_account_state') ?>
<?= $form->field($model, 'id_account') ?>
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'id_account')->dropDownList($accountOptions) ?>
</div>
<div class="col-md-4">
<?= $form->field($model, 'id_user')->dropDownList($userOptions) ?>
</div>
<div class="col-md-4">
<?= $form->field($model, 'type')->dropDownList($typeOptions) ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'start')->widget(DateTimePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd hh:ii'
]
])->label('Időszak kezdete') ?>
</div>
<div class="col-md-4">
<?= $form->field($model, 'end') ->widget(DateTimePicker::classname(), [
'pluginOptions' => [
'autoclose'=>true,
'format' => 'yyyy.mm.dd hh:ii'
]
])->label("Időszak vége") ?>
</div>
</div>
<?= $form->field($model, 'type') ?>
<?= $form->field($model, 'money') ?>
<?= $form->field($model, 'banknote_5_ft') ?>
<?php // echo $form->field($model, 'banknote_10_ft') ?>
<?php // echo $form->field($model, 'banknote_20_ft') ?>
<?php // echo $form->field($model, 'banknote_50_ft') ?>
<?php // echo $form->field($model, 'banknote_100_ft') ?>
<?php // echo $form->field($model, 'banknote_200_ft') ?>
<?php // echo $form->field($model, 'banknote_500_ft') ?>
<?php // echo $form->field($model, 'banknote_1000_ft') ?>
<?php // echo $form->field($model, 'banknote_2000_ft') ?>
<?php // echo $form->field($model, 'banknote_5000_ft') ?>
<?php // echo $form->field($model, 'banknote_10000_ft') ?>
<?php // echo $form->field($model, 'banknote_20000_ft') ?>
<?php // echo $form->field($model, 'id_user') ?>
<?php // echo $form->field($model, 'created_at') ?>
<?php // echo $form->field($model, 'updated_at') ?>
<div class="form-group">
<?= Html::submitButton(Yii::t('frontend/account-state', 'Search'), ['class' => 'btn btn-primary']) ?>
<?= Html::resetButton(Yii::t('frontend/account-state', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
<?php ActiveForm::end(); ?>