<?php
/** @var array $user @var string $sys @var string $sysName */
$upper = strtoupper($sys);
?>
<div class="page-head">
    <h1>重置密码</h1>
    <p class="sub"><?php echo e($sysName); ?> · 为用户 <b><?php echo e($user['username']); ?></b> 设置新密码</p>
</div>

<?php echo flash_html(); ?>

<div class="panel form-card">
    <form method="post" action="<?php echo site_url($upper . '/users/reset/' . $user['id']); ?>">
        <?php echo csrf_field(); ?>
        <div class="form-row">
            <label>新密码 <span class="req">*</span></label>
            <input type="password" name="password" autocomplete="new-password" required>
            <small class="muted">至少 6 位</small>
        </div>
        <div class="form-actions">
            <button type="submit" class="btn">确认重置</button>
            <a class="btn-soft" href="<?php echo site_url($upper . '/users'); ?>">取消</a>
        </div>
    </form>
</div>
