Aligned wording and added hint to LoTW QSL tab

This commit is contained in:
phl0
2024-07-14 11:25:52 +02:00
parent c8694aad17
commit 9e027cfdce
4 changed files with 14 additions and 8 deletions

View File

@@ -6125,8 +6125,8 @@ msgstr "Zurücksetzen"
#: application/views/interface_assets/footer.php:34
#: application/views/qso/edit_ajax.php:211
msgid ""
"This propagation mode is not supported by LoTW. LoTW QSL fields disabled."
msgstr "Diese Ausbreitungsart wird von LotW nicht unterstützt. LoTW QSL Felder deaktiviert."
"Propagation mode is not supported by LoTW. LoTW QSL fields disabled."
msgstr "Ausbreitungsart wird von LotW nicht unterstützt. LoTW QSL Felder deaktiviert."
#: application/views/interface_assets/footer.php:116
#: application/views/interface_assets/header.php:426

View File

@@ -31,7 +31,7 @@
var lang_admin_close = "<?= __("Close"); ?>";
var lang_admin_save = "<?= __("Save"); ?>";
var lang_admin_clear = "<?= __("Clear"); ?>";
var lang_lotw_propmode_hint = "<?= __("This propagation mode is not supported by LoTW. LoTW QSL fields disabled."); ?>";
var lang_lotw_propmode_hint = "<?= __("Propagation mode is not supported by LoTW. LoTW QSL fields disabled."); ?>";
</script>

View File

@@ -208,7 +208,7 @@
<option value="TEP" <?php if($qso->COL_PROP_MODE == "TEP") { echo "selected=\"selected\""; } ?>><?= _pgettext("Propagation Mode","Trans-equatorial"); ?></option>
<option value="TR" <?php if($qso->COL_PROP_MODE == "TR") { echo "selected=\"selected\""; } ?>><?= _pgettext("Propagation Mode","Tropospheric ducting"); ?></option>
</select>
<small id="lotw_propmode_hint" class="form-text text-muted"><?php if (in_array($qso->COL_PROP_MODE, $this->config->item('lotw_unsupported_prop_modes'))) { echo __("This propagation mode is not supported by LoTW. LoTW QSL fields disabled."); } else { echo "&nbsp;"; } ?></small>
<small id="lotw_propmode_hint" class="form-text text-muted"><?php if (in_array($qso->COL_PROP_MODE, $this->config->item('lotw_unsupported_prop_modes'))) { echo __("Propagation mode is not supported by LoTW. LoTW QSL fields disabled."); } else { echo "&nbsp;"; } ?></small>
</div>
<input type="hidden" class="form-control" id="country" name="country" value="<?php echo $qso->COL_COUNTRY; ?>">
@@ -479,7 +479,7 @@
</div>
<div>
<label for="qslmsg"><?= __("Notes"); ?><span class="qso_eqsl_qslmsg_update" title="<?= __("Get the default message for eQSL, for this station."); ?>"><i class="fas fa-redo-alt"></i></span></label>
<label class="position-absolute end-0 mb-2 me-3" for="qslmsg" id="charsLeft"> </label>
<label class="position-absolute end-0 mb-2 me-3" for="qslmsg" id="charsLeft"> </label>
<textarea type="text" class="form-control" id="qslmsg" name="qslmsg" rows="5" maxlength="240"><?php echo $qso->COL_QSLMSG; ?></textarea>
<div id="qslmsg_hide" style="display:none;"><?php echo $qso->COL_QSLMSG; ?></div>
</div>
@@ -508,7 +508,9 @@
<option value="R" <?php if($qso->COL_LOTW_QSL_RCVD == "R") { echo "selected=\"selected\""; } ?>><?= __("Requested"); ?></option>
<option value="I" <?php if($qso->COL_LOTW_QSL_RCVD == "I") { echo "selected=\"selected\""; } ?>><?= __("Invalid (Ignore)"); ?></option>
<option value="V" <?php if($qso->COL_LOTW_QSL_RCVD == "V") { echo "selected=\"selected\""; } ?>><?= __("Verified (Match)"); ?></option>
</select></div>
</select>
<small id="lotw_propmode_hint" class="form-text text-muted"><?php if (in_array($qso->COL_PROP_MODE, $this->config->item('lotw_unsupported_prop_modes'))) { echo __("Propagation mode is not supported by LoTW. LoTW QSL fields disabled."); } else { echo "&nbsp;"; } ?></small>
</div>
</div>
</div>
</div>

View File

@@ -279,11 +279,15 @@ function qso_edit(id) {
if (unsupported_lotw_prop_modes.includes($('#prop_mode').val())) {
$('#lotw_sent').prop('disabled', true);
$('#lotw_rcvd').prop('disabled', true);
$('#lotw_propmode_hint').html(lang_lotw_propmode_hint).fadeIn("slow");
$('*[id=lotw_propmode_hint]').each(function() {
$(this).html(lang_lotw_propmode_hint).fadeIn("slow");
});
} else {
$('#lotw_sent').prop('disabled', false);
$('#lotw_rcvd').prop('disabled', false);
$('#lotw_propmode_hint').html("&nbsp;").fadeIn("fast");
$('*[id=lotw_propmode_hint]').each(function() {
$(this).html("&nbsp;").fadeIn("fast");
});
}
});