Lock site dropdown if no locations set.
Lock site dropdown if no locations set.
This commit is contained in:
parent
4d10ef75d3
commit
f6b91539c1
@ -127,7 +127,7 @@ $templateData['csrfToken'] = $_SESSION[LookingGlass::SESSION_CSRF] = bin2hex(ran
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-4 float-end">
|
<div class="col-4 float-end">
|
||||||
<select class="form-select" onchange="window.location = this.options[this.selectedIndex].value">
|
<select class="form-select" onchange="window.location = this.options[this.selectedIndex].value" <?php if (count($templateData['locations']) == 0) echo 'disabled'; ?>>
|
||||||
<option selected><?php echo $templateData['current_location'] ?></option>
|
<option selected><?php echo $templateData['current_location'] ?></option>
|
||||||
<?php foreach ($templateData['locations'] as $location => $link): ?>
|
<?php foreach ($templateData['locations'] as $location => $link): ?>
|
||||||
<option value="<?php echo $link ?>"><?php echo $location ?></option>
|
<option value="<?php echo $link ?>"><?php echo $location ?></option>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user