%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/water/vendor/amnah/yii2-user/views/admin/ |
Upload File : |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var amnah\yii2\user\Module $module
* @var amnah\yii2\user\models\User $user
* @var amnah\yii2\user\models\Profile $profile
* @var amnah\yii2\user\models\Role $role
* @var yii\widgets\ActiveForm $form
*/
$module = $this->context->module;
$role = $module->model("Role");
?>
<div class="user-form">
<?php $form = ActiveForm::begin([
'enableAjaxValidation' => true,
]); ?>
<?= $form->field($user, 'email')->textInput(['maxlength' => 255]) ?>
<?= $form->field($user, 'username')->textInput(['maxlength' => 255]) ?>
<?= $form->field($user, 'newPassword')->passwordInput() ?>
<?= $form->field($profile, 'full_name'); ?>
<?= $form->field($user, 'role_id')->dropDownList($role::dropdown()); ?>
<?= $form->field($user, 'status')->dropDownList($user::statusDropdown()); ?>
<?php // use checkbox for banned_at ?>
<?php // convert `banned_at` to int so that the checkbox gets set properly ?>
<?php $user->banned_at = $user->banned_at ? 1 : 0 ?>
<?= Html::activeLabel($user, 'banned_at', ['label' => Yii::t('user', 'Banned')]); ?>
<?= Html::activeCheckbox($user, 'banned_at'); ?>
<?= Html::error($user, 'banned_at'); ?>
<?= $form->field($user, 'banned_reason'); ?>
<div class="form-group">
<?= Html::submitButton($user->isNewRecord ? Yii::t('user', 'Create') : Yii::t('user', 'Update'), ['class' => $user->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>