luyadev/luya-module-admin

View on GitHub
src/views/aws/changepassword/index.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
use luya\admin\Module;
use luya\admin\ngrest\aw\ActiveWindowFormWidget;

/**
 * @var $this \luya\admin\ngrest\base\ActiveWindowView
 * @var $form luya\admin\ngrest\aw\ActiveWindowFormWidget
 */
?>
<div>
    <p><?= Module::t('aws_changepassword_info'); ?></p>
    <?php $form = ActiveWindowFormWidget::begin([
        'callback' => 'save',
        'buttonValue' => Module::t('button_save'),
        'options' => [
            'closeOnSuccess' => true,
            'clearOnError' => true,
        ],
    ]); ?>
    <?= $form->field('newpass', Module::t('aws_changepassword_new_pass'))->passwordInput(['autocomplete' => 'password-password']); ?>
    <?= $form->field('newpasswd', Module::t('aws_changepassword_new_pass_retry'))->passwordInput(['autocomplete' => 'password-password']); ?>
    <?php $form::end(); ?>
</div>