32 lines
971 B
PHP
32 lines
971 B
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\ActiveForm;
|
|
use common\models\Card;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\Card */
|
|
/* @var $form yii\widgets\ActiveForm */
|
|
?>
|
|
|
|
<div class="card-form">
|
|
|
|
<?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()) ?>
|
|
|
|
<?= $form->field($model, 'type')->dropDownList(Card::types()) ?>
|
|
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton($model->isNewRecord ? Yii::t('common/card', 'Create') : Yii::t('common/card', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
|
|
<?= Html::submitButton( Yii::t('common/card', 'Create/Next') ,['class' => 'btn btn-primary','name'=>'create_next']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|