add rfid_key to card and key

This commit is contained in:
2015-12-28 21:03:52 +01:00
parent f6b483a9f9
commit 3b2f19b909
18 changed files with 108 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ use common\models\Card;
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'number')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'rfid_key')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->dropDownList(Card::statuses()) ?>

View File

@@ -46,6 +46,9 @@ $statusOptions = mkOptions(Card::statuses());
<div class='col-md-3'>
<?= $form->field($model, 'searchCustomerName')->textInput() ?>
</div>
<div class='col-md-3'>
<?= $form->field($model, 'rfid_key')->textInput() ?>
</div>
</div>

View File

@@ -28,6 +28,10 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'number',
'value' => 'number'
],
[
'attribute' => 'rfid_key',
'value' => 'rfid_key'
],
[
'attribute' => 'status',
'value' => 'statusHuman'

View File

@@ -22,6 +22,7 @@ $this->params['breadcrumbs'][] = $this->title;
'model' => $model,
'attributes' => [
'number',
'rfid_key',
['attribute' => 'status', 'value' => $model->statusHuman],
['attribute' => 'type', 'value' => $model->typeHuman],
'created_at:datetime',