add receiver_keys to the settings page

This commit is contained in:
Jakob Ketterl
2021-02-07 18:04:46 +01:00
parent 25db7c716d
commit 8de70cd523
2 changed files with 30 additions and 8 deletions

View File

@ -12,6 +12,7 @@ from owrx.form import (
Option,
ServicesCheckboxInput,
Js8ProfileCheckboxInput,
ReceiverKeysInput,
)
from urllib.parse import quote
import json
@ -100,6 +101,15 @@ class GeneralSettingsController(AdminController):
TextInput("photo_title", "Photo title"),
TextAreaInput("photo_desc", "Photo description"),
),
Section(
"Receiver listings",
ReceiverKeysInput(
"receiver_keys",
"Receiver keys",
infotext="Put the keys you receive on listing sites (e.g. "
+ '<a href="https://www.receiverbook.de">Receiverbook</a>) here, one per line',
),
),
Section(
"Waterfall settings",
NumberInput(
@ -294,4 +304,4 @@ class GeneralSettingsController(AdminController):
for k, v in data.items():
config[k] = v
Config.store()
self.send_redirect("/admin")
self.send_redirect("/generalsettings")