qwewqe
This commit is contained in:
@@ -133,6 +133,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
$pendingRequests = $registration->pendingApprovals();
|
||||
$availableGroups = $registration->availableGroups();
|
||||
$existingUsers = $registration->searchExistingUsers('', 250);
|
||||
$selected = $selectedId !== ''
|
||||
? $registration->find($selectedId)
|
||||
: ($pendingRequests[0] ?? null);
|
||||
@@ -246,6 +247,8 @@ ob_start();
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
|
||||
<script id="um-existing-users-data" type="application/json"><?= json_encode($existingUsers, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?></script>
|
||||
|
||||
<?php if ($section === 'pending'): ?>
|
||||
<div class="window-app-grid um-grid um-grid--split">
|
||||
<section class="window-app-card um-card">
|
||||
@@ -337,7 +340,10 @@ ob_start();
|
||||
|
||||
<label class="um-field">
|
||||
<span>Benutzername</span>
|
||||
<input type="text" name="manual_username" value="<?= $h($manualUsername) ?>" required>
|
||||
<div class="um-user-picker" data-user-picker>
|
||||
<input type="text" name="manual_username" value="<?= $h($manualUsername) ?>" required autocomplete="off" data-user-picker-input>
|
||||
<div class="um-user-picker-list" data-user-picker-list hidden></div>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
<fieldset class="um-fieldset">
|
||||
@@ -376,7 +382,10 @@ ob_start();
|
||||
|
||||
<label class="um-field">
|
||||
<span>Benutzername</span>
|
||||
<input type="text" name="reset_username" value="<?= $h($manualResetUsername) ?>" required>
|
||||
<div class="um-user-picker" data-user-picker>
|
||||
<input type="text" name="reset_username" value="<?= $h($manualResetUsername) ?>" required autocomplete="off" data-user-picker-input>
|
||||
<div class="um-user-picker-list" data-user-picker-list hidden></div>
|
||||
</div>
|
||||
</label>
|
||||
|
||||
<label class="um-field">
|
||||
|
||||
Reference in New Issue
Block a user