mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
started adding help text variables
This commit is contained in:
parent
e6ee17cfbd
commit
b6d5e4286b
@ -70,17 +70,21 @@ class TrimmedCharField(forms.CharField):
|
|||||||
|
|
||||||
class ConfigureForm(forms.Form):
|
class ConfigureForm(forms.Form):
|
||||||
"""Form to configure the dynamic DNS client"""
|
"""Form to configure the dynamic DNS client"""
|
||||||
|
|
||||||
|
hlp_updt_url = 'The Variables <User>, <Pass>, <Ip>, \
|
||||||
|
<Domain> may be used.'
|
||||||
|
|
||||||
|
hlp_services = 'Please choose a update protocol according to your \
|
||||||
|
provider. If your provider does not support the GnudIP \
|
||||||
|
protocol or your provider is not listed you may use \
|
||||||
|
the update URL of your provider.'
|
||||||
|
|
||||||
enabled = forms.BooleanField(label=_('Enable Dynamic DNS'),
|
enabled = forms.BooleanField(label=_('Enable Dynamic DNS'),
|
||||||
required=False, widget=forms.CheckboxInput
|
required=False, widget=forms.CheckboxInput
|
||||||
(attrs={'onclick': 'mod_form();'}))
|
(attrs={'onclick': 'mod_form();'}))
|
||||||
|
|
||||||
service_type = forms.ChoiceField(label=_('Service type'),
|
service_type = forms.ChoiceField(label=_('Service type'),
|
||||||
help_text=_('Please choose a update\
|
help_text=_(hlp_services),
|
||||||
protocol according to your \
|
|
||||||
provider. If your provider does not\
|
|
||||||
support the GnudIP protocol or your\
|
|
||||||
provider is not listed you may use\
|
|
||||||
the update URL of your provider.'),
|
|
||||||
choices=(('1', 'GnuDIP'),
|
choices=(('1', 'GnuDIP'),
|
||||||
('2', 'noip.com'),
|
('2', 'noip.com'),
|
||||||
('3', 'selfhost.bz'),
|
('3', 'selfhost.bz'),
|
||||||
@ -98,10 +102,7 @@ class ConfigureForm(forms.Form):
|
|||||||
|
|
||||||
dynamicdns_update_url = TrimmedCharField(label=_('Update URL'),
|
dynamicdns_update_url = TrimmedCharField(label=_('Update URL'),
|
||||||
required=False,
|
required=False,
|
||||||
help_text=_('The Variables <User>\
|
help_text=_(hlp_updt_url))
|
||||||
, <Pass>, <Ip>, \
|
|
||||||
<Domain> may be \
|
|
||||||
used'))
|
|
||||||
|
|
||||||
disable_SSL_cert_check = forms.BooleanField(label=_('accept all SSL \
|
disable_SSL_cert_check = forms.BooleanField(label=_('accept all SSL \
|
||||||
certificates'),
|
certificates'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user