some updates to make quests look nicer
This commit is contained in:
parent
79b21cc6d0
commit
f2f11ca2ef
1 changed files with 4 additions and 5 deletions
|
@ -15,7 +15,7 @@ class RangingBeaconAltitudeQuestForm(ChangeSetModelForm):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.fields["altitude"].label = (
|
self.fields["altitude"].label = (
|
||||||
_('How many meters above ground is the access point “%s” mounted?') % self.instance.comment
|
_('How many meters above ground is the access point “%s” mounted?') % self.instance.title
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean_altitude(self):
|
def clean_altitude(self):
|
||||||
|
@ -59,8 +59,7 @@ class RangingBeaconAltitudeQuest(Quest):
|
||||||
class RangingBeaconBSSIDsQuestForm(ChangeSetModelForm):
|
class RangingBeaconBSSIDsQuestForm(ChangeSetModelForm):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.fields["look_for_ap"] = CharField(disabled=True, initial=self.instance.import_tag[4:],
|
self.fields["look_for_ap"] = CharField(disabled=True, initial=self.instance.ap_name, widget=HiddenInput())
|
||||||
widget=HiddenInput())
|
|
||||||
self.fields["addresses"].widget = HiddenInput()
|
self.fields["addresses"].widget = HiddenInput()
|
||||||
|
|
||||||
def clean_addresses(self):
|
def clean_addresses(self):
|
||||||
|
@ -91,8 +90,8 @@ class RangingBeaconBSSIDsQuest(Quest):
|
||||||
def quest_description(self) -> list[str]:
|
def quest_description(self) -> list[str]:
|
||||||
return [
|
return [
|
||||||
_("This quest only works in the app. It works fully automatically."),
|
_("This quest only works in the app. It works fully automatically."),
|
||||||
_("We are trying to find the BSSIDs broadcast by “%s”.") % self.obj.ap_name,
|
_("We are trying to find the BSSIDs broadcast by “%s”.") % self.obj.title,
|
||||||
_("Please stand near “%s” and wait for the submit button to appear.") % self.obj.ap_name,
|
_("Please stand near “%s” and wait for the submit button to appear.") % self.obj.title,
|
||||||
_("Do not close this popup until then."),
|
_("Do not close this popup until then."),
|
||||||
_("This should happen within less than a minute."),
|
_("This should happen within less than a minute."),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue