* [OQRS] config-switch to disable oqrs-feature

This commit is contained in:
Christoph Kottke
2024-06-07 14:27:32 +02:00
committed by Christoph Kottke
parent 200f6d965f
commit 71f6896b69
4 changed files with 10 additions and 0 deletions

View File

@@ -259,6 +259,7 @@
</div>
</div>
<?php if (!($this->config->item('disable_oqrs') ?? false)) { ?>
<div class="mb-3">
<label for="oqrs"><?php echo lang("station_location_oqrs_enabled"); ?></label>
<select class="form-select" id="oqrs" name="oqrs">
@@ -279,6 +280,7 @@
<input type="text" class="form-control" name="oqrstext" id="oqrstext" aria-describedby="oqrstextHelp">
<small id="oqrstextHelp" class="form-text text-muted"><?php echo lang("station_location_oqrs_text_hint"); ?></small>
</div>
<?php } ?>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> <?php echo lang("admin_create"); ?> <?php echo lang("station_location"); ?></button>