add id_account to door log, add key import to backend with no menu

This commit is contained in:
2016-02-16 21:42:13 +01:00
parent 6221945bb7
commit 0ce6958e0b
11 changed files with 312 additions and 138 deletions

View File

@@ -5,12 +5,21 @@ use yii\widgets\ActiveForm;
use kartik\widgets\DatePicker;
use backend\models\DoorLogSearch;
use kartik\widgets\DateTimePicker;
use common\models\Account;
use common\components\Helper;
use frontend\components\HtmlHelper;
/* @var $this yii\web\View */
/* @var $model backend\models\DoorLogSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$accountOptions = ['' =>'Mind']+ HtmlHelper::mkAccountOptions( Account::read() );
?>
<div class="door-log-search">
<?php $form = ActiveForm::begin([
@@ -64,6 +73,10 @@ use kartik\widgets\DateTimePicker;
]
]) ?>
</div>
<div class="col-md-3">
<?= $form->field($model, 'id_account')->dropDownList( $accountOptions )->label("Kassza") ?>
</div>
</div>
<div class="form-group">

View File

@@ -42,6 +42,10 @@ $this->params['breadcrumbs'][] = $this->title;
[
'attribute' => 'key_number',
'label' => 'Kulcs'
],
[
'attribute' => 'account_name',
'label' => 'Kassza'
],
[
'attribute' => 'customer_id_customer',

View File

@@ -0,0 +1,16 @@
<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<h1>Kulcs importálás</h1>
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
<?= $form->field($model, 'file')->fileInput() ?>
<button>Submit</button>
<?php
echo ($model->message);
?>
<?php ActiveForm::end() ?>