| 123456789101112131415161718192021222324 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- /**
- * @var int $user_id
- * @var string $label
- */
- use App\Helpers\HtmlHelper;
- use App\User;
- $label ??= __("User");
- ?>
- <div class="mb-3">
- <label class="form-label" for="user-id"><?=htmlspecialchars($label)?></label>
- <select class="form-control" name="user_id" id="user-id">
- <option value=""><?=htmlspecialchars(__("Select User"))?></option>
- <?php
- HtmlHelper::renderOptions(User::getOptions(), $user_id);
- ?>
- </select>
- </div>
|