Omit filter options in case DCL interface is disabled

This commit is contained in:
phl0
2025-09-08 13:54:28 +02:00
parent 8a2af7e732
commit d29d642637
2 changed files with 4 additions and 2 deletions

View File

@@ -520,6 +520,7 @@ $options = json_decode($options);
<option value="V"><?= __("Verified"); ?></option>
</select>
</div>
<?php if ($this->config->item('enable_dcl_interface') ?? false) { ?>
<div <?php if (($options->dcl->show ?? "true") == "false") { echo 'style="display:none"'; } ?> class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
<label for="dclSent"><?= __("DCL sent"); ?></label>
<select id="dclSent" name="dclSent" class="form-select form-select-sm">
@@ -538,6 +539,7 @@ $options = json_decode($options);
<option value="I"><?= __("Invalid (Ignore)"); ?></option>
</select>
</div>
<?php } ?>
<div <?php if (($options->qsl->show ?? "true") == "false") { echo 'style="display:none"'; } ?> class="mb-3 col-lg-2 col-md-2 col-sm-3 col-xl">
<label for="qslvia"><?= __("QSL via"); ?></label>
<input onclick="this.select()" type="search" name="qslvia" class="form-control form-control-sm" value="*" placeholder="<?= __("Empty"); ?>">

View File

@@ -581,8 +581,8 @@ $(document).ready(function () {
clublogReceived: this.clublogReceived.value,
eqslSent: this.eqslSent.value,
eqslReceived: this.eqslReceived.value,
dclSent: this.dclSent.value,
dclReceived: this.dclReceived.value,
dclSent: (this.hasOwnProperty('dclSent') ? this.dclSent.value : ''),
dclReceived: (this.hasOwnProperty('dclReceived') ? this.dclReceived.value : ''),
qslvia: $('[name="qslvia"]').val(),
sota: this.sota.value,
pota: this.pota.value,