<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model app\models\Usuario */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="usuario-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'usr_pk')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'usr_nombre')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'usr_login')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, "usr_pwd")->passwordInput(["maxlength" => true]) ?>

    <?= $form->field($model, "per_pk")->dropDownList(ArrayHelper::map($list_perfil, "per_pk", "per_nombre"), ["prompt" => "Seleccione",]) ?>    

    <?= $form->field($model, "usr_estado")->dropDownList(["a" => "Activo", "i" => "Inactivo"]) ?>

    <div class="form-group">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
