add id_account to door log, add key import to backend with no menu
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -42,6 +42,10 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
[
|
||||
'attribute' => 'key_number',
|
||||
'label' => 'Kulcs'
|
||||
],
|
||||
[
|
||||
'attribute' => 'account_name',
|
||||
'label' => 'Kassza'
|
||||
],
|
||||
[
|
||||
'attribute' => 'customer_id_customer',
|
||||
|
||||
16
backend/views/key/import.php
Normal file
16
backend/views/key/import.php
Normal 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() ?>
|
||||
Reference in New Issue
Block a user