add receiver_keys to the settings page
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user