Added preview of distance on initial edit of QSO

This commit is contained in:
phl0
2023-06-16 22:07:04 +02:00
parent bc103249a8
commit dc218854b8

View File

@@ -161,10 +161,10 @@
<div class="form-group col-sm-6">
<label for="locator">Gridsquare</label>
<input type="text" class="form-control" id="locator" name="locator" value="<?php echo $qso->COL_GRIDSQUARE; ?>">
<small id="locator_info" class="form-text text-muted"></small>
<small id="locator_info" class="form-text text-muted"><?php if ($qso->COL_DISTANCE != "") echo $qso->COL_DISTANCE." km"; ?></small>
</div>
<input type="hidden" name="distance" id="distance" value="<?php echo $qso->COL_DISTANCE; ?>">
<input type="hidden" name="distance" id="distance" value="<?php print ($qso->COL_DISTANCE != "") ? $qso->COL_DISTANCE : "0"; ?>">
<div class="form-group col-sm-6">
<label for="vucc_grids">VUCC Gridsquare</label>