QoL 48: empty first choices read Select a client where you pick one, Any client where a list is filtered and None or No contact where it can be blank, the same for multi-pick placeholders, the report client and agent pickers and the choices built in script

This commit is contained in:
johnnyq
2026-11-21 00:47:49 -05:00
parent e48ee1ca0a
commit 91af76b2e1
156 changed files with 266 additions and 265 deletions

View File

@@ -169,7 +169,7 @@ function apiKeyAgentFieldHtml($selected = 0) {
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-shield"></i></span>
<select class="form-select select2" name="run_as_user" required>
<option value="">- Pick an agent -</option>
<option value="">- Select an agent -</option>
<?php foreach ($agents as $user_id => $agent) { ?>
<option value="<?= $user_id ?>" <?= $user_id === $selected ? 'selected' : '' ?><?= selectOptionUser($user_id, $agent['user_name'], $agent['user_avatar'] ?? '') ?>><?= escapeHtml($agent['user_name']) ?></option>
<?php } ?>