Skip to content

Commit c023b01

Browse files
committed
Just hide label and select if band != sat
1 parent 06caf34 commit c023b01

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

application/views/gridmap/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
} ?>
4848
</select>
4949
<?php if (count($sats_available) != 0) { ?>
50-
<label class="my-1 me-2" id="satslabel" for="distplot_sats"><?php echo lang('gridsquares_sat'); ?></label>
51-
<select class="form-select my-1 me-sm-2 w-auto" id="sats">
50+
<label class="my-1 me-2" id="satslabel" for="distplot_sats" <?php if ($user_default_band != "SAT") { ?>style="display: none;"<?php } ?>><?php echo lang('gridsquares_sat'); ?></label>
51+
<select class="form-select my-1 me-sm-2 w-auto" id="sats" <?php if ($user_default_band != "SAT") { ?>style="display: none;"<?php } ?>>
5252
<option value="All"><?php echo lang('general_word_all')?></option>
5353
<?php foreach($sats_available as $sat) {
5454
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
@@ -57,9 +57,9 @@
5757
<?php } else { ?>
5858
<input id="sats" type="hidden" value="All"></input>
5959
<?php } ?>
60-
<label class="my-1 me-2" id="orbitslabel" for="orbits"><?php echo lang('gridsquares_orbit'); ?></label>
61-
<select class="form-select my-1 me-sm-2 w-auto" id="orbits">
62-
<option value="All"><?php echo lang('general_word_all')?></option>
60+
<label class="my-1 me-2" id="orbitslabel" for="orbits" <?php if ($user_default_band != "SAT") { ?>style="display: none;"<?php } ?>><?php echo lang('gridsquares_orbit'); ?></label>
61+
<select class="form-select my-1 me-sm-2 w-auto" id="orbits" <?php if ($user_default_band != "SAT") { ?>style="display: none;"<?php } ?>>
62+
<option value="All"><?php echo lang('general_word_all')?></option>
6363
<?php
6464
foreach($orbits as $orbit){
6565
echo '<option value="' . $orbit . '">' . strtoupper($orbit) . '</option>'."\n";

0 commit comments

Comments
 (0)