$form = ActiveForm::begin(['id' => 'user-form']); ?> <?php echo $form->field('id')->hiddenInput(); ?> <?php echo $form->field('username')->textInput(['placeholder' => Module::t('user.username')]); ?> <?php echo $form->field('password')->passwordInput(['placeholder' => Module::t('user.password')]); ?> <?php echo $form->field('name')->textInput(['placeholder' => Module::t('user.name')]); ?> <?php echo Checkbox::widget(['name' => 'role', 'label' => Module::t('role.list.title'), 'items' => $data['roles']]); ?> <?php echo Radio::widget(['name' => 'status', 'label' => Module::t('status'), 'items' => $data['status'], 'values' => [1]]); ?> <?php ActiveForm::end(); ?> </div> </div> </div> </div> <?php Modal::end(); ?>
echo $form->field('password')->passwordInput(['placeholder' => Module::t('user.password')]); ?> <?php echo $form->field('name')->textInput(['placeholder' => Module::t('user.name')]); ?> <?php echo $form->field('trd_identifier')->textInput(['placeholder' => Module::t('user.third.identifier')]); ?> <div class="form-group"> <label class="control-label control-label"><?php echo Module::t('role.list.title'); ?> </label> <?php echo Checkbox::widget(['name' => 'role', 'items' => $data['roles']]); ?> </div> <div class="form-group"> <label class="control-label control-label"><?php echo Module::t('status'); ?> </label> <?php echo Radio::widget(['name' => 'status', 'items' => $data['status'], 'values' => [1]]); ?> </div> <?php