fix(web): add missing .form-select class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-10-18 17:11:55 +08:00
parent ec74277e8a
commit d562f18de5
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 9 additions and 3 deletions

View File

@ -108,7 +108,13 @@ d-inline-block
<?php endif ?>
">
<label for="input-status" class="control-label"><?= UOJLocale::get('problems::result') ?>:</label>
<select class="form-control input-sm" id="input-status" name="status">
<select class="input-sm
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
form-select
<?php else: ?>
form-control
<?php endif ?>
" id="input-status" name="status">
<option value=""<?= $selected_all?>>All</option>
<option value="1"<?= $selected_succ ?>>Success!</option>
<option value="2"<?= $selected_fail ?>>Failed.</option>

View File

@ -123,7 +123,7 @@ EOD;
<div id="div-$name" class="form-group">
<label for="input-$name" class="col-sm-2 control-label">$label_text</label>
<div class="col-sm-3">
<select class="form-control" id="input-$name" name="$name">
<select class="form-control form-select" id="input-$name" name="$name">
EOD;
foreach ($options as $opt_name => $opt_label) {
@ -161,7 +161,7 @@ EOD;
$html = <<<EOD
<div id="div-$name">
<label for="input-$name" class="control-label">$label_text</label>
<select class="form-control" id="input-{$name}" name="$name">
<select class="form-control form-select" id="input-{$name}" name="$name">
EOD;
foreach ($options as $opt_name => $opt_label) {