Merge pull request #1303 from phl0/orbitDropdown

Make orbit dropdown aka. fences everywhere
This commit is contained in:
Florian (DF2ET)
2024-12-04 08:52:35 +01:00
committed by GitHub
2 changed files with 12 additions and 4 deletions

View File

@@ -33,8 +33,12 @@
<div class = "row">
<div class="mb-3 col-md-6">
<label for="orbit"><?= __("Orbit"); ?></label>
<input type="text" class="form-control" name="orbit" id="orbit" aria-describedby="orbitHelp" required>
<small id="sorbitHelp" class="form-text text-muted"><?= __("Enter which orbit the satellite has (LEO, MEO, GEO)"); ?></small>
<select id="orbit" class="form-select" name="orbit" aria-describedby="orbitHelp">
<option value="LEO" selected="selected">LEO</option>
<option value="MEO">MEO</option>
<option value="GEO">GEO</option>
</select>
<small id="orbitHelp" class="form-text text-muted"><?= __("Enter which orbit the satellite has (LEO, MEO, GEO)"); ?></small>
</div>
<div class="mb-3 col-md-6">
<label for="mode"><?= __("Satellite mode name"); ?></label>

View File

@@ -17,8 +17,12 @@
<div class = "row">
<div class="mb-3 col-md-6">
<label for="orbit"><?= __("Orbit"); ?></label>
<input type="text" class="form-control" name="orbit" id="orbit" aria-describedby="orbitHelp" value="<?php if(set_value('band') != "") { echo set_value('band'); } else { echo $satellite->orbit; } ?>" required>
<small id="sorbitHelp" class="form-text text-muted"><?= __("Enter which orbit the satellite has (LEO, MEO, GEO)"); ?></small>
<select id="orbit" class="form-select" name="orbit">
<option value="LEO" <?php echo $satellite->orbit == "LEO" ? "selected=\"selected\"" : ''; ?>>LEO</option>
<option value="MEO" <?php echo $satellite->orbit == "MEO" ? "selected=\"selected\"" : ''; ?>>MEO</option>
<option value="GEO" <?php echo $satellite->orbit == "GEO" ? "selected=\"selected\"" : ''; ?>>GEO</option>
</select>
<small id="orbitHelp" class="form-text text-muted"><?= __("Enter which orbit the satellite has (LEO, MEO, GEO)"); ?></small>
</div>
<div class="mb-3 col-md-6">
<label for="lotwAccepted"><?= __("Accepted by LoTW"); ?></label>